SlideShare a Scribd company logo
1 of 61
Download to read offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Serverless
Sandor Maurice
Sr. Engineering Manager
Amazon RDS
D A T 3 3 6
Joshua Eichorn
CTO
Pagely
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Related breakouts
Tuesday, November 27
What’s New in Amazon Aurora
1:00 PM - 2:00 PM | Venetian, Level 2, Titian 2202
Tuesday, November 27
DAT304 - Deep Dive on Amazon Aurora with MySQL Compatibility
6:15 PM – 7:15 PM | Venetian, Level 4, Marcello 4505
Thursday, November 29
Amazon Aurora Storage Demystified: How It All Works
2:30 PM - 3:30 PM | Venetian, Level 4, Lando 4305
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
• RDS & Aurora fundamentals
• Aurora Serverless
• How it works
• What’s new?
• Case Study - Pagely
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon RDS is . . .
Cloud native engine Open source engines Commercial engines
RDS platform
• Automatic fail-over
• Backup & recovery
• X-region replication
• Isolation & security
• Industry compliance
• Automated patching
• Advanced monitoring
• Routine maintenance
• Push-button scaling
Image credit: By Mackphillips - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=55946550
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora is . . .. . .
Cloud native engine Open source engines Commercial engines
RDS platform
• Automatic fail-over
• Backup & recovery
• X-region replication
• Isolation & security
• Industry compliance
• Automated patching
• Advanced monitoring
• Routine maintenance
• Push-button scaling
Image credit: By Mackphillips - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=55946550
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora - databases reimagined for the cloud
Speed and availability of high-end commercial databases
Simplicity and cost-effectiveness of open source databases
Drop-in compatibility with MySQL and PostgreSQL
Simple pay as you go pricing
Delivered as a fully managed service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Availability zone 1
Region
Availability zone 2 Availability zone 3
Scale-out, distributed, multi-tenant design . . .
Purpose-built log-structured,
distributed storage
Shared storage volume
Storage nodes with SSDs
Master
SQL
Transactions
Caching
Reader
5
Reader
9
SQL
Transactions
Caching
SQL
Transactions
Caching
Reader
1
SQL
Transactions
Caching
Reader
8
SQL
Transactions
Caching
Reader
15
SQL
Transactions
Caching
… … …
10GiB stripes
Master and up to 15 Readers
all point to the same storage
6-way replication, 2 per AZ
Quorums survive AZ+1 failure
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Availability zone 1
Region
Availability zone 2 Availability zone 3
With provisioned Aurora, you size the master yourself
Shared storage volume
Storage nodes with SSDs
Master
SQL
Transactions
Caching
Size for the peak load
-or-
Continuously monitor and
manually scale up/down
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Serverless . . .
Responds to your application automatically
• Scale capacity
• Shut down
• Start up
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Example #1 – episodic dev-test workload
VolumeWriteIOPs, 120-hour window
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Example #2 – mostly idle dev-test workload
VolumeWriteIOPs, 120-hour window
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Example #3 – spiky gaming workload
VolumeWriteIOPs, 120-hour window
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Example #4 – ecommerce production workload
VolumeWriteIOPs, 24-hour window
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
You have some choices to make . . .
Provision for peak
Continuously monitor and
manually scale up/down
-or-
Expensive
Hard
• Requires experts
• Risks outages
Provision less than peak End-user (business) impact
-or-
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database capacity management
Availability zone 1
Region
App
Shared distributed storage volume
Master
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database capacity management
Availability zone 1
Region
App
Shared distributed storage volume
Original master Scale-up target
Add a scale-up target
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database capacity management
Availability zone 1
Region
App
Shared distributed storage volume
Original master New master
Cutover
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database capacity management
Availability zone 1
Region
App
Shared distributed storage volume
Original master New master
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database capacity management
Availability zone 1
Region
App
Shared distributed storage volume
Original master Scale-up target
Add a proxy, shield the application
from connection changesProxy
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database capacity management
Availability zone 1
Region
App
Shared distributed storage volume
New scale-up target
Proxy
New master
Cutover
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database capacity management – is hard
Availability zone 1
Region
App
Shared distributed storage volume
New scale-up target
Proxy
New master
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Serverless . . .
Responds to your application load automatically
• Scale capacity with no downtime
• Multi-tenant proxy is highly available
• Scale target has warm buffer pool
• Shuts down when not in use
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work . . .
Availability zone 1
Region
App
Shared distributed storage volume
Multi-tenant proxy layer
Warm-pool of Aurora instances
Monitoring service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work . . .
Availability zone 1
Region
App
Shared distributed storage volume
Multi-tenant proxy layer
Warm-pool of Aurora instances
Monitoring service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work . . .
Availability zone 1
Region
App
Shared distributed storage volume
Multi-tenant proxy layer
Warm-pool of Aurora instances
Monitoring service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work . . .
Availability zone 1
Region
App
Shared distributed storage volume
Multi-tenant proxy layer
Warm-pool of Aurora instances
Monitoring service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work . . .
Availability zone 1
Region
App
Shared distributed storage volume
Multi-tenant proxy layer
Warm-pool of Aurora instances
Monitoring service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work . . .
Availability zone 1
Region
App
Shared distributed storage volume
Multi-tenant proxy layer
Warm-pool of Aurora instances
Monitoring service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work . . .
Availability zone 1
Region
App
Shared distributed storage volume
Multi-tenant proxy layer
Warm-pool of Aurora instances
Monitoring service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work . . .
Availability zone 1
Region
App
Shared distributed storage volume
Multi-tenant proxy layer
Warm-pool of Aurora instances
Monitoring service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work in practice?
0
500
1000
1500
2000
2500
3000
1
12
23
34
45
56
67
78
89
100
111
122
133
144
155
166
177
188
199
210
221
232
243
254
265
276
287
298
309
320
331
342
353
364
375
386
397
408
419
430
441
452
463
474
485
496
507
518
529
540
551
562
573
584
595
606
617
628
639
650
661
672
683
694
705
716
727
tps
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work in practice?
1
2
4
8
16
32
64
128
0
500
1000
1500
2000
2500
3000
1
12
23
34
45
56
67
78
89
100
111
122
133
144
155
166
177
188
199
210
221
232
243
254
265
276
287
298
309
320
331
342
353
364
375
386
397
408
419
430
441
452
463
474
485
496
507
518
529
540
551
562
573
584
595
606
617
628
639
650
661
672
683
694
705
716
727
738
tps ACU
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work in practice?
0
10
20
30
40
50
60
70
1
12
23
34
45
56
67
78
89
100
111
122
133
144
155
166
177
188
199
210
221
232
243
254
265
276
287
298
309
320
331
342
353
364
375
386
397
408
419
430
441
452
463
474
485
496
507
518
529
540
551
562
573
584
595
606
617
628
639
650
661
672
683
694
705
716
727
0
50
100
150
200
250
300
350
400
450
500
ms ACU
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does it work in practice?
0
50
100
150
200
250
300
350
400
450
500
0
500
1000
1500
2000
2500
3000
1
12
23
34
45
56
67
78
89
100
111
122
133
144
155
166
177
188
199
210
221
232
243
254
265
276
287
298
309
320
331
342
353
364
375
386
397
408
419
430
441
452
463
474
485
496
507
518
529
540
551
562
573
584
595
606
617
628
639
650
661
672
683
694
705
716
727
738
tps ms
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
That said . . .
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introducing RDS Data API
• Simple web service protocol for database access
• SQL statements packaged as HTTP requests
• Access your database from AWS Lambda and AWS AppSync
• Access your database from the AWS SDK & CLI
Data API Service
Aurora Serverless
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introducing RDS Console Query Editor
• Access your database from
AWS Management Console
• No database client application
or terminal required
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Serverless – for PostgreSQL
Now in preview, sign-up today:
https://pages.awscloud.com/amazon-
aurora-postgresql-serverless-
preview.html
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Serverless – more regions
• Aurora Serverless newly available in:
• Seoul
• Singapore
• Sydney
• Mumbai
• N. California
• London, Paris
• Frankfurt
• Central Canada
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Invoking Data API from Lambda
ExecuteSqlRequest sqlRequest = new ExecuteSqlRequest();
sqlRequest.setSqlStatements(String.format("Select count(*) from
Demo.Cities where City = '%s' group by City;", city));
ExecuteSqlResult result = awsRDSDataAPI.executeSql(sqlRequest);
Long peopleFromCityCount =
result.getSqlStatementResults().get(0).getResultFrame().getRecords()
.get(0).getValues().get(0).getBigIntValue();
https://github.com/aws-samples/amazon-rds-data-api-demo
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Joshua Eichorn
CTO
Pagely
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
WordPress powers 32% of the Web
• More than blogs and CMS
• Ecommerce
• Membership sites
• Custom Apps
• Pagely brings
• Devops
• Scale
• Piece of mind
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• Serverless Application Hosting
• Autoscaling
• Workflow
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Northstack High Level Architecture
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Details
• Using ECS for compute
• App gateway + workers can stop
• Each production app gets its own
Aurora Serverless
• For cacheable sites only the
gateway is running
Picture: Aurora 2010 / Michael R. P. Ragazzon / Creative Commons
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Database is Hard
• WordPress read after write limits slave usefulness
• Single tenant option
• Resizing a master means failover
• Failover = outage
• Multi-tenant option
• Constant balancing chore
• Noisy neighbors
Picture: Elastic Close-Up / Marco Verch / Creative Commons
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Serverless a perfect fit
• Scales the master
• Scaling without downtime
• Less work needed from my team
• Pausing
Picture: Perfect. / taraesque / Creative Commons
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Things to watch out for
• Resume from pause time is
inconsistent
• Aurora needs a place to
scale
• MySQL server has gone
away errors
Picture: ShelbyPeek / josephdepalma / Creative Commons
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Managing timeouts around pause
• Biggest cost savings come from pause
• Resume is high time variance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A WordPress Slow query Story
• Full table scans of meta_value are common
• 2 ACU query takes 10 minutes
• 8 ACU query takes < 2 seconds
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Giving Aurora a place to scale
• Add query timeouts
• Be careful about global timeouts
• Not always easy
• SET SESSION MAX_EXECUTION_TIME=2000; <- Mysql 5.7 only 
• Sysown Proxysql mysql-default_query_timeout 
• For PHP use mysqlnd + mysqlnd.net_read_timeout 
Picture: Waimea expanse / Alex Schwab / Creative Commons
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
MySQL server has gone away errors
• More common with Aurora
Serverless
• Timeouts increase occurrence
• Enable auto reconnect if possible
• Custom DB driver in WordPress to
catch and reconnect
• Sysown Proxysql
Picture: Gone / Marina del Castell / Creative Commons
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sandor Maurice
samauri@amazon.com
Joshua Eichorn
joshua.eichorn@pagely.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

AWS Multi-Account Architecture and Best Practices
AWS Multi-Account Architecture and Best PracticesAWS Multi-Account Architecture and Best Practices
AWS Multi-Account Architecture and Best PracticesAmazon Web Services
 
An Introduction to the AWS Well Architected Framework - Webinar
An Introduction to the AWS Well Architected Framework - WebinarAn Introduction to the AWS Well Architected Framework - Webinar
An Introduction to the AWS Well Architected Framework - WebinarAmazon Web Services
 
re:Invent 2022 DAT326 Deep dive into Amazon Aurora and its innovations
re:Invent 2022  DAT326 Deep dive into Amazon Aurora and its innovationsre:Invent 2022  DAT326 Deep dive into Amazon Aurora and its innovations
re:Invent 2022 DAT326 Deep dive into Amazon Aurora and its innovationsGrant McAlister
 
AWS 9월 웨비나 | Amazon Aurora Deep Dive
AWS 9월 웨비나 | Amazon Aurora Deep DiveAWS 9월 웨비나 | Amazon Aurora Deep Dive
AWS 9월 웨비나 | Amazon Aurora Deep DiveAmazon Web Services Korea
 
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQLAmazon Web Services Japan
 
DAT302_Deep Dive on Amazon Relational Database Service (RDS)
DAT302_Deep Dive on Amazon Relational Database Service (RDS)DAT302_Deep Dive on Amazon Relational Database Service (RDS)
DAT302_Deep Dive on Amazon Relational Database Service (RDS)Amazon Web Services
 
Azure governance v4.0
Azure governance v4.0Azure governance v4.0
Azure governance v4.0Marcos Oikawa
 
[AWSマイスターシリーズ] Instance Store & Elastic Block Store
[AWSマイスターシリーズ] Instance Store & Elastic Block Store[AWSマイスターシリーズ] Instance Store & Elastic Block Store
[AWSマイスターシリーズ] Instance Store & Elastic Block StoreAmazon Web Services Japan
 
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS SummitAmazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS SummitAmazon Web Services
 
SRV308 Deep Dive on Amazon Aurora
SRV308 Deep Dive on Amazon AuroraSRV308 Deep Dive on Amazon Aurora
SRV308 Deep Dive on Amazon AuroraAmazon Web Services
 
20191001 AWS Black Belt Online Seminar AWS Lake Formation
20191001 AWS Black Belt Online Seminar AWS Lake Formation 20191001 AWS Black Belt Online Seminar AWS Lake Formation
20191001 AWS Black Belt Online Seminar AWS Lake Formation Amazon Web Services Japan
 
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...Amazon Web Services
 
Webinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCI
Webinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCIWebinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCI
Webinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCIStorage Switzerland
 

What's hot (20)

AWS Multi-Account Architecture and Best Practices
AWS Multi-Account Architecture and Best PracticesAWS Multi-Account Architecture and Best Practices
AWS Multi-Account Architecture and Best Practices
 
Aurora Deep Dive | AWS Floor28
Aurora Deep Dive | AWS Floor28Aurora Deep Dive | AWS Floor28
Aurora Deep Dive | AWS Floor28
 
Databases on AWS Workshop.pdf
Databases on AWS Workshop.pdfDatabases on AWS Workshop.pdf
Databases on AWS Workshop.pdf
 
Introduction to Sagemaker
Introduction to SagemakerIntroduction to Sagemaker
Introduction to Sagemaker
 
An Introduction to the AWS Well Architected Framework - Webinar
An Introduction to the AWS Well Architected Framework - WebinarAn Introduction to the AWS Well Architected Framework - Webinar
An Introduction to the AWS Well Architected Framework - Webinar
 
re:Invent 2022 DAT326 Deep dive into Amazon Aurora and its innovations
re:Invent 2022  DAT326 Deep dive into Amazon Aurora and its innovationsre:Invent 2022  DAT326 Deep dive into Amazon Aurora and its innovations
re:Invent 2022 DAT326 Deep dive into Amazon Aurora and its innovations
 
AWS for Backup and Recovery
AWS for Backup and RecoveryAWS for Backup and Recovery
AWS for Backup and Recovery
 
AWS 9월 웨비나 | Amazon Aurora Deep Dive
AWS 9월 웨비나 | Amazon Aurora Deep DiveAWS 9월 웨비나 | Amazon Aurora Deep Dive
AWS 9월 웨비나 | Amazon Aurora Deep Dive
 
Cost Optimization on AWS
Cost Optimization on AWSCost Optimization on AWS
Cost Optimization on AWS
 
Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
 
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
 
DAT302_Deep Dive on Amazon Relational Database Service (RDS)
DAT302_Deep Dive on Amazon Relational Database Service (RDS)DAT302_Deep Dive on Amazon Relational Database Service (RDS)
DAT302_Deep Dive on Amazon Relational Database Service (RDS)
 
Azure governance v4.0
Azure governance v4.0Azure governance v4.0
Azure governance v4.0
 
[AWSマイスターシリーズ] Instance Store & Elastic Block Store
[AWSマイスターシリーズ] Instance Store & Elastic Block Store[AWSマイスターシリーズ] Instance Store & Elastic Block Store
[AWSマイスターシリーズ] Instance Store & Elastic Block Store
 
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS SummitAmazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
 
Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
 
SRV308 Deep Dive on Amazon Aurora
SRV308 Deep Dive on Amazon AuroraSRV308 Deep Dive on Amazon Aurora
SRV308 Deep Dive on Amazon Aurora
 
20191001 AWS Black Belt Online Seminar AWS Lake Formation
20191001 AWS Black Belt Online Seminar AWS Lake Formation 20191001 AWS Black Belt Online Seminar AWS Lake Formation
20191001 AWS Black Belt Online Seminar AWS Lake Formation
 
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...
 
Webinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCI
Webinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCIWebinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCI
Webinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCI
 

Similar to Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) - AWS re:Invent 2018

Databases - EBC on the road Brazil Edition [Portuguese]
Databases - EBC on the road Brazil Edition [Portuguese]Databases - EBC on the road Brazil Edition [Portuguese]
Databases - EBC on the road Brazil Edition [Portuguese]Amazon Web Services
 
AWSome Day - Solutions Architecture Best Practices
AWSome Day - Solutions Architecture Best PracticesAWSome Day - Solutions Architecture Best Practices
AWSome Day - Solutions Architecture Best PracticesAmazon Web Services
 
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 usersAmazon Web Services
 
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...Amazon Web Services
 
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdfCome scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdfAmazon Web Services
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Amazon Web Services
 
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 2018Amazon Web Services
 
Gaining Better Observability of Your VMs with Amazon CloudWatch - AWS Online ...
Gaining Better Observability of Your VMs with Amazon CloudWatch - AWS Online ...Gaining Better Observability of Your VMs with Amazon CloudWatch - AWS Online ...
Gaining Better Observability of Your VMs with Amazon CloudWatch - AWS Online ...Amazon Web Services
 
Achieving Global Consistency Using AWS CloudFormation StackSets - AWS Online ...
Achieving Global Consistency Using AWS CloudFormation StackSets - AWS Online ...Achieving Global Consistency Using AWS CloudFormation StackSets - AWS Online ...
Achieving Global Consistency Using AWS CloudFormation StackSets - AWS Online ...Amazon Web Services
 
How to Effectively Plan for Disaster Recovery on AWS (CMP204-S) - AWS re:Inve...
How to Effectively Plan for Disaster Recovery on AWS (CMP204-S) - AWS re:Inve...How to Effectively Plan for Disaster Recovery on AWS (CMP204-S) - AWS re:Inve...
How to Effectively Plan for Disaster Recovery on AWS (CMP204-S) - AWS re:Inve...Amazon Web Services
 
建構全球跨區域 x Active-Active架構的無伺服器化後台服務
建構全球跨區域  x Active-Active架構的無伺服器化後台服務建構全球跨區域  x Active-Active架構的無伺服器化後台服務
建構全球跨區域 x Active-Active架構的無伺服器化後台服務Amazon Web Services
 
Scaling up to and beyond 10M users
Scaling up to and beyond 10M usersScaling up to and beyond 10M users
Scaling up to and beyond 10M usersAmazon Web Services
 
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...Amazon Web Services
 
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...Amazon Web Services
 
Accelerate Analytics at Scale with Amazon EMR - AWS Summit Sydney 2018
Accelerate Analytics at Scale with Amazon EMR - AWS Summit Sydney 2018Accelerate Analytics at Scale with Amazon EMR - AWS Summit Sydney 2018
Accelerate Analytics at Scale with Amazon EMR - AWS Summit Sydney 2018Amazon Web Services
 
How a Biotech Firm Streamlined Data Protection on AWS
 How a Biotech Firm Streamlined Data Protection on AWS How a Biotech Firm Streamlined Data Protection on AWS
How a Biotech Firm Streamlined Data Protection on AWSAmazon Web Services
 
How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...
How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...
How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...Amazon Web Services
 

Similar to Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) - AWS re:Invent 2018 (20)

