SlideShare une entreprise Scribd logo
1  sur  40
Télécharger pour lire hors ligne
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Going Deep on Amazon Aurora
Serverless
Anoop Gupta
Software Development Manager
Amazon Web Services
D A T 4 2 7 R
Alexey Kuznetsov
Sr. Software Development Engineer
Amazon Web Services
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
• Amazon RDS & Aurora fundamentals
• What is Amazon Aurora Serverless?
• How it works
• Q&A
© 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
Transaction
s
Caching
Reader
5
Reader
9
SQL
Transaction
s
Caching
SQL
Transaction
s
Caching
Reader
1
SQL
Transaction
s
Caching
Reader
8
SQL
Transaction
s
Caching
Reader
15
SQL
Transaction
s
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
Transaction
s
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
• Start up
• Shut down
• Scale capacity
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Real world examples…
© 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.
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.
Simpler experience: Less to worry about
• No CPU credits to monitor
• No commitment to particular availability zone
• No migrations between instance type generations
• No DB instance reservations to manage
• No instances to manage
• Encryption at REST is always enabled
• No need to manually suspend and resume database
• No DNS propagation delays
• No maintenance window
• No old database versions to upgrade
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introducing Amazon Relational Database Service Data API
• Simple web service protocol for database access
• SQL statements packaged as HTTP requests
• Access your database from Lambda and 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.
Related breakouts
Thursday, November 29th
Accelerate Database Development and Testing with Amazon Aurora
11:30 a.m. - 1:45 p.m. | Mirage, Mirage Event Center C3
Thursday, November 29th
Accelerate Your Analytic Queries with Amazon Aurora Parallel Query
4:00 p.m. - 5:00 p.m. | Venetian, Level 2, Veronese 2406
Thursday, November 29th
Build on Amazon Aurora with MySQL Compatibility
4:00 p.m. – 5:00 p.m. | Mirage, Grand Ballroom B, Table 7
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Anoop Gupta
gupanoop@amazon.com
Alexey Kuznetsov
alexey@amazon.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How to migrate?
To Aurora MySQL
To Aurora Serverless
for MySQL
Restore from snapshot ✓ ✓
Dump & load ✓ ✓
AWS Data Migration Service ✓ ✓
Transaction log replication ✓ ✗
Restore from Amazon S3 ✓ ✓*
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Availability
Aurora MySQL
(Multi-AZ)
Aurora MySQL
(Single-AZ)
Aurora Serverless
for MySQL
Fast failover ✓ ✗ ✗
Cross-AZ failover ✓ ✗ ✓
Storage HA/durability ✓ ✓ ✓

Contenu connexe

Tendances

Tendances (20)

Paper: Oracle RAC Internals - The Cache Fusion Edition
Paper: Oracle RAC Internals - The Cache Fusion EditionPaper: Oracle RAC Internals - The Cache Fusion Edition
Paper: Oracle RAC Internals - The Cache Fusion Edition
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
 
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
 
Deep Dive on Amazon Aurora
Deep Dive on Amazon AuroraDeep Dive on Amazon Aurora
Deep Dive on Amazon Aurora
 
AWS re:Invent 2016: Deep Dive on Amazon Aurora (DAT303)
AWS re:Invent 2016: Deep Dive on Amazon Aurora (DAT303)AWS re:Invent 2016: Deep Dive on Amazon Aurora (DAT303)
AWS re:Invent 2016: Deep Dive on Amazon Aurora (DAT303)
 
