Skip to content

How to add a downstream grpc support while keeping upstream normal HTTP? #1803

Answered by raman-m
simboyd asked this question in Q&A
Discussion options

You must be logged in to vote

@simboyd on Nov 25, 2022

Hello, Sandro!
Welcome to Ocelot world!
Sorry, we've missed the thing for a year...
Are you still with Ocelot?


how would I go about implementing a mechanism for translating HTTP requests into GRPC messages downstream?

In theory it is possible. But that will be your custom solution, you see?


Where do I begin?

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…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;) MVP Minimum Viable Product
3 participants
Converted from issue

This discussion was converted from issue #1623 on November 22, 2023 11:36.