-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gRPC-gateway support #273
Comments
Seems like an interesting thing... |
@mantzas , i see your point, but it seems worth investigating more. @alexkappa , would you be willing to investigate those points , e.g. how to do in grpc ? (maybe a pre-defined grpc schema template ? ) . It would be a great improvement if we could find a solution to those (that integrates with the HTTP implementation as well). |
Thanks for the feedback, and apologies for the late reply. I understand there are some nice goodies available in the framework that would be a pity if we lose. My hope is that it should be doable assuming these components play well with the http.Handler contract, or the de facto middleware contract. With your blessing, I’d like to try to send something by when I get the chance and we can discuss it further. |
@alexkappa Of course you should try, was pointing out that there are a lot of things that needs to be considered and to get an understanding of the overall size of this feature. Obviously people are "eating an Elephants bite by bite"... ;) |
Since we are already supporting gRPC and HTTP component it does feel that there is a need for that. We will be closing this issue, but thanks for the suggestion. |
Is your feature request related to a problem? Please describe
Relates to #118
With support for gRPC added to patron, I was wondering whether the introduction of gRPC-gateway would be a natural next step.
In their own words:
Such plugin would provide certain benefits that may be beneficial to patron. With minimal additions to an existing
.proto
definition, grpc-gateway can generate http handlers that can proxy the request to our usual grpc service implementations.Another feature that may be attractive is the generation of swagger/openapi docs from the same
.proto
definitions.Describe the solution
If I understand the architecture of Patron well enough, I imagine this would fit in as a
Component
... Implementation could borrow from the grpc component as well as the http component (after all the gateway is ahttp.Handler
).I'd be happy to work on this given enough time in the weekend.
Additional context
.proto
with all the bells and whistlesThe text was updated successfully, but these errors were encountered: