Netflix uses a microservices architecture to handle millions of users streaming videos simultaneously. Which of the following lists the main components involved in Netflix's architecture?
Think about how Netflix breaks down its system into small independent services that communicate through APIs.
Netflix's microservices architecture includes an API Gateway to route requests, Service Discovery to find services, Load Balancers to distribute traffic, Data Storage for user and content data, and Monitoring for system health.
Netflix experiences sudden spikes in user traffic during popular show releases. Which scaling strategy best describes how Netflix manages this?
Consider how cloud services and containers help scale automatically.
Netflix uses auto-scaling with container orchestration tools like Kubernetes on cloud infrastructure to dynamically add or remove microservice instances based on traffic.
Netflix stores user data and video metadata across multiple data centers worldwide. What is the main tradeoff Netflix accepts in its data storage system?
Think about what happens if a data center is unreachable but users still want to watch videos.
Netflix prioritizes availability so users can stream content even if some data is slightly out of sync, accepting eventual consistency.
What is the primary role of the API Gateway in Netflix's microservices architecture?
Think about how a single entry point manages many microservices behind the scenes.
The API Gateway acts as a single entry point that routes requests, manages authentication, and enforces rate limits before forwarding to microservices.
Assuming each microservice instance can handle 10,000 concurrent users, estimate how many instances are needed to support 10 million concurrent users. Consider Netflix uses 5 critical microservices equally loaded.
Divide total users by capacity per instance, then distribute evenly across microservices.
10 million users / 10,000 users per instance = 1000 instances needed per microservice. With 5 microservices, total is 5000 instances.