I Love APIs 2015: Microservices at Amazon

Apigee | Google Cloud
Apigee | Google CloudAPI Management and Strategy
Microservices at Amazon
Chris Munns
Business Development Manager - DevOps
About me:
Chris Munns - munns@amazon.com, @chrismunns
– Business Development Manager – DevOps
– New Yorker
– Previously:
•  AWS Solutions Architect 2011-2014
•  Lead of Infrastructure/DevOps @hingeapp
•  Formerly on operations teams @Etsy and @Meetup
•  Little time at a hedge fund, Xerox and others
– Rochester Institute of Technology: Applied Networking and Systems Administration
’05
– Internet infrastructure geek
The Micro-elephant in the room
https://www.flickr.com/photos/davidrosenphotography/14711027415/
Microservices
“is a software architecture style in which complex
applications are composed of small, independent
processes communicating with each other using
language-agnostic APIs. These services are
small, highly decoupled and focus on doing a
small task, facilitating a modular approach to
system-building.” - Wikipedia
https://en.wikipedia.org/wiki/Microservices
Microservices
Smart people are talking about it:
•  Sam Newman - book “Building
Microservices” O’Reilly Publishing
•  Adrian Cockcroft – numerous talks,
presentations, blog posts
“Loosely coupled service oriented
architecture with bounded contexts”
•  Martin Fowler – numerous blog posts
•  2 sessions at AWS Re:Invent 2014
•  ~8 sessions at AWS Re:Invent 2015
But is it just a fad?
Phil Calcado(ex-SoundCloud) in his Sept 8th post entitled “How we ended up
with microservices.” highlighted the recent growth of the term:
Data from Google Trends
http://philcalcado.com/2015/09/08/how_we_ended_up_with_microservices.html
But is it just a fad?
As they say in dramatic police dramas….Let’s ENHANCE!:
Data from Google Trends
Lots of folks are doing it
• Gilt: “From Monolith Ruby App to Distributed Scala Micro-
Services” NYC Tech Talks
• Nike: “Nike’s Journey to Microservices” – AWS Re:Invent
2014
• SoundCloud: ”Building Products at SoundCloud—Part III:
Microservices in Scala and Finagle”
• Capital One: “Lack Of Legacy Lets Capital One Build
Nimble Infrastructure” – ThePlatform.net
• Hailo: “A Journey into Microservices” – sudo.hailoapp.com
Brilliant folks are sharing tools for it
• Netflix: Dozens of tools - https://netflix.github.io/
• Airbnb: SmartStack - http://nerds.airbnb.com/
smartstack-service-discovery-cloud/
• Twitter: Mesos - https://mesos.apache.org/
• LinkedIn: Rest.li - https://github.com/linkedin/
rest.li
I Love APIs 2015: Microservices at Amazon
Monolith development lifecycle
developers
releasetestbuild
delivery pipelineapp
•  Single-purpose
•  Connect only
through APIs
•  Connect over HTTPS
•  Largely “black
boxes” to each other
•  “Microservices”
Microservices vs. SOA
Wikipedia: “distinct from a Service-oriented architecture (SOA)
in that the latter aims at integrating various (business)
applications whereas several microservices belong to one
application only”
Martin Fowler: “This common manifestation of SOA has led
some microservice advocates to reject the SOA label entirely,
although others consider microservices to be one form of SOA”
Oracle: “The picture that emerges is not of microservices as an
alternative to SOA, but rather as a way to restore flexibility that
may have been lost in SOAs that became too rigid and
monolithic.” https://en.wikipedia.org/wiki/Microservices
http://martinfowler.com/articles/microservices.html#MicroservicesAndSoa
http://www.oracle.com/technetwork/issue-archive/2015/15-mar/o25architect-2458702.html
Microservices:
•  Many very small components
•  Business logic lives inside of
single service domain
•  Simple wire protocols(HTTP
with XML/JSON)
•  API driven with SDKs/Clients
SOA:
•  Fewer more sophisticated
components
•  Business logic can live across
domains
•  Enterprise Service Bus like
layers between services
•  Middleware
Microservices vs. SOA
14
•  Two-pizza teams
•  Full ownership
•  Full accountability
•  Aligned incentives
•  “DevOps”
Wait, now we’re
talking about
Pizza?
16
©2015 Apigee. All Rights Reserved. 
Image By: Chris Munns – munns@amazon.com
How do Two Pizza Teams work?
We call them “Service teams”
• Own the “primitives” they build:
– Product planning (roadmap)
– Development work
– Operational/Client support work
• “You build it, you run it”
• Part of a larger concentrated org (Amazon.com,
AWS, Prime, etc)
17
Who Does QA?
18
The Two
Pizza
Team
Who Does
On Call?
19
Image By: Chris Munns – munns@amazon.com
The Two
Pizza
Team
What does Ops
Do?
20
Not
Exist
What about Ops/QA/Etc?
Everyone exists on a “service team” focused on their
primitive(s):
• SDE’s focused on developing
• PM’s focused on product direction
• TPM’s help drive development
• SE’s focused on infra/tooling
• SDET’s focused on test excellence throughout the
organization
Some folks are shared across the org, some on individual
teams

21
Boy, that sounds like a lot of freedom?
It is! Teams are empowered and also held to high
standards:
• Thorough onboarding/training
• Patterns/practices defined at scale and with 20+
years of organizational knowledge
• Regular technical and business metric reviews
• Regular sharing of new tools, services, technologies,
etc, by internal subject matter experts
22
Missing tools
developers delivery pipelineservices
???
•  Self-service
•  Technology-agnostic
•  Encourage best
practices
•  Single-purpose
services
•  Deployment service
•  No downtime
deployments
•  Health checking
•  Versioned artifacts
and rollbacks
•  Continuous delivery
•  From check-in to
production
•  Automated actions
and transitions
•  >90% of teams
Pipelines
Microservice development lifecycle
developers delivery pipelinesservices
releasetestbuild
releasetestbuild
releasetestbuild
releasetestbuild
releasetestbuild
releasetestbuild
= 50 million deployments a year
Thousands of teams
× Microservice architecture
× Continuous delivery
× Multiple environments
I’m sold, how do
I make my own
pizza?
29
©2015 Apigee. All Rights Reserved. 
Image By: Chris Munns – munns@amazon.com
How to make pizza?
• Yeast
• Water
• Sugar
• Olive oil
• Tomato sauce
• Cheese
• <insert favorite toppings here>
30
No Chris, I mean in
the organizational/
technological sense
31
©2015 Apigee. All Rights Reserved. 
Image By: Chris Munns – munns@amazon.com
The keys to your own Two Pizza teams & Microservices
Culture
Practices
Tools
32
The keys to your own Two Pizza teams & Microservices
Culture
– Ownership & Accountability go hand in hand
– Larger teams typically move slower than smaller teams
– Insist on standards of excellence, but be flexible on the how
Practices
– Continuous Integration & Delivery
– Simplify operational tasks
Tools
– CI & CD tools
– Infrastructure management
– Metrics/Monitoring/Logging
– Communication and Collaboration
33
The keys to your own Two Pizza teams & Microservices
Culture
– Ownership & Accountability go hand in hand
– Larger teams typically move slower than smaller teams
– Insist on standards of excellence, but be flexible on the how
Practices
– Continuous Integration & Delivery
– Simplify operational tasks
Tools
– CI & CD tools
– Infrastructure management
– Metrics/Monitoring/Logging
– Communication and Collaboration
34
The keys to your own Two Pizza teams & Microservices
Culture
– Ownership & Accountability go hand in hand
– Larger teams typically move slower than smaller teams
– Insist on standards of excellence, but be flexible on the how
Practices
– Continuous Integration & Delivery
– Simplify operational tasks
Tools
– CI & CD tools
– Infrastructure management
– Metrics/Monitoring/Logging
– Communication and Collaboration
35
The keys to your own Two Pizza teams & Microservices
Culture
– Ownership & Accountability go hand in hand
– Larger teams typically move slower than smaller teams
– Insist on standards of excellence, but be flexible on the how
Practices
– Continuous Integration & Delivery
– Simplify operational tasks
Tools
– CI & CD tools
– Infrastructure management
– Metrics/Monitoring/Logging
– Communication and Collaboration
36
Internal “Service teams”
should own, support,
train, drive excellence
of these tools
Apollo and Pipelines as AWS Services:
CodePipeline
launched July 2015
CodeDeploy
launched Nov 2014
Establishing a pattern for services and clients
It’s important that the organization isn’t reinventing the
wheel on every new service:
•  How are clients going to communicate?
•  What cross service authorization requirements are there?
•  How do services prevent abuse?
•  How do you quickly build clients against a service?
•  How do services handle discovery of others services and resources?
Use an API Gateway!
Internet
Mobile Apps
Websites
Services
API
Gateway
AWS Lambda
functions
API Gateway
Cache
Endpoints on
Amazon EC2
Any other publicly
accessible endpoint
Amazon
CloudWatch
Monitoring
Amazon
CloudFront
HOST
METRICS
SERVICE
METRICS
LOG
ANALYSIS
BUILD
METRICS
FIN, ACK
This is a big topic that is hard to cover in a single session, day,
week! Key pointers:
•  Microservices patterns are changing how we are building APIs
and our applications in general
•  Team structure plays an incredible role in building, running,
scaling Microservices
•  Focusing on flexible tooling that provides standards can help an
organization focus on what matters
•  Enable the smart people you hire to do great things by giving
them both ownership and accountability on those things
success
41
Thank you
42
1 of 42

Recommended

Devops by
DevopsDevops
DevopsDaniel Fikre
252 views18 slides
Demystifying DevSecOps by
Demystifying DevSecOpsDemystifying DevSecOps
Demystifying DevSecOpsArchana Joshi
774 views14 slides
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed... by
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...Edureka!
1.9K views14 slides
DevOps to DevSecOps Journey.. by
DevOps to DevSecOps Journey..DevOps to DevSecOps Journey..
DevOps to DevSecOps Journey..Siddharth Joshi
214 views23 slides
DevSecOps | DevOps Sec by
DevSecOps | DevOps SecDevSecOps | DevOps Sec
DevSecOps | DevOps SecRubal Jain
1.2K views20 slides
Monoliths and Microservices by
Monoliths and Microservices Monoliths and Microservices
Monoliths and Microservices Bozhidar Bozhanov
7.4K views23 slides