Amazon Redshift Deep Dive - Serverless, Streaming, ML, Auto Copy (New feature...
Amazon Redshift Deep Dive - Serverless, Streaming, ML, Auto Copy (New feature...Amazon Redshift Deep Dive - Serverless, Streaming, ML, Auto Copy (New feature...
Amazon Redshift Deep Dive - Serverless, Streaming, ML, Auto Copy (New feature...
 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on Exadata
 
Amazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
Amazon RDS: Deep Dive - SRV310 - Chicago AWS SummitAmazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
Amazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
 
Introducing DynamoDB
Introducing DynamoDBIntroducing DynamoDB
Introducing DynamoDB
 
AWS Summit Seoul 2023 | 혁신의 키워드는 '조직'과 '문화' - 하이브리드 클라우드 플랫폼과 agile 조직이 만드는 혁신
AWS Summit Seoul 2023 | 혁신의 키워드는 '조직'과 '문화' - 하이브리드 클라우드 플랫폼과 agile 조직이 만드는 혁신AWS Summit Seoul 2023 | 혁신의 키워드는 '조직'과 '문화' - 하이브리드 클라우드 플랫폼과 agile 조직이 만드는 혁신
AWS Summit Seoul 2023 | 혁신의 키워드는 '조직'과 '문화' - 하이브리드 클라우드 플랫폼과 agile 조직이 만드는 혁신
 
AWS 9월 웨비나 | Amazon Aurora Deep Dive
AWS 9월 웨비나 | Amazon Aurora Deep DiveAWS 9월 웨비나 | Amazon Aurora Deep Dive
AWS 9월 웨비나 | Amazon Aurora Deep Dive
 
[REPEAT 1] Deep Dive on Amazon Aurora with MySQL Compatibility (DAT304-R1) - ...
[REPEAT 1] Deep Dive on Amazon Aurora with MySQL Compatibility (DAT304-R1) - ...[REPEAT 1] Deep Dive on Amazon Aurora with MySQL Compatibility (DAT304-R1) - ...
[REPEAT 1] Deep Dive on Amazon Aurora with MySQL Compatibility (DAT304-R1) - ...
 
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best PracticesOracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
 
Deep Dive on Amazon Aurora
Deep Dive on Amazon AuroraDeep Dive on Amazon Aurora
Deep Dive on Amazon Aurora
 
Aurora Deep Dive | AWS Floor28
Aurora Deep Dive | AWS Floor28Aurora Deep Dive | AWS Floor28
Aurora Deep Dive | AWS Floor28
 
Amazon ElastiCache and Redis
Amazon ElastiCache and RedisAmazon ElastiCache and Redis
Amazon ElastiCache and Redis
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
 
Architecting for AWS
Architecting for AWSArchitecting for AWS
Architecting for AWS
 
Advanced Deployment Best Practices with AWS CodeDeploy (DEV404-R2) - AWS re:I...
Advanced Deployment Best Practices with AWS CodeDeploy (DEV404-R2) - AWS re:I...Advanced Deployment Best Practices with AWS CodeDeploy (DEV404-R2) - AWS re:I...
Advanced Deployment Best Practices with AWS CodeDeploy (DEV404-R2) - AWS re:I...
 
RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017
RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017
RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017
 

Similaire à Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018

Similaire à Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018 (20)

Serverless Databases - Amazon DynamoDB and Amazon Aurora Serverless - Demo
Serverless Databases - Amazon DynamoDB and Amazon Aurora Serverless - DemoServerless Databases - Amazon DynamoDB and Amazon Aurora Serverless - Demo
Serverless Databases - Amazon DynamoDB and Amazon Aurora Serverless - Demo
 
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]
 
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
 
Introduction to Serverless on AWS - Builders Day Jerusalem
Introduction to Serverless on AWS - Builders Day JerusalemIntroduction to Serverless on AWS - Builders Day Jerusalem
Introduction to Serverless on AWS - Builders Day Jerusalem
 
AWSome Day - Solutions Architecture Best Practices
AWSome Day - Solutions Architecture Best PracticesAWSome Day - Solutions Architecture Best Practices
AWSome Day - Solutions Architecture Best Practices
 
Build a Multi-Region Serverless Application for Resilience & High Availabilit...
Build a Multi-Region Serverless Application for Resilience & High Availabilit...Build a Multi-Region Serverless Application for Resilience & High Availabilit...
Build a Multi-Region Serverless Application for Resilience & High Availabilit...
 
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
 
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
 
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 
Migrazione di Database e Data Warehouse su AWS
Migrazione di Database e Data Warehouse su AWSMigrazione di Database e Data Warehouse su AWS
Migrazione di Database e Data Warehouse su AWS
 
Serverless Architectural Patterns: Collision 2018
Serverless Architectural Patterns: Collision 2018Serverless Architectural Patterns: Collision 2018
Serverless Architectural Patterns: Collision 2018
 
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
 
Managed Relational Databases
Managed Relational DatabasesManaged Relational Databases
Managed Relational Databases
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 
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 Aurora: Database Week SF
Amazon Aurora: Database Week SFAmazon Aurora: Database Week SF
Amazon Aurora: Database Week SF
 
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
 
AWS Database Services @ Scale
AWS Database Services @ ScaleAWS Database Services @ Scale
AWS Database Services @ Scale
 
Serverless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best PracticesServerless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best Practices
 

Plus de 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
 

Plus de 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
 

Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Going Deep on Amazon Aurora Serverless Anoop Gupta Software Development Manager Amazon Web Services D A T 4 2 7 R Alexey Kuznetsov Sr. Software Development Engineer Amazon Web Services
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda • Amazon RDS & Aurora fundamentals • What is Amazon Aurora Serverless? • How it works • Q&A
  • 4. © 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
  • 5. © 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
  • 6. © 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
  • 7. © 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 Transaction s Caching Reader 5 Reader 9 SQL Transaction s Caching SQL Transaction s Caching Reader 1 SQL Transaction s Caching Reader 8 SQL Transaction s Caching Reader 15 SQL Transaction s 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
  • 8. © 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 Transaction s Caching Size for the peak load -or- Continuously monitor and manually scale up/down
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora Serverless . . . Responds to your application automatically • Start up • Shut down • Scale capacity
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Real world examples…
  • 12. © 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-
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database capacity management Availability zone 1 Region App Shared distributed storage volume Master
  • 14. © 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
  • 15. © 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
  • 16. © 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
  • 17. © 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
  • 18. © 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
  • 19. © 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
  • 20. © 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
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 22. © 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
  • 23. © 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
  • 24. © 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
  • 25. © 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
  • 26. © 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
  • 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. Simpler experience: Less to worry about • No CPU credits to monitor • No commitment to particular availability zone • No migrations between instance type generations • No DB instance reservations to manage • No instances to manage • Encryption at REST is always enabled • No need to manually suspend and resume database • No DNS propagation delays • No maintenance window • No old database versions to upgrade
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Introducing Amazon Relational Database Service Data API • Simple web service protocol for database access • SQL statements packaged as HTTP requests • Access your database from Lambda and AppSync • Access your database from the AWS SDK & CLI Data API Service Aurora Serverless
  • 33. © 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
  • 34. © 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
  • 35. © 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
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Related breakouts Thursday, November 29th Accelerate Database Development and Testing with Amazon Aurora 11:30 a.m. - 1:45 p.m. | Mirage, Mirage Event Center C3 Thursday, November 29th Accelerate Your Analytic Queries with Amazon Aurora Parallel Query 4:00 p.m. - 5:00 p.m. | Venetian, Level 2, Veronese 2406 Thursday, November 29th Build on Amazon Aurora with MySQL Compatibility 4:00 p.m. – 5:00 p.m. | Mirage, Grand Ballroom B, Table 7
  • 37. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Anoop Gupta gupanoop@amazon.com Alexey Kuznetsov alexey@amazon.com
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How to migrate? To Aurora MySQL To Aurora Serverless for MySQL Restore from snapshot ✓ ✓ Dump & load ✓ ✓ AWS Data Migration Service ✓ ✓ Transaction log replication ✓ ✗ Restore from Amazon S3 ✓ ✓*
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Availability Aurora MySQL (Multi-AZ) Aurora MySQL (Single-AZ) Aurora Serverless for MySQL Fast failover ✓ ✗ ✗ Cross-AZ failover ✓ ✗ ✓ Storage HA/durability ✓ ✓ ✓