SlideShare a Scribd company logo
How Netflix does Microservices ...
Manuel Correa
Microservices
“Small Autonomous Services
that Work Together”
Sam Newman
Microservices
“Conway’s Law”
“Any organization that designs a system (defined broadly) will produce a design
whose structure is a copy of the organization's communication structure.”
Microservices Principles
http://www.slideshare.net/spnewman/principles-of-microservices-ndc-2014
Modeled around Business Domain Culture of Automation Hide Implementation
Decentralize All Things
Design for Failure
Highly Observable
Deploy Independently
MicroServices
Culture of Automation
- Immutable infrastructure in
AWS
Decentralize All Things
Hide Implementation Details
- Routing
- Contracts
- Resiliancy
- Discovery
- How services work togetherNodeJS
Ruby
Clojure
Free for all
Agree
Decentralize All Things
Smart Endpoints and Dumb Pipes
- Dynamic Routing
- Gateway for all Netflix services
- Pluggable system that takes care of:
- Authorization and Authentication
- Monitoring and tracking request
- Load shedding
- First level of resilience
- Enables caching in the gateway level
Decentralize All Things
Smart Endpoints and Dumb Pipes
Decentralize All things
Service Discovery
- Service Registry
- Middle tier load balancing
- Carries metadata of each service
- Dynamic Service repository
Decentralize All Things
Dynamic Configuration
- Dynamic Typed Properties = Feature Flag System
- Allow you to change properties on Runtime
- Polling framework
- Multiple sources (i.e.: Cassandra and DynamoDB)
- Callbacks when the property changes
CB’s Zuul is using Archaius to change properties across AWS regions, HttpClient configurations
and logging level
Design for Failure
- HTTP library
- Load balancing on the client side
- Retrys built-in
- Caching
- Request batching
Design for Failure
- Java Resilience library
- Stop cascading failures
- Fallback and gracefully degrade when possible
- Realtime monitoring
- Circuit breaker pattern
Design for Failure
● No Service has 100% SLA
● 99.9930
= 99.7% uptime
● 0.3% of 1 billion requests = 300,000 failures
● 2+ hours downtime/month even if all
dependencies have excellent uptime.
Service1
Service2
Service3 Fallback
Design for Failure
Circuit Breaker pattern
Design for Failure
Hystrix Dashboard
Decentralized Architecture
Demo
May the demo Gods be with us...
/service/jobs
Client
/service/resumes
:9292
:9292
Demo
May the demo Gods be with us...
SERVICE
Client
Zuul
Hystrix
Ribbon
Fallback
Backup Service
Fallback
Cache
:9090
:9292
:9393
Design for Failure
- Testing resiliency in Production
- Chaos Monkey => Kill instances randomly
- Latency Monkey => Induce latency in services
- Chaos Gorilla => Simulates AZ and regions down
- Conformity Monkey => Make sure instances follow good
practices
Highly Observable
- Hystrix Stream aggregator
- AWS Change Tracker
- AWS Usage Tracker
Take Aways
http://www.slideshare.net/spnewman/principles-of-microservices-ndc-2014
Modeled around Business Domain Culture of Automation Hide Implementation
Decentralize All Things
Design for Failure
Highly Observable
Deploy Independently
MicroServices
Take Aways
- Each Service must have a fallback strategy by
design
- Routing layer is essential for the architecture
- To make Services work together, there is a
need for a highly reliable infrastructure around
the MicroServices
Take Aways
“Conway’s Law”
“Any organization that designs a system (defined broadly) will produce a design
whose structure is a copy of the organization's communication structure.”
References
- http://www.slideshare.net/spnewman/practical-microservices-ndc-2014
- http://www.slideshare.net/spnewman/principles-of-microservices-ndc-
2014?related=1
- http://netflix.github.io/
- http://martinfowler.com/articles/microservices.html
Questions?
manuel.correa@careerbuilder.com
Hipchat: Manny Correa

More Related Content

