-
Hi, I'd like to receive HTTPS requests from the client in my Ocelot gateway API and call existing grpc microservices to aggregate data and return it back to the client over HTTPS in JSON format. sorry if this is a silly question but how would I go about implementing a mechanism for translating HTTP requests into grpc messages downstream? Where do I begin? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
No you can not, it due to different protocols, GRPC have concurrency limit, you need different type of Load balancers. Probably need to write logic for socket so continuously it will be alive. |
Beta Was this translation helpful? Give feedback.
-
Hello, Sandro!
In theory it is possible. But that will be your custom solution, you see?
As a known fact, Ocelot does not support GRPC protocol & scheme now. We plan to discuss GRPC in 2-3 months (in 2024). Good point to create a milestone... There is only one option... That will be very interesting coding challenge! 😉 |
Beta Was this translation helpful? Give feedback.
Hello, Sandro!
Welcome to Ocelot world!
Sorry, we've missed the thing for a year...
Are you still with Ocelot?
In theory it is possible. But that will be your custom solution, you see?
As a known fact, Ocelot does not support GRPC protocol & scheme now. We plan to discuss GRPC in 2-3 months (in 2024). Good point to create a milestone...
There is only one option...
You need to develop a custom Delegating Handler to convert HTTP request to GRPC one. After that you have to process GRPC response to convert it back to HTTP one. So, delega…