Jonathan Helvey (@JonathanHelvey) profile picture
Joined May 2025
๐—ก๐—ฒ๐˜๐—ณ๐—น๐—ถ๐˜… ๐—ฟ๐—ฒ๐—ฏ๐˜‚๐—ถ๐—น๐˜ ๐—ถ๐˜๐˜€ ๐—”๐—ฃ๐—œ ๐—น๐—ฎ๐˜†๐—ฒ๐—ฟ ๐—ณ๐—ผ๐˜‚๐—ฟ ๐˜๐—ถ๐—บ๐—ฒ๐˜€ Netflix's highly scalable and loosely linked microservice architecture is well known. Independent services provide independent scaling and varied rates of evolution. Yet, they increase the complexity of use cases involving several services. Netflix provides a uniform API aggregation layer at the edge rather than making hundreds of microservices available to UI developers. During that time, Netflix API architecture went through 4 main stages: ๐Ÿ”น ๐— ๐—ผ๐—ป๐—ผ๐—น๐—ถ๐˜๐—ต: A complete application is packaged as a single deployment unit. ๐Ÿ”น ๐——๐—ถ๐—ฟ๐—ฒ๐—ฐ๐˜ ๐—”๐—ฐ๐—ฐ๐—ฒ๐˜€๐˜€: This architecture enables client apps to hit the microservices, which is not ideal with many clients. ๐Ÿ”น ๐—š๐—ฎ๐˜๐—ฒ๐˜„๐—ฎ๐˜† ๐—”๐—ด๐—ด๐—ฟ๐—ฒ๐—ด๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—Ÿ๐—ฎ๐˜†๐—ฒ๐—ฟ: as they observed a lot of duplicative data-fetching, here Netflix build graph API to provide unified abstraction on top of data and relationships. ๐Ÿ”น ๐—™๐—ฒ๐—ฑ๐—ฒ๐—ฟ๐—ฎ๐˜๐—ฒ๐—ฑ ๐—š๐—ฎ๐˜๐—ฒ๐˜„๐—ฎ๐˜†: as the number of consumers and amount of data in the graph increased and the API team was disconnected from the domain expertise, they introduced a federated gateway to provide a unified API for consumers while giving backend developers flexibility and service isolation. Their GraphQL Gateway is based on Apollo's reference implementation and is written in Kotlin. How many layers sit between your services and your users?
5
23
194
8,261