More Related Content

What's hot

Docker Basics by
Docker BasicsDocker Basics
Docker BasicsEueung Mulyana
2.6K views36 slides
About DevOps in simple steps by
About DevOps in simple stepsAbout DevOps in simple steps
About DevOps in simple stepsIhor Odynets
5.2K views20 slides
Docker by Example - Basics by
Docker by Example - Basics Docker by Example - Basics
Docker by Example - Basics Ganesh Samarthyam
20.1K views160 slides
Service-mesh options with Linkerd, Consul, Istio and AWS AppMesh by
Service-mesh options with Linkerd, Consul, Istio and AWS AppMeshService-mesh options with Linkerd, Consul, Istio and AWS AppMesh
Service-mesh options with Linkerd, Consul, Istio and AWS AppMeshChristian Posta
2.8K views55 slides
DevOps introduction by
DevOps introductionDevOps introduction
DevOps introductionChristian F. Nissen
8K views83 slides
DevOps - A Gentle Introduction by
DevOps - A Gentle IntroductionDevOps - A Gentle Introduction
DevOps - A Gentle IntroductionGanesh Samarthyam
5.8K views42 slides

What's hot(20)

About DevOps in simple steps by Ihor Odynets
About DevOps in simple stepsAbout DevOps in simple steps
About DevOps in simple steps
Ihor Odynets5.2K views
Service-mesh options with Linkerd, Consul, Istio and AWS AppMesh by Christian Posta
Service-mesh options with Linkerd, Consul, Istio and AWS AppMeshService-mesh options with Linkerd, Consul, Istio and AWS AppMesh
Service-mesh options with Linkerd, Consul, Istio and AWS AppMesh
Christian Posta2.8K views
Devops Devops Devops, at Froscon by Kris Buytaert
Devops Devops Devops, at FrosconDevops Devops Devops, at Froscon
Devops Devops Devops, at Froscon
Kris Buytaert8K views
Docker introduction by dotCloud
Docker introductionDocker introduction
Docker introduction
dotCloud455.8K views
Microservices by SmartBear
MicroservicesMicroservices
Microservices
SmartBear1.4K views
レイヤードアーキテクチャを意識したPHPアプリケーションの構築 by Masashi Shinbara
レイヤードアーキテクチャを意識したPHPアプリケーションの構築レイヤードアーキテクチャを意識したPHPアプリケーションの構築
レイヤードアーキテクチャを意識したPHPアプリケーションの構築
Masashi Shinbara20.2K views
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train... by Simplilearn
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
Simplilearn2.3K views
Continuous integration using Jenkins and Sonar by Pascal Larocque
Continuous integration using Jenkins and SonarContinuous integration using Jenkins and Sonar
Continuous integration using Jenkins and Sonar
Pascal Larocque14.5K views
Microservice Architecture by Nguyen Tung
Microservice ArchitectureMicroservice Architecture
Microservice Architecture
Nguyen Tung7.1K views
Docker 101: Introduction to Docker by Docker, Inc.
Docker 101: Introduction to DockerDocker 101: Introduction to Docker
Docker 101: Introduction to Docker
Docker, Inc.71.1K views
Introduction To Microservices by Lalit Kale
Introduction To MicroservicesIntroduction To Microservices
Introduction To Microservices
Lalit Kale1.1K views
[2022 DevOpsDays Taipei] 走過 DevOps 風雨的下一步 by Edward Kuo
[2022 DevOpsDays Taipei] 走過 DevOps 風雨的下一步[2022 DevOpsDays Taipei] 走過 DevOps 風雨的下一步
[2022 DevOpsDays Taipei] 走過 DevOps 風雨的下一步
Edward Kuo1.2K views

Viewers also liked

Chris Munns, DevOps @ Amazon: Microservices, 2 Pizza Teams, & 50 Million Depl... by
Chris Munns, DevOps @ Amazon: Microservices, 2 Pizza Teams, & 50 Million Depl...Chris Munns, DevOps @ Amazon: Microservices, 2 Pizza Teams, & 50 Million Depl...
Chris Munns, DevOps @ Amazon: Microservices, 2 Pizza Teams, & 50 Million Depl...TriNimbus
13.1K views46 slides
ARC204 AWS Infrastructure Automation - AWS re: Invent 2012 by
ARC204 AWS Infrastructure Automation - AWS re: Invent 2012ARC204 AWS Infrastructure Automation - AWS re: Invent 2012
ARC204 AWS Infrastructure Automation - AWS re: Invent 2012Amazon Web Services
5K views76 slides
AWS Webcast - Build high-scale applications with Amazon DynamoDB by
AWS Webcast - Build high-scale applications with Amazon DynamoDBAWS Webcast - Build high-scale applications with Amazon DynamoDB
AWS Webcast - Build high-scale applications with Amazon DynamoDBAmazon Web Services
6.1K views53 slides
Scaling on AWS for the First 10 Million Users by
Scaling on AWS for the First 10 Million UsersScaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million UsersAmazon Web Services
35.6K views96 slides
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools by
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer ToolsDevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer ToolsAmazon Web Services
3.9K views56 slides
Continuous Deployment Practices, with Production, Test and Development Enviro... by
Continuous Deployment Practices, with Production, Test and Development Enviro...Continuous Deployment Practices, with Production, Test and Development Enviro...
Continuous Deployment Practices, with Production, Test and Development Enviro...Amazon Web Services
17.7K views88 slides