Databases - EBC on the road Brazil Edition [Portuguese]
Databases - EBC on the road Brazil Edition [Portuguese]Databases - EBC on the road Brazil Edition [Portuguese]
Databases - EBC on the road Brazil Edition [Portuguese]
 
AWSome Day - Solutions Architecture Best Practices
AWSome Day - Solutions Architecture Best PracticesAWSome Day - Solutions Architecture Best Practices
AWSome Day - Solutions Architecture Best Practices
 
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
 
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...
Migrating Oracle to Aurora PostgreSQL Utilizing AWS Database Migration Servic...
 
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdfCome scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdf
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
 
AWS Database Services @ Scale
AWS Database Services @ ScaleAWS Database Services @ Scale
AWS Database Services @ Scale
 
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
 
Best of AWS re:Invent 2017
Best of AWS re:Invent 2017Best of AWS re:Invent 2017
Best of AWS re:Invent 2017
 
Gaining Better Observability of Your VMs with Amazon CloudWatch - AWS Online ...
Gaining Better Observability of Your VMs with Amazon CloudWatch - AWS Online ...Gaining Better Observability of Your VMs with Amazon CloudWatch - AWS Online ...
Gaining Better Observability of Your VMs with Amazon CloudWatch - AWS Online ...
 
Achieving Global Consistency Using AWS CloudFormation StackSets - AWS Online ...
Achieving Global Consistency Using AWS CloudFormation StackSets - AWS Online ...Achieving Global Consistency Using AWS CloudFormation StackSets - AWS Online ...
Achieving Global Consistency Using AWS CloudFormation StackSets - AWS Online ...
 
