Describe Netflix's microservices architecture and its key lessons.

Topic: microservices, Real-World. Level: Intermediate.

Answer

Netflix pioneered large-scale microservices on AWS after a monolith DB corruption outage. Key ideas: hundreds of services behind an edge gateway (Zuul), client-side discovery (Eureka), resilience via Hystrix (circuit breakers/bulkheads — the origin of these patterns at scale), and **Chaos Engineering** (Chaos Monkey randomly kills instances in production to prove resilience). Lessons: design for failure as normal, isolate faults, automate everything, and embrace eventual consistency. Many tools became open source (later superseded by Resilience4j, Spring Cloud, service meshes). ```text Client -> Zuul (edge gateway) -> Eureka (discovery) -> 100s of services Resilience: Hystrix circuit breakers + bulkheads + fallbacks Proof: Chaos Monkey kills prod instances to validate resilience Takeaway: assume failure is constant; automate recovery, not heroics ```