Viewers also liked(18)

Chris Munns, DevOps @ Amazon: Microservices, 2 Pizza Teams, & 50 Million Depl... by TriNimbus
Chris Munns, DevOps @ Amazon: Microservices, 2 Pizza Teams, & 50 Million Depl...Chris Munns, DevOps @ Amazon: Microservices, 2 Pizza Teams, & 50 Million Depl...
Chris Munns, DevOps @ Amazon: Microservices, 2 Pizza Teams, & 50 Million Depl...
TriNimbus13.1K views
ARC204 AWS Infrastructure Automation - AWS re: Invent 2012 by Amazon Web Services
ARC204 AWS Infrastructure Automation - AWS re: Invent 2012ARC204 AWS Infrastructure Automation - AWS re: Invent 2012
ARC204 AWS Infrastructure Automation - AWS re: Invent 2012
AWS Webcast - Build high-scale applications with Amazon DynamoDB by Amazon Web Services
AWS Webcast - Build high-scale applications with Amazon DynamoDBAWS Webcast - Build high-scale applications with Amazon DynamoDB
AWS Webcast - Build high-scale applications with Amazon DynamoDB
Amazon Web Services6.1K views
Scaling on AWS for the First 10 Million Users by Amazon Web Services
Scaling on AWS for the First 10 Million UsersScaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million Users
Amazon Web Services35.6K views
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools by Amazon Web Services
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer ToolsDevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
Amazon Web Services3.9K views
Continuous Deployment Practices, with Production, Test and Development Enviro... by Amazon Web Services
Continuous Deployment Practices, with Production, Test and Development Enviro...Continuous Deployment Practices, with Production, Test and Development Enviro...
Continuous Deployment Practices, with Production, Test and Development Enviro...
Amazon Web Services17.7K views
Scale Your Application while Improving Performance and Lowering Costs (SVC203... by Amazon Web Services
Scale Your Application while Improving Performance and Lowering Costs (SVC203...Scale Your Application while Improving Performance and Lowering Costs (SVC203...
Scale Your Application while Improving Performance and Lowering Costs (SVC203...
Amazon Web Services8.8K views
Getting Started With Continuous Delivery on AWS - AWS April 2016 Webinar Series by Amazon Web Services
Getting Started With Continuous Delivery on AWS - AWS April 2016 Webinar SeriesGetting Started With Continuous Delivery on AWS - AWS April 2016 Webinar Series
Getting Started With Continuous Delivery on AWS - AWS April 2016 Webinar Series
Amazon Web Services9.4K views
(WEB301) Operational Web Log Analysis | AWS re:Invent 2014 by Amazon Web Services
(WEB301) Operational Web Log Analysis | AWS re:Invent 2014(WEB301) Operational Web Log Analysis | AWS re:Invent 2014
(WEB301) Operational Web Log Analysis | AWS re:Invent 2014
Scaling on AWS for the First 10 Million Users by Amazon Web Services
Scaling on AWS for the First 10 Million UsersScaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million Users
Amazon Web Services9.6K views
Stop Worrying about Prodweb001 and Start Loving i-98fb9856 (ARC201) | AWS re:... by Amazon Web Services
Stop Worrying about Prodweb001 and Start Loving i-98fb9856 (ARC201) | AWS re:...Stop Worrying about Prodweb001 and Start Loving i-98fb9856 (ARC201) | AWS re:...
Stop Worrying about Prodweb001 and Start Loving i-98fb9856 (ARC201) | AWS re:...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre... by Amazon Web Services
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
State of Infrastructure as Code - AutomaCon 2016 by Amazon Web Services
State of Infrastructure as Code - AutomaCon 2016State of Infrastructure as Code - AutomaCon 2016
State of Infrastructure as Code - AutomaCon 2016
Amazon Web Services4.6K views
Improving Infrastructure Governance on AWS - AWS June 2016 Webinar Series by Amazon Web Services
Improving Infrastructure Governance on AWS - AWS June 2016 Webinar SeriesImproving Infrastructure Governance on AWS - AWS June 2016 Webinar Series
Improving Infrastructure Governance on AWS - AWS June 2016 Webinar Series
Amazon Web Services6.5K views
AWS Tips for LAUNCHing Your Infrastructure in the Cloud by Amazon Web Services
AWS Tips for LAUNCHing Your Infrastructure in the CloudAWS Tips for LAUNCHing Your Infrastructure in the Cloud
AWS Tips for LAUNCHing Your Infrastructure in the Cloud
Amazon Web Services5.5K views
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014 by Amazon Web Services
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
AWS January 2016 Webinar Series - Managing your Infrastructure as Code by Amazon Web Services
AWS January 2016 Webinar Series - Managing your Infrastructure as CodeAWS January 2016 Webinar Series - Managing your Infrastructure as Code
AWS January 2016 Webinar Series - Managing your Infrastructure as Code
Amazon Web Services13.9K views

Similar to I Love APIs 2015: Microservices at Amazon

Microservices Journey NYC by
Microservices Journey NYCMicroservices Journey NYC
Microservices Journey NYCChristian Posta
2.3K views81 slides
Microservice Architecture by
Microservice ArchitectureMicroservice Architecture
Microservice Architecturetyrantbrian
10.2K views83 slides
A Microservice Journey by
A Microservice JourneyA Microservice Journey
A Microservice JourneyChristian Posta
2.4K views71 slides
API’s and Micro Services 0.5 by
API’s and Micro Services 0.5API’s and Micro Services 0.5
API’s and Micro Services 0.5Richard Hudson
445 views34 slides
Serverless & Microservices Architecture by
Serverless & Microservices ArchitectureServerless & Microservices Architecture
Serverless & Microservices ArchitectureJason Woods
18 views19 slides
From Monoliths to Services: Grafually paying your Technical Debt by
From Monoliths to Services: Grafually paying your Technical DebtFrom Monoliths to Services: Grafually paying your Technical Debt
From Monoliths to Services: Grafually paying your Technical DebtDavid Litvak Bruno
423 views98 slides

Similar to I Love APIs 2015: Microservices at Amazon(20)

Microservice Architecture by tyrantbrian
Microservice ArchitectureMicroservice Architecture
Microservice Architecture
tyrantbrian10.2K views
API’s and Micro Services 0.5 by Richard Hudson
API’s and Micro Services 0.5API’s and Micro Services 0.5
API’s and Micro Services 0.5
Richard Hudson445 views
Serverless & Microservices Architecture by Jason Woods
Serverless & Microservices ArchitectureServerless & Microservices Architecture
Serverless & Microservices Architecture
Jason Woods18 views
From Monoliths to Services: Grafually paying your Technical Debt by David Litvak Bruno
From Monoliths to Services: Grafually paying your Technical DebtFrom Monoliths to Services: Grafually paying your Technical Debt
From Monoliths to Services: Grafually paying your Technical Debt
David Litvak Bruno423 views
Smaller is Better - Exploiting Microservice Architectures on AWS - Technical 201 by Amazon Web Services
Smaller is Better - Exploiting Microservice Architectures on AWS - Technical 201Smaller is Better - Exploiting Microservice Architectures on AWS - Technical 201
Smaller is Better - Exploiting Microservice Architectures on AWS - Technical 201
Amazon Web Services2.7K views
AWS Summit Auckland - Smaller is Better - Microservices on AWS by Amazon Web Services
AWS Summit Auckland - Smaller is Better - Microservices on AWSAWS Summit Auckland - Smaller is Better - Microservices on AWS
AWS Summit Auckland - Smaller is Better - Microservices on AWS
Microservices - an integration perspective by RubiX BV
Microservices - an integration perspectiveMicroservices - an integration perspective
Microservices - an integration perspective
RubiX BV261 views
Containing your microservice sprawl by LibbySchulze
Containing your microservice sprawlContaining your microservice sprawl
Containing your microservice sprawl
LibbySchulze256 views
AWS Innovate: Smaller IS Better – Exploiting Microservices on AWS, Craig Dickson by Amazon Web Services Korea
AWS Innovate: Smaller IS Better – Exploiting Microservices on AWS, Craig DicksonAWS Innovate: Smaller IS Better – Exploiting Microservices on AWS, Craig Dickson
AWS Innovate: Smaller IS Better – Exploiting Microservices on AWS, Craig Dickson
Microserces Architecture by Hadi Rasouli
Microserces ArchitectureMicroserces Architecture
Microserces Architecture
Hadi Rasouli230 views
Delivering DevOps on AWS - Transformation Day Public Sector London 2017 by Amazon Web Services
Delivering DevOps on AWS - Transformation Day Public Sector London 2017Delivering DevOps on AWS - Transformation Day Public Sector London 2017
Delivering DevOps on AWS - Transformation Day Public Sector London 2017
Building next gen applications and microservices by Dev_Events
Building next gen applications and microservicesBuilding next gen applications and microservices
Building next gen applications and microservices
Dev_Events418 views
The Reality of Managing Microservices in Your CD Pipeline by DevOps.com
The Reality of Managing Microservices in Your CD PipelineThe Reality of Managing Microservices in Your CD Pipeline
The Reality of Managing Microservices in Your CD Pipeline
DevOps.com230 views
Practical Microservice Architecture (edition 2022).pdf by Ahmed Misbah
Practical Microservice Architecture (edition 2022).pdfPractical Microservice Architecture (edition 2022).pdf
Practical Microservice Architecture (edition 2022).pdf
Ahmed Misbah748 views
Accelerate Delivery: Business case for Agile DevOps, CI/CD and Microservices by Rick Hightower
Accelerate Delivery: Business case for Agile DevOps, CI/CD and MicroservicesAccelerate Delivery: Business case for Agile DevOps, CI/CD and Microservices
Accelerate Delivery: Business case for Agile DevOps, CI/CD and Microservices
Rick Hightower276 views
DevOps Operations Challenges by Vijaya K
DevOps Operations ChallengesDevOps Operations Challenges
DevOps Operations Challenges
Vijaya K1.4K views
Microservices Tutorial for Beginners | All You Need to Get Started by Shailendra Chauhan
Microservices Tutorial for Beginners | All You Need to Get StartedMicroservices Tutorial for Beginners | All You Need to Get Started
Microservices Tutorial for Beginners | All You Need to Get Started
Shailendra Chauhan147 views

More from Apigee | Google Cloud

How Secure Are Your APIs? by
How Secure Are Your APIs?How Secure Are Your APIs?
How Secure Are Your APIs?Apigee | Google Cloud
17.3K views19 slides
Magazine Luiza at a glance (1) by
Magazine Luiza at a glance (1)Magazine Luiza at a glance (1)
Magazine Luiza at a glance (1)Apigee | Google Cloud
2.9K views6 slides
Monetization: Unlock More Value from Your APIs by
Monetization: Unlock More Value from Your APIs Monetization: Unlock More Value from Your APIs
Monetization: Unlock More Value from Your APIs Apigee | Google Cloud
11.9K views27 slides
Apigee Demo: API Platform Overview by
Apigee Demo: API Platform OverviewApigee Demo: API Platform Overview
Apigee Demo: API Platform OverviewApigee | Google Cloud
14.1K views19 slides
Ticketmaster at a glance by
Ticketmaster at a glanceTicketmaster at a glance
Ticketmaster at a glanceApigee | Google Cloud
2K views5 slides
AccuWeather: Recasting API Experiences in a Developer-First World by
AccuWeather: Recasting API Experiences in a Developer-First WorldAccuWeather: Recasting API Experiences in a Developer-First World
AccuWeather: Recasting API Experiences in a Developer-First WorldApigee | Google Cloud
3.7K views19 slides

More from Apigee | Google Cloud(20)

AccuWeather: Recasting API Experiences in a Developer-First World by Apigee | Google Cloud
AccuWeather: Recasting API Experiences in a Developer-First WorldAccuWeather: Recasting API Experiences in a Developer-First World
AccuWeather: Recasting API Experiences in a Developer-First World
The Four Transformative Forces of the API Management Market by Apigee | Google Cloud
The Four Transformative Forces of the API Management MarketThe Four Transformative Forces of the API Management Market
The Four Transformative Forces of the API Management Market
Managing the Complexity of Microservices Deployments by Apigee | Google Cloud
Managing the Complexity of Microservices DeploymentsManaging the Complexity of Microservices Deployments
Managing the Complexity of Microservices Deployments
Apigee | Google Cloud11.4K views
Microservices Done Right: Key Ingredients for Microservices Success by Apigee | Google Cloud
Microservices Done Right: Key Ingredients for Microservices SuccessMicroservices Done Right: Key Ingredients for Microservices Success
Microservices Done Right: Key Ingredients for Microservices Success
Apigee | Google Cloud12.8K views

Recently uploaded

360 graden fabriek by
360 graden fabriek360 graden fabriek
360 graden fabriekinfo33492
36 views25 slides
Navigating container technology for enhanced security by Niklas Saari by
Navigating container technology for enhanced security by Niklas SaariNavigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas SaariMetosin Oy
12 views34 slides
DSD-INT 2023 European Digital Twin Ocean and Delft3D FM - Dols by
DSD-INT 2023 European Digital Twin Ocean and Delft3D FM - DolsDSD-INT 2023 European Digital Twin Ocean and Delft3D FM - Dols
DSD-INT 2023 European Digital Twin Ocean and Delft3D FM - DolsDeltares
7 views23 slides
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge... by
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...Deltares
17 views12 slides
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)... by
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...Deltares
9 views34 slides
Headless JS UG Presentation.pptx by
Headless JS UG Presentation.pptxHeadless JS UG Presentation.pptx
Headless JS UG Presentation.pptxJack Spektor
7 views24 slides

Recently uploaded(20)

360 graden fabriek by info33492
360 graden fabriek360 graden fabriek
360 graden fabriek
info3349236 views
Navigating container technology for enhanced security by Niklas Saari by Metosin Oy
Navigating container technology for enhanced security by Niklas SaariNavigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas Saari
Metosin Oy12 views
DSD-INT 2023 European Digital Twin Ocean and Delft3D FM - Dols by Deltares
DSD-INT 2023 European Digital Twin Ocean and Delft3D FM - DolsDSD-INT 2023 European Digital Twin Ocean and Delft3D FM - Dols
DSD-INT 2023 European Digital Twin Ocean and Delft3D FM - Dols
Deltares7 views
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge... by Deltares
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
Deltares17 views
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)... by Deltares
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...
DSD-INT 2023 Modelling litter in the Yarra and Maribyrnong Rivers (Australia)...
Deltares9 views
Headless JS UG Presentation.pptx by Jack Spektor
Headless JS UG Presentation.pptxHeadless JS UG Presentation.pptx
Headless JS UG Presentation.pptx
Jack Spektor7 views
DSD-INT 2023 Wave-Current Interaction at Montrose Tidal Inlet System and Its ... by Deltares
DSD-INT 2023 Wave-Current Interaction at Montrose Tidal Inlet System and Its ...DSD-INT 2023 Wave-Current Interaction at Montrose Tidal Inlet System and Its ...
DSD-INT 2023 Wave-Current Interaction at Montrose Tidal Inlet System and Its ...
Deltares10 views
Generic or specific? Making sensible software design decisions by Bert Jan Schrijver
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J... by Deltares
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...
Deltares9 views
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko... by Deltares
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
Deltares12 views
Fleet Management Software in India by Fleetable
Fleet Management Software in India Fleet Management Software in India
Fleet Management Software in India
Fleetable11 views
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t... by Deltares
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...
Deltares9 views
Software evolution understanding: Automatic extraction of software identifier... by Ra'Fat Al-Msie'deen
Software evolution understanding: Automatic extraction of software identifier...Software evolution understanding: Automatic extraction of software identifier...
Software evolution understanding: Automatic extraction of software identifier...
Software testing company in India.pptx by SakshiPatel82
Software testing company in India.pptxSoftware testing company in India.pptx
Software testing company in India.pptx
SakshiPatel827 views
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra... by Marc Müller
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra....NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra...
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra...
Marc Müller38 views
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ... by Donato Onofri
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...
Donato Onofri773 views
Roadmap y Novedades de producto by Neo4j
Roadmap y Novedades de productoRoadmap y Novedades de producto
Roadmap y Novedades de producto
Neo4j50 views
Consulting for Data Monetization Maximizing the Profit Potential of Your Data... by Flexsin
Consulting for Data Monetization Maximizing the Profit Potential of Your Data...Consulting for Data Monetization Maximizing the Profit Potential of Your Data...
Consulting for Data Monetization Maximizing the Profit Potential of Your Data...
Flexsin 15 views

I Love APIs 2015: Microservices at Amazon

  • 1. Microservices at Amazon Chris Munns Business Development Manager - DevOps
  • 2. About me: Chris Munns - munns@amazon.com, @chrismunns – Business Development Manager – DevOps – New Yorker – Previously: •  AWS Solutions Architect 2011-2014 •  Lead of Infrastructure/DevOps @hingeapp •  Formerly on operations teams @Etsy and @Meetup •  Little time at a hedge fund, Xerox and others – Rochester Institute of Technology: Applied Networking and Systems Administration ’05 – Internet infrastructure geek
  • 3. The Micro-elephant in the room https://www.flickr.com/photos/davidrosenphotography/14711027415/
  • 4. Microservices “is a software architecture style in which complex applications are composed of small, independent processes communicating with each other using language-agnostic APIs. These services are small, highly decoupled and focus on doing a small task, facilitating a modular approach to system-building.” - Wikipedia https://en.wikipedia.org/wiki/Microservices
  • 5. Microservices Smart people are talking about it: •  Sam Newman - book “Building Microservices” O’Reilly Publishing •  Adrian Cockcroft – numerous talks, presentations, blog posts “Loosely coupled service oriented architecture with bounded contexts” •  Martin Fowler – numerous blog posts •  2 sessions at AWS Re:Invent 2014 •  ~8 sessions at AWS Re:Invent 2015
  • 6. But is it just a fad? Phil Calcado(ex-SoundCloud) in his Sept 8th post entitled “How we ended up with microservices.” highlighted the recent growth of the term: Data from Google Trends http://philcalcado.com/2015/09/08/how_we_ended_up_with_microservices.html
  • 7. But is it just a fad? As they say in dramatic police dramas….Let’s ENHANCE!: Data from Google Trends
  • 8. Lots of folks are doing it • Gilt: “From Monolith Ruby App to Distributed Scala Micro- Services” NYC Tech Talks • Nike: “Nike’s Journey to Microservices” – AWS Re:Invent 2014 • SoundCloud: ”Building Products at SoundCloud—Part III: Microservices in Scala and Finagle” • Capital One: “Lack Of Legacy Lets Capital One Build Nimble Infrastructure” – ThePlatform.net • Hailo: “A Journey into Microservices” – sudo.hailoapp.com
  • 9. Brilliant folks are sharing tools for it • Netflix: Dozens of tools - https://netflix.github.io/ • Airbnb: SmartStack - http://nerds.airbnb.com/ smartstack-service-discovery-cloud/ • Twitter: Mesos - https://mesos.apache.org/ • LinkedIn: Rest.li - https://github.com/linkedin/ rest.li
  • 12. •  Single-purpose •  Connect only through APIs •  Connect over HTTPS •  Largely “black boxes” to each other •  “Microservices”
  • 13. Microservices vs. SOA Wikipedia: “distinct from a Service-oriented architecture (SOA) in that the latter aims at integrating various (business) applications whereas several microservices belong to one application only” Martin Fowler: “This common manifestation of SOA has led some microservice advocates to reject the SOA label entirely, although others consider microservices to be one form of SOA” Oracle: “The picture that emerges is not of microservices as an alternative to SOA, but rather as a way to restore flexibility that may have been lost in SOAs that became too rigid and monolithic.” https://en.wikipedia.org/wiki/Microservices http://martinfowler.com/articles/microservices.html#MicroservicesAndSoa http://www.oracle.com/technetwork/issue-archive/2015/15-mar/o25architect-2458702.html
  • 14. Microservices: •  Many very small components •  Business logic lives inside of single service domain •  Simple wire protocols(HTTP with XML/JSON) •  API driven with SDKs/Clients SOA: •  Fewer more sophisticated components •  Business logic can live across domains •  Enterprise Service Bus like layers between services •  Middleware Microservices vs. SOA 14
  • 15. •  Two-pizza teams •  Full ownership •  Full accountability •  Aligned incentives •  “DevOps”
  • 16. Wait, now we’re talking about Pizza? 16 ©2015 Apigee. All Rights Reserved. Image By: Chris Munns – munns@amazon.com
  • 17. How do Two Pizza Teams work? We call them “Service teams” • Own the “primitives” they build: – Product planning (roadmap) – Development work – Operational/Client support work • “You build it, you run it” • Part of a larger concentrated org (Amazon.com, AWS, Prime, etc) 17
  • 18. Who Does QA? 18 The Two Pizza Team
  • 19. Who Does On Call? 19 Image By: Chris Munns – munns@amazon.com The Two Pizza Team
  • 21. What about Ops/QA/Etc? Everyone exists on a “service team” focused on their primitive(s): • SDE’s focused on developing • PM’s focused on product direction • TPM’s help drive development • SE’s focused on infra/tooling • SDET’s focused on test excellence throughout the organization Some folks are shared across the org, some on individual teams 21
  • 22. Boy, that sounds like a lot of freedom? It is! Teams are empowered and also held to high standards: • Thorough onboarding/training • Patterns/practices defined at scale and with 20+ years of organizational knowledge • Regular technical and business metric reviews • Regular sharing of new tools, services, technologies, etc, by internal subject matter experts 22
  • 23. Missing tools developers delivery pipelineservices ???
  • 24. •  Self-service •  Technology-agnostic •  Encourage best practices •  Single-purpose services
  • 25. •  Deployment service •  No downtime deployments •  Health checking •  Versioned artifacts and rollbacks
  • 26. •  Continuous delivery •  From check-in to production •  Automated actions and transitions •  >90% of teams Pipelines
  • 27. Microservice development lifecycle developers delivery pipelinesservices releasetestbuild releasetestbuild releasetestbuild releasetestbuild releasetestbuild releasetestbuild
  • 28. = 50 million deployments a year Thousands of teams × Microservice architecture × Continuous delivery × Multiple environments
  • 29. I’m sold, how do I make my own pizza? 29 ©2015 Apigee. All Rights Reserved. Image By: Chris Munns – munns@amazon.com
  • 30. How to make pizza? • Yeast • Water • Sugar • Olive oil • Tomato sauce • Cheese • <insert favorite toppings here> 30
  • 31. No Chris, I mean in the organizational/ technological sense 31 ©2015 Apigee. All Rights Reserved. Image By: Chris Munns – munns@amazon.com
  • 32. The keys to your own Two Pizza teams & Microservices Culture Practices Tools 32
  • 33. The keys to your own Two Pizza teams & Microservices Culture – Ownership & Accountability go hand in hand – Larger teams typically move slower than smaller teams – Insist on standards of excellence, but be flexible on the how Practices – Continuous Integration & Delivery – Simplify operational tasks Tools – CI & CD tools – Infrastructure management – Metrics/Monitoring/Logging – Communication and Collaboration 33
  • 34. The keys to your own Two Pizza teams & Microservices Culture – Ownership & Accountability go hand in hand – Larger teams typically move slower than smaller teams – Insist on standards of excellence, but be flexible on the how Practices – Continuous Integration & Delivery – Simplify operational tasks Tools – CI & CD tools – Infrastructure management – Metrics/Monitoring/Logging – Communication and Collaboration 34
  • 35. The keys to your own Two Pizza teams & Microservices Culture – Ownership & Accountability go hand in hand – Larger teams typically move slower than smaller teams – Insist on standards of excellence, but be flexible on the how Practices – Continuous Integration & Delivery – Simplify operational tasks Tools – CI & CD tools – Infrastructure management – Metrics/Monitoring/Logging – Communication and Collaboration 35
  • 36. The keys to your own Two Pizza teams & Microservices Culture – Ownership & Accountability go hand in hand – Larger teams typically move slower than smaller teams – Insist on standards of excellence, but be flexible on the how Practices – Continuous Integration & Delivery – Simplify operational tasks Tools – CI & CD tools – Infrastructure management – Metrics/Monitoring/Logging – Communication and Collaboration 36 Internal “Service teams” should own, support, train, drive excellence of these tools
  • 37. Apollo and Pipelines as AWS Services: CodePipeline launched July 2015 CodeDeploy launched Nov 2014
  • 38. Establishing a pattern for services and clients It’s important that the organization isn’t reinventing the wheel on every new service: •  How are clients going to communicate? •  What cross service authorization requirements are there? •  How do services prevent abuse? •  How do you quickly build clients against a service? •  How do services handle discovery of others services and resources?
  • 39. Use an API Gateway! Internet Mobile Apps Websites Services API Gateway AWS Lambda functions API Gateway Cache Endpoints on Amazon EC2 Any other publicly accessible endpoint Amazon CloudWatch Monitoring Amazon CloudFront
  • 41. FIN, ACK This is a big topic that is hard to cover in a single session, day, week! Key pointers: •  Microservices patterns are changing how we are building APIs and our applications in general •  Team structure plays an incredible role in building, running, scaling Microservices •  Focusing on flexible tooling that provides standards can help an organization focus on what matters •  Enable the smart people you hire to do great things by giving them both ownership and accountability on those things success 41