Recommendation for using gRPC in Federation architecture #334
Replies: 2 comments 1 reply
-
|
The Gateway does not translate from GraphQL to gRPC. Application developers that decide their app be part of the federated grapgh implement their GrapghQL endpoint, mostly via DGS, even if they already provide gRPC endpoints as well. |
Beta Was this translation helpful? Give feedback.
-
|
We don't use gRPC for gateway -> DGS communication. We considered this for a while, expecting performance benefits, but in reality, there doesn't seem much of a win. The actual transport is hardly a factor in the flow. Before adopting GraphQL we were mostly standardized on gRPC for service->service communication. Because we have a large ecosystem of gRPC services, we see the following patterns:
These patterns all have their own use cases, and it's really about tradeoffs for each individual scenario. Performance doesn't seem to be a huge factor though. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Wanted to explore the possibility of using gRPC for communication between Federation Gateway and downstream services?
Is it followed at Netflix? I did read somewhere that Netflix uses gRPC for internal services.
Are the DGS services in Netflix supporting both GraphQL and gRPC or gRPC services are separated from GraphQL services?
Beta Was this translation helpful? Give feedback.
All reactions