Limitation of Federation
- Only Apollo Gateway is a ready-to-use, self-hosted federation gateway implementation; the rest are still under development and not fully functional.
- It has limited support for custom directives (instructions within GraphQL to increase functionality).
a. No built-in mechanism for federated directives.
b. Per-service directives, if any, get removed by the gateway.
c. Workarounds (or temporary solutions) exist but-unsupported.
- Service Startup: “Hello World” scenario assumes services are already running when the gateway starts which is not considered ideal for disaster management.
- It has type naming conflicts like the term “Service” which is commonly used by tooling can not be used for anything else.
- It does not support subscriptions currently.
How Netflix Scales its API with GraphQL
Netflix is said to be a subscription-based streaming service that allows users to watch TV shows and movies on any device, given it is connected to the internet. It is really popular because of streaming exclusive content and in 4K resolution. But behind the scenes how do they manage it? How do they reach out to so many users seamlessly?
It was possible because of many things and GraphQL was one of them. GraphQL is an open-source query language and server-side runtime that helps to specify how clients should interact with application programming interfaces. In this article, We will focus on “How Netflix Scales its API with GraphQL” in detail.