PDF
Microservices Antipatterns
PDF
Dev309 from asgard to zuul - netflix oss-final
PPTX
Elastically scalable architectures with microservices. The end of the monolith?
PDF
Spring Cloud Netflix OSS
PPTX
Distributed architecture in a cloud native microservices ecosystem
PDF
Load Balancing for Containers and Cloud Native Architecture
PPTX
Netflix0SS Services on Docker
PDF
Netflix Cloud Platform and Open Source
Microservices Antipatterns
Dev309 from asgard to zuul - netflix oss-final
Elastically scalable architectures with microservices. The end of the monolith?
Spring Cloud Netflix OSS
Distributed architecture in a cloud native microservices ecosystem
Load Balancing for Containers and Cloud Native Architecture
Netflix0SS Services on Docker
Netflix Cloud Platform and Open Source

What's hot (20)

PDF
Building a Modern Microservices Architecture at Gilt: The Essentials
PDF
The Good, the Bad and the Ugly of Migrating Hundreds of Legacy Applications ...
PPTX
Building an Event-oriented Data Platform with Kafka, Eric Sammer
PDF
Netflix Cloud Architecture and Open Source
PDF
Event-driven Applications with Kafka, Micronaut, and AWS Lambda | Dave Klein,...
PDF
Make Java Microservices Resilient with Istio - Mangesh - IBM - CC18
PDF
Scaling Gilt: from monolith ruby app to micro service scala service architecture
PPTX
Encrypting Kafka messages at rest to secure applications | Robert Barnes, Has...
PPTX
CloudStack news
PDF
KURMA - A Containerized Container Platform - KubeCon 2016
PDF
Day in the life event-driven workshop
PPTX
Architectures for High Availability - QConSF
PDF
Applying ML on your Data in Motion with AWS and Confluent | Joseph Morais, Co...
PPTX
Netflix and Open Source
PPTX
Cloudsolutionday 2016: Docker & FAAS at getvero.com
PDF
Netflix Open Source Meetup Season 4 Episode 3
PDF
The new Netflix API
PDF
Beyond the brokers - Un tour de l'écosystème Kafka
PDF
DCEU 18: From Monolith to Microservices
PPTX
Better Kafka Performance Without Changing Any Code | Simon Ritter, Azul
Building a Modern Microservices Architecture at Gilt: The Essentials
The Good, the Bad and the Ugly of Migrating Hundreds of Legacy Applications ...
Building an Event-oriented Data Platform with Kafka, Eric Sammer
Netflix Cloud Architecture and Open Source
Event-driven Applications with Kafka, Micronaut, and AWS Lambda | Dave Klein,...
Make Java Microservices Resilient with Istio - Mangesh - IBM - CC18
Scaling Gilt: from monolith ruby app to micro service scala service architecture
Encrypting Kafka messages at rest to secure applications | Robert Barnes, Has...
CloudStack news
KURMA - A Containerized Container Platform - KubeCon 2016
Day in the life event-driven workshop
Architectures for High Availability - QConSF
Applying ML on your Data in Motion with AWS and Confluent | Joseph Morais, Co...
Netflix and Open Source
Cloudsolutionday 2016: Docker & FAAS at getvero.com
Netflix Open Source Meetup Season 4 Episode 3
The new Netflix API
Beyond the brokers - Un tour de l'écosystème Kafka
DCEU 18: From Monolith to Microservices
Better Kafka Performance Without Changing Any Code | Simon Ritter, Azul
Ad

Viewers also liked (20)