Managed Relational Databases
Managed Relational DatabasesManaged Relational Databases
Managed Relational Databases
 
How to Effectively Plan for Disaster Recovery on AWS (CMP204-S) - AWS re:Inve...
How to Effectively Plan for Disaster Recovery on AWS (CMP204-S) - AWS re:Inve...How to Effectively Plan for Disaster Recovery on AWS (CMP204-S) - AWS re:Inve...
How to Effectively Plan for Disaster Recovery on AWS (CMP204-S) - AWS re:Inve...
 
建構全球跨區域 x Active-Active架構的無伺服器化後台服務
建構全球跨區域  x Active-Active架構的無伺服器化後台服務建構全球跨區域  x Active-Active架構的無伺服器化後台服務
建構全球跨區域 x Active-Active架構的無伺服器化後台服務
 
Scaling up to and beyond 10M users
Scaling up to and beyond 10M usersScaling up to and beyond 10M users
Scaling up to and beyond 10M users
 
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...
 
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...
 
Accelerate Analytics at Scale with Amazon EMR - AWS Summit Sydney 2018
Accelerate Analytics at Scale with Amazon EMR - AWS Summit Sydney 2018Accelerate Analytics at Scale with Amazon EMR - AWS Summit Sydney 2018
Accelerate Analytics at Scale with Amazon EMR - AWS Summit Sydney 2018
 
