How Netflix API evolved through 4 stages

From Netflix TechBlog (2020) & a LinkedIn post -

Netflix is known for its loosely coupled and highly scalable microservice architecture. Rather than exposing 100s of microservices to UI developers, Netflix offers a unified API aggregation layer at the edge. Netflix's Studio Ecosystem architecture has evolved in distinct phases, all motivated by reducing the time between idea and implementation, improving the developer experience, and streamlining operations. The architectural phases look like:

๐Ÿญ. ๐— ๐—ผ๐—ป๐—ผ๐—น๐—ถ๐˜๐—ต

Like everyone else, Netflix started with a monolithic architecture where the entire application was packaged and deployed as a single entity.

๐Ÿฎ. ๐——๐—ถ๐—ฟ๐—ฒ๐—ฐ๐˜ ๐—”๐—ฐ๐—ฐ๐—ฒ๐˜€๐˜€

To improve team autonomy and speed, the monolith was split into microservices. Each client made direct requests to the microservices. But with hundreds of them, exposing everything wasn't ideal.

๐Ÿฏ. ๐—š๐—ฎ๐˜๐—ฒ๐˜„๐—ฎ๐˜† ๐—”๐—ด๐—ด๐—ฟ๐—ฒ๐—ด๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—Ÿ๐—ฎ๐˜†๐—ฒ๐—ฟ

They built an API Gateway to bind all the services together and presented a unified front to the clients.

The API Gateway was supposed to bring order, but instead it became the new monolith as team grew and services multiplied.

๐Ÿฐ. ๐—™๐—ฒ๐—ฑ๐—ฒ๐—ฟ๐—ฎ๐˜๐—ฒ๐—ฑ ๐—š๐—ฎ๐˜๐—ฒ๐˜„๐—ฎ๐˜†

They built a federated GraphQL gateway to dismantle the API gateway monolith. The federated gateway eliminated complicated business logic, now routing queries directly to responsible services and stitching responses together.

Comments

Popular posts from this blog

The Mercurial Grok AI Assistant Understands & Speaks Indian Languages

Things Near Me โ€“ Find & Learn About Landmarks Nearby