SlideShare a Scribd company logo
1 of 40
Download to read offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Inside AWS: Technology Choices for
Modern Applications
Tim Bray
Messaging/Serverless/Workflow guy, AWS
[ timbray@amazon.com, @timbray, www.tbray.org ]
S R V - 3 0 5
“Modern Applications”
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thursday, November 29
Leadership Session: Using DevOps, Microservices, and Serverless
to Accelerate Innovation (SRV325)
12:15 – 1:15 PM | Venetian Theatre (Level 2)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Assess and
prioritize,
app by app
Pick path to
modernization
Lift & shift:
data center → EC2
Re-platform:
VMs → containers
Refactor:
monolith → microservices
Re-invent:
host fleets → serverless
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Assess and
prioritize,
app by app
Pick path to
modernization
Lift & shift:
data center → EC2
Re-platform:
VMs → containers
Refactor:
monolith → microservices
Re-invent:
host fleets → serverless
Integration is a really big deal.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Storybird.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Storybird.com
MySQLvia
Amazon RDS
Django on
Amazon EC2
Application
Load Balancer
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“Modern Applications”
1. Security/compliance first
2. Use microservices
3. Serverless where possible
4. CI/CD
5. Monitor, monitor, monitor!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“Modern Applications”
1. Security/compliance first
2. Use microservices
3. Serverless where possible
4. CI/CD
5. Monitor, monitor, monitor!
6. Databases
7. Integration interfaces
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How Amazon SQS works
Front End
Back End
Metadata
Amazon
DynamoDB
Load
Manager
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why serverless?
1. Frugality
2. Security
3. Elasticity
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why serverless?
1. Frugality
2. Security
3. Elasticity
4. Better design?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How Amazon MQ works
Amazon
API Gateway λ
DynamoDB
Control Plane
Data Plane
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A few AWS services with serverless Control Planes
Amazon
SageMaker
AWS AppSyncAWS Batch AWS
Elemental
AWS
IoT Core
Amazon
GuardDuty
Amazon
EKS
API Gateway
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why not serverless?
What about Latency?!?!?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thinking about latency
P50
P90
P99
P100
1 sec
24 sec
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sources of serverless function latency
Runtime startup State hydration
Serverless platform startup
vs
Language runtime startup
Cold startup
vs
Warm startup
P50 vs P90 vs P99 vs P100
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Latency management 1: Keep functions warm
Photo: Ryan Mahle from Sherman Oaks, CA, USA - Flickr.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Latency management 2:
Programming languages
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Latency management 3: State hydration
Amazon S3
λ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Latency management 3: State hydration
DBMS
API Gateway
AWS AppSync
Amazon
SQS
Amazon SNSAmazon
Kinesis
AWS
ElastiCache
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How the SFN/SWF History service works
DynamoDB
Workflows
Event
Routing
= execution)(
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Databases in Modern Applications
RDBMS
(Amazon RDS)
NoSQL
(DynamoDB)
DynamoDB
Accelerator
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Relational or not?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Databases in Modern Applications
RDBMS
(RDS)
NoSQL
(DynamoDB)
DynamoDB
Accelerator
Amazon Quantum
Ledger Database
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Logs, immutability, and Quantum
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon QLDB
Summary
Journal
Transactions
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
QLDB tl;dr
SummaryJournal
Transactions
• Transactions are SQL-ish
• Query the Summary with SQL
• “Records” are ION (JSON superset) documents
• Journal is a cryptographically chained immutable ledger
• Journal is also a database table
• It’s serverless!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How the SFN/SWF History service works
DynamoDB
Workflows
Event
Routing
= execution)(
QLDB
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Some AWS services that use containers
SageMaker Amazon
Rekognition
Batch Elemental
…more…
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Containers and serverlessness
VM
Container
Function
Cheetah: Malene Thyssen (http://commons.wikimedia.org/wiki/User:Malene)
Orthogonal… in theory
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Integration patterns
APIs Orchestration Eventing
Tightly-coupled
Contract-driven
Synchronous
Fast
Long-lived
Data-driven
Durable
Unified logging
Loosely-coupled
Data-driven
Asynchronous
Buffered
Durable
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Orchestration
Orchestration
Long-lived
Data-driven
Durable
Unified logging
AWS Step
Functions
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Event-driven Computing
Eventing
Loosely-coupled
Data-driven
Asynchronous
Buffered
Durable
Amazon
SNS
Amazon CloudWatch
Events
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How Step Functions Connectors work
AWS Step
Functions
AWS
Glue
Amazon CloudWatch
Events
Amazon
SQS
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Tim Bray
timbray@amazon.com / @timbray / www.tbray.org
Please complete the session
survey in the mobile app.
!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

What's hot (20)

Hands-On: Automating AWS Infrastructure with PowerShell (WIN308) - AWS re:Inv...
Hands-On: Automating AWS Infrastructure with PowerShell (WIN308) - AWS re:Inv...Hands-On: Automating AWS Infrastructure with PowerShell (WIN308) - AWS re:Inv...
Hands-On: Automating AWS Infrastructure with PowerShell (WIN308) - AWS re:Inv...
 
Extending Data Centers to the Cloud: Connectivity Options and Best Practices ...
Extending Data Centers to the Cloud: Connectivity Options and Best Practices ...Extending Data Centers to the Cloud: Connectivity Options and Best Practices ...
Extending Data Centers to the Cloud: Connectivity Options and Best Practices ...
 
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
 
SID301 Threat Detection and Mitigation
 SID301 Threat Detection and Mitigation SID301 Threat Detection and Mitigation
SID301 Threat Detection and Mitigation
 
Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018
Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018
Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018
 
高度規模化、可信賴的混合雲網路 (Level 300-400)
高度規模化、可信賴的混合雲網路 (Level 300-400)高度規模化、可信賴的混合雲網路 (Level 300-400)
高度規模化、可信賴的混合雲網路 (Level 300-400)
 
SPEKE-ing of Content Protection & DRM (MAE302) - AWS re:Invent 2018
SPEKE-ing of Content Protection & DRM (MAE302) - AWS re:Invent 2018SPEKE-ing of Content Protection & DRM (MAE302) - AWS re:Invent 2018
SPEKE-ing of Content Protection & DRM (MAE302) - AWS re:Invent 2018
 
Autonomous DevSecOps: Five Steps to a Self-Driving Cloud (ENT214-S) - AWS re:...
Autonomous DevSecOps: Five Steps to a Self-Driving Cloud (ENT214-S) - AWS re:...Autonomous DevSecOps: Five Steps to a Self-Driving Cloud (ENT214-S) - AWS re:...
Autonomous DevSecOps: Five Steps to a Self-Driving Cloud (ENT214-S) - AWS re:...
 
SRV204 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity ...
 SRV204 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity ... SRV204 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity ...
SRV204 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity ...
 
DEM04 Fearless: From Monolith to Serverless with Dynatrace
DEM04 Fearless: From Monolith to Serverless with DynatraceDEM04 Fearless: From Monolith to Serverless with Dynatrace
DEM04 Fearless: From Monolith to Serverless with Dynatrace
 
How HSBC Uses Serverless to Process Millions of Transactions in Real Time (FS...
How HSBC Uses Serverless to Process Millions of Transactions in Real Time (FS...How HSBC Uses Serverless to Process Millions of Transactions in Real Time (FS...
How HSBC Uses Serverless to Process Millions of Transactions in Real Time (FS...
 
Executive Security Simulation Workshop (WPS206) - AWS re:Invent 2018
Executive Security Simulation Workshop (WPS206) - AWS re:Invent 2018Executive Security Simulation Workshop (WPS206) - AWS re:Invent 2018
Executive Security Simulation Workshop (WPS206) - AWS re:Invent 2018
 
Multi-Account Strategy and Security with Centrica Hive
Multi-Account Strategy and Security with Centrica HiveMulti-Account Strategy and Security with Centrica Hive
Multi-Account Strategy and Security with Centrica Hive
 
AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...
AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...
AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...
 
AWS Systems Manage: Bridging Operational Models
AWS Systems Manage: Bridging Operational Models AWS Systems Manage: Bridging Operational Models
AWS Systems Manage: Bridging Operational Models
 
善用 GraphQL 與 AWS AppSync 讓您的 Progressive Web App (PWA) 加速進化 (Level 200)
善用  GraphQL 與 AWS AppSync 讓您的  Progressive Web App (PWA) 加速進化 (Level 200)善用  GraphQL 與 AWS AppSync 讓您的  Progressive Web App (PWA) 加速進化 (Level 200)
善用 GraphQL 與 AWS AppSync 讓您的 Progressive Web App (PWA) 加速進化 (Level 200)
 
What's New with the AWS CLI (DEV322-R1) - AWS re:Invent 2018
What's New with the AWS CLI (DEV322-R1) - AWS re:Invent 2018What's New with the AWS CLI (DEV322-R1) - AWS re:Invent 2018
What's New with the AWS CLI (DEV322-R1) - AWS re:Invent 2018
 
AWS PrivateLink Fundamentals
AWS PrivateLink FundamentalsAWS PrivateLink Fundamentals
AWS PrivateLink Fundamentals
 
SID305 AWS Certificate Manager Private CA
SID305 AWS Certificate Manager Private CASID305 AWS Certificate Manager Private CA
SID305 AWS Certificate Manager Private CA
 
SRV207 Orchestrating AWS Lambda with Step Functions
 SRV207 Orchestrating AWS Lambda with Step Functions SRV207 Orchestrating AWS Lambda with Step Functions
SRV207 Orchestrating AWS Lambda with Step Functions
 

Similar to Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:Invent 2018

Similar to Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:Invent 2018 (20)

The Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteThe Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 Keynote
 
Microservices for Startups
Microservices for StartupsMicroservices for Startups
Microservices for Startups
 
Scaling from zero to millions of users
Scaling from zero to millions of usersScaling from zero to millions of users
Scaling from zero to millions of users
 
Orchestrating containers on AWS | AWS Floor28
Orchestrating containers on AWS | AWS Floor28Orchestrating containers on AWS | AWS Floor28
Orchestrating containers on AWS | AWS Floor28
 
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
 
How to build scalable and resilient applications in the cloud - AWS Summit Ca...
How to build scalable and resilient applications in the cloud - AWS Summit Ca...How to build scalable and resilient applications in the cloud - AWS Summit Ca...
How to build scalable and resilient applications in the cloud - AWS Summit Ca...
 
Serverless Architectural Patterns - ServerlessDays TLV
Serverless Architectural Patterns - ServerlessDays TLVServerless Architectural Patterns - ServerlessDays TLV
Serverless Architectural Patterns - ServerlessDays TLV
 
Aws lambda webinar -buraku
Aws lambda webinar -burakuAws lambda webinar -buraku
Aws lambda webinar -buraku
 
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
 
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
 
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
 
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
 
Serverless Architectural Patterns and Best Practices
Serverless Architectural Patterns and Best PracticesServerless Architectural Patterns and Best Practices
Serverless Architectural Patterns and Best Practices
 
AWS re:Invent recap
AWS re:Invent recapAWS re:Invent recap
AWS re:Invent recap
 
Una introduzione alle differenti risorse computazionali disponibili con AWS
Una introduzione alle differenti risorse computazionali disponibili con AWSUna introduzione alle differenti risorse computazionali disponibili con AWS
Una introduzione alle differenti risorse computazionali disponibili con AWS
 
A Chronicle of Airbnb Architecture Evolution (ARC407) - AWS re:Invent 2018
A Chronicle of Airbnb Architecture Evolution (ARC407) - AWS re:Invent 2018A Chronicle of Airbnb Architecture Evolution (ARC407) - AWS re:Invent 2018
A Chronicle of Airbnb Architecture Evolution (ARC407) - AWS re:Invent 2018
 
More Containers Less Operations
More Containers Less OperationsMore Containers Less Operations
More Containers Less Operations
 
Ci/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO ClubCi/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO Club
 
Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...
Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...
Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...
 
Run Production Workloads on Spot, Save up to 90%
Run Production Workloads on Spot, Save up to 90%Run Production Workloads on Spot, Save up to 90%
Run Production Workloads on Spot, Save up to 90%
 

More from Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Inside AWS: Technology Choices for Modern Applications Tim Bray Messaging/Serverless/Workflow guy, AWS [ timbray@amazon.com, @timbray, www.tbray.org ] S R V - 3 0 5
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thursday, November 29 Leadership Session: Using DevOps, Microservices, and Serverless to Accelerate Innovation (SRV325) 12:15 – 1:15 PM | Venetian Theatre (Level 2)
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Assess and prioritize, app by app Pick path to modernization Lift & shift: data center → EC2 Re-platform: VMs → containers Refactor: monolith → microservices Re-invent: host fleets → serverless
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Assess and prioritize, app by app Pick path to modernization Lift & shift: data center → EC2 Re-platform: VMs → containers Refactor: monolith → microservices Re-invent: host fleets → serverless Integration is a really big deal.
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Storybird.com
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Storybird.com MySQLvia Amazon RDS Django on Amazon EC2 Application Load Balancer
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. “Modern Applications” 1. Security/compliance first 2. Use microservices 3. Serverless where possible 4. CI/CD 5. Monitor, monitor, monitor!
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. “Modern Applications” 1. Security/compliance first 2. Use microservices 3. Serverless where possible 4. CI/CD 5. Monitor, monitor, monitor! 6. Databases 7. Integration interfaces
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How Amazon SQS works Front End Back End Metadata Amazon DynamoDB Load Manager
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why serverless? 1. Frugality 2. Security 3. Elasticity
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why serverless? 1. Frugality 2. Security 3. Elasticity 4. Better design?
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How Amazon MQ works Amazon API Gateway λ DynamoDB Control Plane Data Plane
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. A few AWS services with serverless Control Planes Amazon SageMaker AWS AppSyncAWS Batch AWS Elemental AWS IoT Core Amazon GuardDuty Amazon EKS API Gateway
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why not serverless? What about Latency?!?!?
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thinking about latency P50 P90 P99 P100 1 sec 24 sec
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sources of serverless function latency Runtime startup State hydration Serverless platform startup vs Language runtime startup Cold startup vs Warm startup P50 vs P90 vs P99 vs P100
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Latency management 1: Keep functions warm Photo: Ryan Mahle from Sherman Oaks, CA, USA - Flickr.com
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Latency management 2: Programming languages
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Latency management 3: State hydration Amazon S3 λ
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Latency management 3: State hydration DBMS API Gateway AWS AppSync Amazon SQS Amazon SNSAmazon Kinesis AWS ElastiCache
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How the SFN/SWF History service works DynamoDB Workflows Event Routing = execution)(
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Databases in Modern Applications RDBMS (Amazon RDS) NoSQL (DynamoDB) DynamoDB Accelerator
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Relational or not?
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Databases in Modern Applications RDBMS (RDS) NoSQL (DynamoDB) DynamoDB Accelerator Amazon Quantum Ledger Database
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Logs, immutability, and Quantum
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon QLDB Summary Journal Transactions
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. QLDB tl;dr SummaryJournal Transactions • Transactions are SQL-ish • Query the Summary with SQL • “Records” are ION (JSON superset) documents • Journal is a cryptographically chained immutable ledger • Journal is also a database table • It’s serverless!
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How the SFN/SWF History service works DynamoDB Workflows Event Routing = execution)( QLDB
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Some AWS services that use containers SageMaker Amazon Rekognition Batch Elemental …more…
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Containers and serverlessness VM Container Function Cheetah: Malene Thyssen (http://commons.wikimedia.org/wiki/User:Malene) Orthogonal… in theory
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Integration patterns APIs Orchestration Eventing Tightly-coupled Contract-driven Synchronous Fast Long-lived Data-driven Durable Unified logging Loosely-coupled Data-driven Asynchronous Buffered Durable
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Orchestration Orchestration Long-lived Data-driven Durable Unified logging AWS Step Functions
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event-driven Computing Eventing Loosely-coupled Data-driven Asynchronous Buffered Durable Amazon SNS Amazon CloudWatch Events
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How Step Functions Connectors work AWS Step Functions AWS Glue Amazon CloudWatch Events Amazon SQS
  • 39. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Tim Bray timbray@amazon.com / @timbray / www.tbray.org
  • 40. Please complete the session survey in the mobile app. ! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.