PPTX
Protocol buffers
PDF
Python WSGI introduction
PPTX
Python Courses: Lecture 2
KEY
Large platform architecture in (mostly) perl - an illustrated tour
PPT
A Brief Introduce to WSGI
PDF
Mobile Internet Moscow
PDF
SIGNificant ColorPad 6
PDF
Whitepaper Mobile E-Signing
PDF
xyzmo Overview Russian
PDF
Whitepaper Online E-Signing
PPT
Internet of Things
PDF
Whitepaper E-Signing at the Inhouse Pos
PPTX
Electronic identification
PPTX
Eurosmart presentation on the eidas regulation
PDF
FORUM PA 2015 - Microservices with IBM Bluemix
PPTX
Designing microservices
PDF
LMSUG 2015 "The Business Behind Microservices: Organisational, Architectural ...
PPTX
Surviving as a Monolith in a Microservices World - by Blair Olynyk, Hyperwallet
PDF
Microservices: The Organizational and People Impact
PPTX
Cassandra Performance and Scalability on AWS
Protocol buffers
Python WSGI introduction
Python Courses: Lecture 2
Large platform architecture in (mostly) perl - an illustrated tour
A Brief Introduce to WSGI
Mobile Internet Moscow
SIGNificant ColorPad 6
Whitepaper Mobile E-Signing
xyzmo Overview Russian
Whitepaper Online E-Signing
Internet of Things
Whitepaper E-Signing at the Inhouse Pos
Electronic identification
Eurosmart presentation on the eidas regulation
FORUM PA 2015 - Microservices with IBM Bluemix
Designing microservices
LMSUG 2015 "The Business Behind Microservices: Organisational, Architectural ...
Surviving as a Monolith in a Microservices World - by Blair Olynyk, Hyperwallet
Microservices: The Organizational and People Impact
Cassandra Performance and Scalability on AWS
Ad

Similar to How Netflix does Microservices (20)

PPTX
An introduction to Microservices
PPTX
building microservices
PPT
Building Resilient Microservices
PDF
The journey to Native Cloud Architecture & Microservices, tracing the footste...
PPTX
Pros & Cons of Microservices Architecture
PPTX
Are Microservices our future?
PPTX
Microservices Architecture
PPTX
Mastering Chaos - A Netflix Guide to Microservices
PDF
Service Mesh Talk for CTO Forum
PDF
QConSF2016-JoshEvans-MasteringChaosANetflixGuidetoMicroservices-compressed.pdf
PPTX
Introduction to microservices
PDF
Microservices Architecture
PPTX
Application Networks: Microservices and APIs at Netflix
PDF
A Gentle introduction to microservices
PPT
Microservices lessons from trenches
PPTX
Microservices at Netflix
PPTX
Service Mesh CTO Forum (Draft 3)
PDF
Principles of microservices ndc oslo
PPTX
Intro to Microservices - SimtTLiX Tech Talk
PPTX
QConSF-MicroServices-IPC-Netflix-Sudhir-2014.pptx
An introduction to Microservices
building microservices
Building Resilient Microservices
The journey to Native Cloud Architecture & Microservices, tracing the footste...
Pros & Cons of Microservices Architecture
Are Microservices our future?
Microservices Architecture
Mastering Chaos - A Netflix Guide to Microservices
Service Mesh Talk for CTO Forum
QConSF2016-JoshEvans-MasteringChaosANetflixGuidetoMicroservices-compressed.pdf
Introduction to microservices
Microservices Architecture
Application Networks: Microservices and APIs at Netflix
A Gentle introduction to microservices
Microservices lessons from trenches
Microservices at Netflix
Service Mesh CTO Forum (Draft 3)
Principles of microservices ndc oslo
Intro to Microservices - SimtTLiX Tech Talk
QConSF-MicroServices-IPC-Netflix-Sudhir-2014.pptx

More from Manuel Correa (6)

PPTX
Ads final project
PPT
Big table
ODP
Big table
PDF
Optimal Adaptation
PPT
RESTFul Web Services - Intro
PPT
Map Reduce
Ads final project
Big table
Big table
Optimal Adaptation
RESTFul Web Services - Intro
Map Reduce

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPT
Teaching material agriculture food technology
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Advanced IT Governance
PPTX
Big Data Technologies - Introduction.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
MYSQL Presentation for SQL database connectivity
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 3 Spatial Domain Image Processing.pdf
Modernizing your data center with Dell and AMD
Unlocking AI with Model Context Protocol (MCP)
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Teaching material agriculture food technology
NewMind AI Monthly Chronicles - July 2025
Advanced IT Governance
Big Data Technologies - Introduction.pptx
20250228 LYD VKU AI Blended-Learning.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
GamePlan Trading System Review: Professional Trader's Honest Take
MYSQL Presentation for SQL database connectivity
The AUB Centre for AI in Media Proposal.docx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Review of recent advances in non-invasive hemoglobin estimation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

How Netflix does Microservices