How a Biotech Firm Streamlined Data Protection on AWS
 How a Biotech Firm Streamlined Data Protection on AWS How a Biotech Firm Streamlined Data Protection on AWS
How a Biotech Firm Streamlined Data Protection on AWS
 
How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...
How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...
How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...
 

More from Amazon Web Services

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...Amazon Web Services
 
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...Amazon Web Services
 
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 FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
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 Amazon Web Services
 
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...Amazon Web Services
 
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...Amazon Web Services
 
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 WorkloadsAmazon Web Services
 
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 sfatareAmazon Web Services
 
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 NodeJSAmazon Web Services
 
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 webAmazon Web Services
 
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 sfatareAmazon 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 AWSAmazon 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 DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon 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
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon 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
 

Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora Serverless Sandor Maurice Sr. Engineering Manager Amazon RDS D A T 3 3 6 Joshua Eichorn CTO Pagely
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Related breakouts Tuesday, November 27 What’s New in Amazon Aurora 1:00 PM - 2:00 PM | Venetian, Level 2, Titian 2202 Tuesday, November 27 DAT304 - Deep Dive on Amazon Aurora with MySQL Compatibility 6:15 PM – 7:15 PM | Venetian, Level 4, Marcello 4505 Thursday, November 29 Amazon Aurora Storage Demystified: How It All Works 2:30 PM - 3:30 PM | Venetian, Level 4, Lando 4305
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda • RDS & Aurora fundamentals • Aurora Serverless • How it works • What’s new? • Case Study - Pagely
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon RDS is . . . Cloud native engine Open source engines Commercial engines RDS platform • Automatic fail-over • Backup & recovery • X-region replication • Isolation & security • Industry compliance • Automated patching • Advanced monitoring • Routine maintenance • Push-button scaling Image credit: By Mackphillips - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=55946550
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Aurora is . . .. . . Cloud native engine Open source engines Commercial engines RDS platform • Automatic fail-over • Backup & recovery • X-region replication • Isolation & security • Industry compliance • Automated patching • Advanced monitoring • Routine maintenance • Push-button scaling Image credit: By Mackphillips - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=55946550
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Aurora - databases reimagined for the cloud Speed and availability of high-end commercial databases Simplicity and cost-effectiveness of open source databases Drop-in compatibility with MySQL and PostgreSQL Simple pay as you go pricing Delivered as a fully managed service
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Availability zone 1 Region Availability zone 2 Availability zone 3 Scale-out, distributed, multi-tenant design . . . Purpose-built log-structured, distributed storage Shared storage volume Storage nodes with SSDs Master SQL Transactions Caching Reader 5 Reader 9 SQL Transactions Caching SQL Transactions Caching Reader 1 SQL Transactions Caching Reader 8 SQL Transactions Caching Reader 15 SQL Transactions Caching … … … 10GiB stripes Master and up to 15 Readers all point to the same storage 6-way replication, 2 per AZ Quorums survive AZ+1 failure
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Availability zone 1 Region Availability zone 2 Availability zone 3 With provisioned Aurora, you size the master yourself Shared storage volume Storage nodes with SSDs Master SQL Transactions Caching Size for the peak load -or- Continuously monitor and manually scale up/down
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora Serverless . . . Responds to your application automatically • Scale capacity • Shut down • Start up
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Example #1 – episodic dev-test workload VolumeWriteIOPs, 120-hour window
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Example #2 – mostly idle dev-test workload VolumeWriteIOPs, 120-hour window
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Example #3 – spiky gaming workload VolumeWriteIOPs, 120-hour window
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Example #4 – ecommerce production workload VolumeWriteIOPs, 24-hour window
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. You have some choices to make . . . Provision for peak Continuously monitor and manually scale up/down -or- Expensive Hard • Requires experts • Risks outages Provision less than peak End-user (business) impact -or-
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database capacity management Availability zone 1 Region App Shared distributed storage volume Master
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database capacity management Availability zone 1 Region App Shared distributed storage volume Original master Scale-up target Add a scale-up target
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database capacity management Availability zone 1 Region App Shared distributed storage volume Original master New master Cutover
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database capacity management Availability zone 1 Region App Shared distributed storage volume Original master New master
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database capacity management Availability zone 1 Region App Shared distributed storage volume Original master Scale-up target Add a proxy, shield the application from connection changesProxy
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database capacity management Availability zone 1 Region App Shared distributed storage volume New scale-up target Proxy New master Cutover
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database capacity management – is hard Availability zone 1 Region App Shared distributed storage volume New scale-up target Proxy New master
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora Serverless . . . Responds to your application load automatically • Scale capacity with no downtime • Multi-tenant proxy is highly available • Scale target has warm buffer pool • Shuts down when not in use
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work . . . Availability zone 1 Region App Shared distributed storage volume Multi-tenant proxy layer Warm-pool of Aurora instances Monitoring service
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work . . . Availability zone 1 Region App Shared distributed storage volume Multi-tenant proxy layer Warm-pool of Aurora instances Monitoring service
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work . . . Availability zone 1 Region App Shared distributed storage volume Multi-tenant proxy layer Warm-pool of Aurora instances Monitoring service
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work . . . Availability zone 1 Region App Shared distributed storage volume Multi-tenant proxy layer Warm-pool of Aurora instances Monitoring service
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work . . . Availability zone 1 Region App Shared distributed storage volume Multi-tenant proxy layer Warm-pool of Aurora instances Monitoring service
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work . . . Availability zone 1 Region App Shared distributed storage volume Multi-tenant proxy layer Warm-pool of Aurora instances Monitoring service
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work . . . Availability zone 1 Region App Shared distributed storage volume Multi-tenant proxy layer Warm-pool of Aurora instances Monitoring service
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work . . . Availability zone 1 Region App Shared distributed storage volume Multi-tenant proxy layer Warm-pool of Aurora instances Monitoring service
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work in practice? 0 500 1000 1500 2000 2500 3000 1 12 23 34 45 56 67 78 89 100 111 122 133 144 155 166 177 188 199 210 221 232 243 254 265 276 287 298 309 320 331 342 353 364 375 386 397 408 419 430 441 452 463 474 485 496 507 518 529 540 551 562 573 584 595 606 617 628 639 650 661 672 683 694 705 716 727 tps
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work in practice? 1 2 4 8 16 32 64 128 0 500 1000 1500 2000 2500 3000 1 12 23 34 45 56 67 78 89 100 111 122 133 144 155 166 177 188 199 210 221 232 243 254 265 276 287 298 309 320 331 342 353 364 375 386 397 408 419 430 441 452 463 474 485 496 507 518 529 540 551 562 573 584 595 606 617 628 639 650 661 672 683 694 705 716 727 738 tps ACU
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work in practice? 0 10 20 30 40 50 60 70 1 12 23 34 45 56 67 78 89 100 111 122 133 144 155 166 177 188 199 210 221 232 243 254 265 276 287 298 309 320 331 342 353 364 375 386 397 408 419 430 441 452 463 474 485 496 507 518 529 540 551 562 573 584 595 606 617 628 639 650 661 672 683 694 705 716 727 0 50 100 150 200 250 300 350 400 450 500 ms ACU
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does it work in practice? 0 50 100 150 200 250 300 350 400 450 500 0 500 1000 1500 2000 2500 3000 1 12 23 34 45 56 67 78 89 100 111 122 133 144 155 166 177 188 199 210 221 232 243 254 265 276 287 298 309 320 331 342 353 364 375 386 397 408 419 430 441 452 463 474 485 496 507 518 529 540 551 562 573 584 595 606 617 628 639 650 661 672 683 694 705 716 727 738 tps ms
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. That said . . .
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Introducing RDS Data API • Simple web service protocol for database access • SQL statements packaged as HTTP requests • Access your database from AWS Lambda and AWS AppSync • Access your database from the AWS SDK & CLI Data API Service Aurora Serverless
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Introducing RDS Console Query Editor • Access your database from AWS Management Console • No database client application or terminal required
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora Serverless – for PostgreSQL Now in preview, sign-up today: https://pages.awscloud.com/amazon- aurora-postgresql-serverless- preview.html
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora Serverless – more regions • Aurora Serverless newly available in: • Seoul • Singapore • Sydney • Mumbai • N. California • London, Paris • Frankfurt • Central Canada
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 47. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Invoking Data API from Lambda ExecuteSqlRequest sqlRequest = new ExecuteSqlRequest(); sqlRequest.setSqlStatements(String.format("Select count(*) from Demo.Cities where City = '%s' group by City;", city)); ExecuteSqlResult result = awsRDSDataAPI.executeSql(sqlRequest); Long peopleFromCityCount = result.getSqlStatementResults().get(0).getResultFrame().getRecords() .get(0).getValues().get(0).getBigIntValue(); https://github.com/aws-samples/amazon-rds-data-api-demo
  • 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Joshua Eichorn CTO Pagely
  • 49. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. WordPress powers 32% of the Web • More than blogs and CMS • Ecommerce • Membership sites • Custom Apps • Pagely brings • Devops • Scale • Piece of mind
  • 50. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. • Serverless Application Hosting • Autoscaling • Workflow
  • 51. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Northstack High Level Architecture
  • 52. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Details • Using ECS for compute • App gateway + workers can stop • Each production app gets its own Aurora Serverless • For cacheable sites only the gateway is running Picture: Aurora 2010 / Michael R. P. Ragazzon / Creative Commons
  • 53. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Elastic Database is Hard • WordPress read after write limits slave usefulness • Single tenant option • Resizing a master means failover • Failover = outage • Multi-tenant option • Constant balancing chore • Noisy neighbors Picture: Elastic Close-Up / Marco Verch / Creative Commons
  • 54. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora Serverless a perfect fit • Scales the master • Scaling without downtime • Less work needed from my team • Pausing Picture: Perfect. / taraesque / Creative Commons
  • 55. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Things to watch out for • Resume from pause time is inconsistent • Aurora needs a place to scale • MySQL server has gone away errors Picture: ShelbyPeek / josephdepalma / Creative Commons
  • 56. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Managing timeouts around pause • Biggest cost savings come from pause • Resume is high time variance
  • 57. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. A WordPress Slow query Story • Full table scans of meta_value are common • 2 ACU query takes 10 minutes • 8 ACU query takes < 2 seconds
  • 58. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Giving Aurora a place to scale • Add query timeouts • Be careful about global timeouts • Not always easy • SET SESSION MAX_EXECUTION_TIME=2000; <- Mysql 5.7 only  • Sysown Proxysql mysql-default_query_timeout  • For PHP use mysqlnd + mysqlnd.net_read_timeout  Picture: Waimea expanse / Alex Schwab / Creative Commons
  • 59. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. MySQL server has gone away errors • More common with Aurora Serverless • Timeouts increase occurrence • Enable auto reconnect if possible • Custom DB driver in WordPress to catch and reconnect • Sysown Proxysql Picture: Gone / Marina del Castell / Creative Commons
  • 60. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sandor Maurice samauri@amazon.com Joshua Eichorn joshua.eichorn@pagely.com
  • 61. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.