SlideShare a Scribd company logo
1 of 38
Download to read offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Accelerate Database Development
and Testing with Amazon Aurora
Steve Abraham
Principal DB Specialist SA
AWS
D A T 3 1 3
Vlad Vlasceanu
Principal DB Specialist SA
AWS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database development and testing perspective
Responsibilities of today’s developers, DevOps and DBAs:
• DB architecture
• deployment & automation
• improve dev/test outcomes
• performance and availability focused development
• cost effective development
Amazon Aurora provides native capabilities to meet these goals
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora: re-imaging the relational database
Scale-out, distributed architecture using purpose built
storage system
Service oriented architecture leveraging AWS services
Fully managed service, automating administrative tasks
1
2
3
Cloud-native capabilities simplify use4
Amazon Aurora is fast…
5✕ more throughput than MySQL; 3✕ more throughput than PostgreSQL
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora – key characteristics
1 Log-structured storage volume shared
between all cluster nodes
2
Optimized for high throughput3
Readers strictly read-only
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Core use cases: read scaling architecture
Auto Scaling optional
All readers treated the same
Any reader can be a failover
target
Application should use cluster
and reader endpoints
Dev Tip: Monitor cluster
topology for faster failover
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Core use cases: separated workloads architecture
Each reader used for a
specific purpose
Ordered failover targeting
Application uses cluster,
custom or even DB instance
endpoints
Caveat: Readers share the
same storage and undo log
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deployment automation with Amazon Aurora
Why?
• Reduce risk of human errors
• Repeatable deployments
• Accountability and management of change
How?
• Declarative automation
AWS CloudFormation, Terraform
• Procedural automation
AWS Command Line Interface (AWS CLI) tools, AWS SDKs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate responsibly!
But... Aurora DB clusters are stateful resources
Declarative automation
It’s about the outcome, less about the journey
• How does the tool define the resource state?
• How do you perform changes with minimal downtime?
Procedural automation
It’s about the journey, less about the outcome
• How do you ensure predictable outcomes?
• How do you define and track the resource state?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deployment automation using AWS CloudFormation
Check feature gaps between AWS CloudFormation (or third-
party tool) and Amazon Relational Database Service (Amazon
RDS) APIs (AWS Management Console, AWS CLIs, SDKs)
Check feasibility of workarounds using AWS CloudFormation
Custom Resources (or similar)
Ensure efficient ordering during resource provisioning
(dependencies + custom resources)
1
2
3
Create alternative automation for minimal downtime
production workflows
4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Risk free dev/test, data extracts and analytics
Bad practices we’ve seen:
• App development and testing on tiny subsets of non-production data
• Bulk data exports from live production instances
• Running long, unoptimized queries on cluster readers
• Lack of outcome focus
The right way:
• Know your features: Point-in-Time Restore, Database Cloning, Backtrack
• Proper workload isolation
• Test, don’t hope for the best
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database Cloning
Get faster access to copies of your data so you can:
Test changes in pre-production on
relevant data sets
Reorganize a database with minimal
production impact
Save a point in time snapshot for data
analysis without impacting
production systems
1
2
3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Fast database cloning with Amazon Aurora
Available for both MySQL and PostgreSQL compatible
versions of Amazon Aurora
Creation of clone takes a few minutes
Data copy happens only on write, when the original and
cloned volume start to differ
Operations on clone do not affect the source cluster
Up to 15 clones from the same source
Pay only for the data storage difference on the clone PRODUCTION DATABASE
CLONE CLONE
CLONE
DEV/TEST
APPLICATIONS
BENCHMARKS
PRODUCTION
APPLICATIONS
PRODUCTION
APPLICATIONS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Backtracking databases
Easily undo changes to your data:
Reduce risk of database changes at
scale
Undo unintentional DML and DDL
changes
Mitigate risk of malicious changes to
your data
1
2
3
Avoid time consuming data restore
from backups
4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How does Backtrack work?
• We keep periodic snapshots of each segment; we also preserve the logs
• For Backtrack, we identify the appropriate segment snapshots
• Apply log streams to segment snapshots in parallel and asynchronously
SEGMENT SNAPSHOT
CHANGE
RECORDS
RECOVERY POINT
SEGMENT 1
SEGMENT 2
SEGMENT 3
TIME
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Going back in time with Backtrack
t0 t1 t2
t0 t1
t2
t3 t4
t3
t4
Rewind to t1
Rewind to t3
Invisible Invisible
• Backtrack is not destructive
• You can backtrack multiple times to find the right point in time
• Pay for the volume of change records retained for the desired duration (up to 72 hours)
• Available for Aurora MySQL 5.6 compatible
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Development focused on production scale
Bad practices we’ve seen:
• App development and testing on tiny subsets of non-production data
• My database is always there for me and never fails me
• Running long, unoptimized queries on cluster readers
• Lack of outcome focus
The right way:
• Be aware of architectural differences between Aurora and equivalent engines
• Know Aurora capabilities and operational procedures: automated failovers, upgrades
• Extend Aurora features with application side cluster awareness
• Test, don’t hope for the best: failure injection
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Connection management and availability
Minimize failure downtime, and connection management overhead
Common MySQL and PostgreSQL drivers are not
cluster/topology aware
Use a client side connection pool; recycle
connections periodically; avoid connection storms
Use a smart driver, or build topology awareness in
your client data layer, validate connections
1
2
3
Understand the behavior of the Aurora DNS
endpoints, manage DNS caching
4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor the performance of your queries
Establish a baseline of
acceptable/desired query performance
Assess performance impact of
workload changes
Troubleshoot poor performance,
identify bottlenecks
1
2
3
Effective capacity planning4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database health at a glance
Amazon Aurora comes with comprehensive monitoring built-in:
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database health at a glance
Amazon Aurora comes with comprehensive monitoring built-in:
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Performance Insights
Available for both MySQL and PostgreSQL compatible
versions of Amazon Aurora
Easy and powerful dashboard showing load on your
database
Helps you identify source of bottlenecks: top SQL
queries, wait statistics
Adjustable time frame (hour, day week, month)
7 days of performance data history free – perfect for
developers; up to 2 years of long term retention for
production use cases
Max CPU
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cost optimized development and testing
Use database resources at appropriate scale only when they are needed
1 Dev and test activities are rarely
continuous
2
Dev and test environment isolation3
Scale of dev and test activities varies
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora features helping with cost optimization
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora features helping with cost optimization
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora Serverless use cases
Development and test databases:
• Easily provisioned
• Cost savings when DBs are not in use
• Simplify dev/test pipelines
Infrequently used applications
(e.g., low-volume blog site)
Applications with variable load - peaks of activity
that are hard to predict (e.g., news site)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Serverless architecture
• Application talks to MySQL compatible endpoint
• Fleet of routers manage queue, client connections
and route DB traffic
• Instance handles database operations
• Data kept durable and highly available on Aurora
storage volume
• When scaling thresholds are reached we scale the
instance substituting with capacity from warm pool
• Scaling operations are transparent to applications
• You configure min. and max. capacity, whether and
when to pause DB if there’s no activity
INSTANCE
DATABASE
STORAGE
APPLICATION
WARM POOL
DATABASE TRAFFIC ROUTERS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Serverless pricing
• You pay for capacity your database consumes while
it is active
• Database capacity is measured in Aurora Capacity
Units (ACUs): 1 ACU ~ 2Gb of memory with
corresponding CPU and network capacity
• Flat rate per second of ACU usage, with a minimum
of 5 minutes of usage each time the database is
activated
• Storage and I/O are billed the same as with Aurora
instances
Duration ACUs ACU-Hours Rate Charges
1 hour, 10 minutes, and 15
seconds (1.020 hours)
4 4.08 $0.06 $0.25
40 minutes and 34 seconds
(0.676 hours)
8 5.41 $0.06 $0.32
Usage total for 24 hours 9.49 $0.06 $0.57
Usage Rate Charges
9.49 ACU-hours $0.06 per ACU-hour $0.57
80 GB of storage for 24
hours
$0.10 per GB-month $0.26
90,000 I/O requests $0.20 per 1 million requests $0.02
Total charges for 24 hours $0.85
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introducing the RDS Data API
• Public HTTP API endpoint, integrated with AWS
Authentication
• Automated server side connection pooling
• Ideal for AWS Lambda or serverless apps reusing
connections across multiple invocations
• Fully Integrated with AWS Secrets Manager and
AWS AppSync
• Optional session construct for efficient prepared
statement executions
• Interactive Query Editor in the console for
ad-hoc queries
• Available for Aurora Serverless (MySQL)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Parting Thoughts
Use automation wisely and map out
your operational processes in detail
Know Aurora’s features and how they
can improve on your development
and testing process
Develop and test with performance in
mind
1
2
3
Quantify the expected baseline
performance of your workload
4
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Steve Abraham
Vlad Vlasceanu
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Companion workshops
Tuesday, November 27th
Accelerating Application Development with Amazon Aurora
11:30am – 2:00pm | Bellagio, Level 1, Grand Ballroom 6
Wednesday, November 28th
Accelerating Application Development with Amazon Aurora
2:30pm – 5:00pm | Aria West, Level 3, Ironwood 1
Thursday, November 29th
Accelerating Application Development with Amazon Aurora
11:30am – 2:00pm | Mirage, Mirage Event Center C3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Related breakouts
DAT204 | What’s New in Amazon Aurora
DAT304 | Deep Dive on Amazon Aurora with MySQL Compatibility
DAT305 | Deep Dive on Amazon Aurora with PostgreSQL Compatibility
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...Amazon Web Services
 
Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319 Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319 Amazon Web Services
 
Deep Dive on Amazon Aurora PostgreSQL Performance Tuning (DAT428-R1) - AWS re...
Deep Dive on Amazon Aurora PostgreSQL Performance Tuning (DAT428-R1) - AWS re...Deep Dive on Amazon Aurora PostgreSQL Performance Tuning (DAT428-R1) - AWS re...
Deep Dive on Amazon Aurora PostgreSQL Performance Tuning (DAT428-R1) - AWS re...Amazon Web Services
 
Using Performance Insights to Optimize Database Performance (DAT402) - AWS re...
Using Performance Insights to Optimize Database Performance (DAT402) - AWS re...Using Performance Insights to Optimize Database Performance (DAT402) - AWS re...
Using Performance Insights to Optimize Database Performance (DAT402) - AWS re...Amazon Web Services
 
Ask Me Anything about Amazon Aurora (DAT369-R1) - AWS re:Invent 2018
Ask Me Anything about Amazon Aurora (DAT369-R1) - AWS re:Invent 2018Ask Me Anything about Amazon Aurora (DAT369-R1) - AWS re:Invent 2018
Ask Me Anything about Amazon Aurora (DAT369-R1) - AWS re:Invent 2018Amazon Web Services
 
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...Amazon Web Services
 
Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018
Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018
Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018Amazon Web Services
 
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018Amazon 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
 
Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018
Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018
Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018Amazon Web Services
 
Building a Modern Data Warehouse - Deep Dive on Amazon Redshift
Building a Modern Data Warehouse - Deep Dive on Amazon RedshiftBuilding a Modern Data Warehouse - Deep Dive on Amazon Redshift
Building a Modern Data Warehouse - Deep Dive on Amazon RedshiftAmazon Web Services
 
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28Amazon Web Services
 
Builders Day' - Databases on AWS: The Right Tool for The Right Job
Builders Day' - Databases on AWS: The Right Tool for The Right JobBuilders Day' - Databases on AWS: The Right Tool for The Right Job
Builders Day' - Databases on AWS: The Right Tool for The Right JobAmazon Web Services LATAM
 
Transform Your Organization with Real Real-Time Monitoring
Transform Your Organization with Real Real-Time MonitoringTransform Your Organization with Real Real-Time Monitoring
Transform Your Organization with Real Real-Time MonitoringAmazon Web Services
 
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018Amazon Web Services
 
SQL Server to Amazon Aurora Migration, Step by Step (DAT405) - AWS re:Invent ...
SQL Server to Amazon Aurora Migration, Step by Step (DAT405) - AWS re:Invent ...SQL Server to Amazon Aurora Migration, Step by Step (DAT405) - AWS re:Invent ...
SQL Server to Amazon Aurora Migration, Step by Step (DAT405) - AWS re:Invent ...Amazon Web Services
 
[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) - ...Amazon Web Services
 
Database Migration Using AWS DMS and AWS SCT (GPSCT307) - AWS re:Invent 2018
Database Migration Using AWS DMS and AWS SCT (GPSCT307) - AWS re:Invent 2018Database Migration Using AWS DMS and AWS SCT (GPSCT307) - AWS re:Invent 2018
Database Migration Using AWS DMS and AWS SCT (GPSCT307) - AWS re:Invent 2018Amazon Web Services
 
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...Amazon Web Services
 
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...Amazon Web Services
 

What's hot (20)

Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
 
Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319 Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319
 
Deep Dive on Amazon Aurora PostgreSQL Performance Tuning (DAT428-R1) - AWS re...
Deep Dive on Amazon Aurora PostgreSQL Performance Tuning (DAT428-R1) - AWS re...Deep Dive on Amazon Aurora PostgreSQL Performance Tuning (DAT428-R1) - AWS re...
Deep Dive on Amazon Aurora PostgreSQL Performance Tuning (DAT428-R1) - AWS re...
 
Using Performance Insights to Optimize Database Performance (DAT402) - AWS re...
Using Performance Insights to Optimize Database Performance (DAT402) - AWS re...Using Performance Insights to Optimize Database Performance (DAT402) - AWS re...
Using Performance Insights to Optimize Database Performance (DAT402) - AWS re...
 
Ask Me Anything about Amazon Aurora (DAT369-R1) - AWS re:Invent 2018
Ask Me Anything about Amazon Aurora (DAT369-R1) - AWS re:Invent 2018Ask Me Anything about Amazon Aurora (DAT369-R1) - AWS re:Invent 2018
Ask Me Anything about Amazon Aurora (DAT369-R1) - AWS re:Invent 2018
 
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
 
Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018
Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018
Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018
 
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018
 
SRV308 Deep Dive on Amazon Aurora
SRV308 Deep Dive on Amazon AuroraSRV308 Deep Dive on Amazon Aurora
SRV308 Deep Dive on Amazon Aurora
 
Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018
Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018
Going Deep on Amazon Aurora Serverless (DAT427-R1) - AWS re:Invent 2018
 
Building a Modern Data Warehouse - Deep Dive on Amazon Redshift
Building a Modern Data Warehouse - Deep Dive on Amazon RedshiftBuilding a Modern Data Warehouse - Deep Dive on Amazon Redshift
Building a Modern Data Warehouse - Deep Dive on Amazon Redshift
 
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28
Best practices for optimizing your EC2 costs with Spot Instances | AWS Floor28
 
Builders Day' - Databases on AWS: The Right Tool for The Right Job
Builders Day' - Databases on AWS: The Right Tool for The Right JobBuilders Day' - Databases on AWS: The Right Tool for The Right Job
Builders Day' - Databases on AWS: The Right Tool for The Right Job
 
Transform Your Organization with Real Real-Time Monitoring
Transform Your Organization with Real Real-Time MonitoringTransform Your Organization with Real Real-Time Monitoring
Transform Your Organization with Real Real-Time Monitoring
 
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
 
SQL Server to Amazon Aurora Migration, Step by Step (DAT405) - AWS re:Invent ...
SQL Server to Amazon Aurora Migration, Step by Step (DAT405) - AWS re:Invent ...SQL Server to Amazon Aurora Migration, Step by Step (DAT405) - AWS re:Invent ...
SQL Server to Amazon Aurora Migration, Step by Step (DAT405) - AWS re:Invent ...
 
[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) - ...
 
Database Migration Using AWS DMS and AWS SCT (GPSCT307) - AWS re:Invent 2018
Database Migration Using AWS DMS and AWS SCT (GPSCT307) - AWS re:Invent 2018Database Migration Using AWS DMS and AWS SCT (GPSCT307) - AWS re:Invent 2018
Database Migration Using AWS DMS and AWS SCT (GPSCT307) - AWS re:Invent 2018
 
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...
 
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...
 

Similar to Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS re:Invent 2018

Accelerate database development and testing with Amazon Aurora - ADB208 - New...
Accelerate database development and testing with Amazon Aurora - ADB208 - New...Accelerate database development and testing with Amazon Aurora - ADB208 - New...
Accelerate database development and testing with Amazon Aurora - ADB208 - New...Amazon Web Services
 
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...Amazon Web Services
 
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
 
Amazon Aurora (MySQL, Postgres)
Amazon Aurora (MySQL, Postgres)Amazon Aurora (MySQL, Postgres)
Amazon Aurora (MySQL, Postgres)AWS Germany
 
Migrate and Modernize Your Database
Migrate and Modernize Your DatabaseMigrate and Modernize Your Database
Migrate and Modernize Your DatabaseAmazon 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
 
Big data journey to the cloud rohit pujari 5.30.18
Big data journey to the cloud   rohit pujari 5.30.18Big data journey to the cloud   rohit pujari 5.30.18
Big data journey to the cloud rohit pujari 5.30.18Cloudera, Inc.
 
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech TalksIntroducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech TalksAmazon Web Services
 
Building Data Lakes and Analytics on AWS. IPExpo Manchester.
Building Data Lakes and Analytics on AWS. IPExpo Manchester.Building Data Lakes and Analytics on AWS. IPExpo Manchester.
Building Data Lakes and Analytics on AWS. IPExpo Manchester.javier ramirez
 
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
 
Building a modern data platform in the cloud. AWS DevDay Nordics
Building a modern data platform in the cloud. AWS DevDay NordicsBuilding a modern data platform in the cloud. AWS DevDay Nordics
Building a modern data platform in the cloud. AWS DevDay Nordicsjavier ramirez
 

Similar to Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS re:Invent 2018 (20)

Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
Accelerate database development and testing with Amazon Aurora - ADB208 - New...
Accelerate database development and testing with Amazon Aurora - ADB208 - New...Accelerate database development and testing with Amazon Aurora - ADB208 - New...
Accelerate database development and testing with Amazon Aurora - ADB208 - New...
 
Amazon Aurora: Database Week SF
Amazon Aurora: Database Week SFAmazon Aurora: Database Week SF
Amazon Aurora: Database Week SF
 
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
 
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 Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
Managed Relational Databases
Managed Relational DatabasesManaged Relational Databases
Managed Relational Databases
 
Amazon Aurora (MySQL, Postgres)
Amazon Aurora (MySQL, Postgres)Amazon Aurora (MySQL, Postgres)
Amazon Aurora (MySQL, Postgres)
 
Migrate and Modernize Your Database
Migrate and Modernize Your DatabaseMigrate and Modernize Your Database
Migrate and Modernize Your Database
 
Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
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...
 
Big data journey to the cloud rohit pujari 5.30.18
Big data journey to the cloud   rohit pujari 5.30.18Big data journey to the cloud   rohit pujari 5.30.18
Big data journey to the cloud rohit pujari 5.30.18
 
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech TalksIntroducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
 
Building Data Lakes and Analytics on AWS. IPExpo Manchester.
Building Data Lakes and Analytics on AWS. IPExpo Manchester.Building Data Lakes and Analytics on AWS. IPExpo Manchester.
Building Data Lakes and Analytics on AWS. IPExpo Manchester.
 
Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 
AWSome Day - Solutions Architecture Best Practices
AWSome Day - Solutions Architecture Best PracticesAWSome Day - Solutions Architecture Best Practices
AWSome Day - Solutions Architecture Best Practices
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 
Building a modern data platform in the cloud. AWS DevDay Nordics
Building a modern data platform in the cloud. AWS DevDay NordicsBuilding a modern data platform in the cloud. AWS DevDay Nordics
Building a modern data platform in the cloud. AWS DevDay Nordics
 
Migrating database to cloud
Migrating database to cloudMigrating database to cloud
Migrating database to cloud
 

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
 

Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Accelerate Database Development and Testing with Amazon Aurora Steve Abraham Principal DB Specialist SA AWS D A T 3 1 3 Vlad Vlasceanu Principal DB Specialist SA AWS
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database development and testing perspective Responsibilities of today’s developers, DevOps and DBAs: • DB architecture • deployment & automation • improve dev/test outcomes • performance and availability focused development • cost effective development Amazon Aurora provides native capabilities to meet these goals
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Aurora: re-imaging the relational database Scale-out, distributed architecture using purpose built storage system Service oriented architecture leveraging AWS services Fully managed service, automating administrative tasks 1 2 3 Cloud-native capabilities simplify use4 Amazon Aurora is fast… 5✕ more throughput than MySQL; 3✕ more throughput than PostgreSQL
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Aurora – key characteristics 1 Log-structured storage volume shared between all cluster nodes 2 Optimized for high throughput3 Readers strictly read-only
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Core use cases: read scaling architecture Auto Scaling optional All readers treated the same Any reader can be a failover target Application should use cluster and reader endpoints Dev Tip: Monitor cluster topology for faster failover
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Core use cases: separated workloads architecture Each reader used for a specific purpose Ordered failover targeting Application uses cluster, custom or even DB instance endpoints Caveat: Readers share the same storage and undo log
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deployment automation with Amazon Aurora Why? • Reduce risk of human errors • Repeatable deployments • Accountability and management of change How? • Declarative automation AWS CloudFormation, Terraform • Procedural automation AWS Command Line Interface (AWS CLI) tools, AWS SDKs
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automate responsibly! But... Aurora DB clusters are stateful resources Declarative automation It’s about the outcome, less about the journey • How does the tool define the resource state? • How do you perform changes with minimal downtime? Procedural automation It’s about the journey, less about the outcome • How do you ensure predictable outcomes? • How do you define and track the resource state?
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deployment automation using AWS CloudFormation Check feature gaps between AWS CloudFormation (or third- party tool) and Amazon Relational Database Service (Amazon RDS) APIs (AWS Management Console, AWS CLIs, SDKs) Check feasibility of workarounds using AWS CloudFormation Custom Resources (or similar) Ensure efficient ordering during resource provisioning (dependencies + custom resources) 1 2 3 Create alternative automation for minimal downtime production workflows 4
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Risk free dev/test, data extracts and analytics Bad practices we’ve seen: • App development and testing on tiny subsets of non-production data • Bulk data exports from live production instances • Running long, unoptimized queries on cluster readers • Lack of outcome focus The right way: • Know your features: Point-in-Time Restore, Database Cloning, Backtrack • Proper workload isolation • Test, don’t hope for the best
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database Cloning Get faster access to copies of your data so you can: Test changes in pre-production on relevant data sets Reorganize a database with minimal production impact Save a point in time snapshot for data analysis without impacting production systems 1 2 3
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Fast database cloning with Amazon Aurora Available for both MySQL and PostgreSQL compatible versions of Amazon Aurora Creation of clone takes a few minutes Data copy happens only on write, when the original and cloned volume start to differ Operations on clone do not affect the source cluster Up to 15 clones from the same source Pay only for the data storage difference on the clone PRODUCTION DATABASE CLONE CLONE CLONE DEV/TEST APPLICATIONS BENCHMARKS PRODUCTION APPLICATIONS PRODUCTION APPLICATIONS
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Backtracking databases Easily undo changes to your data: Reduce risk of database changes at scale Undo unintentional DML and DDL changes Mitigate risk of malicious changes to your data 1 2 3 Avoid time consuming data restore from backups 4
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How does Backtrack work? • We keep periodic snapshots of each segment; we also preserve the logs • For Backtrack, we identify the appropriate segment snapshots • Apply log streams to segment snapshots in parallel and asynchronously SEGMENT SNAPSHOT CHANGE RECORDS RECOVERY POINT SEGMENT 1 SEGMENT 2 SEGMENT 3 TIME
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Going back in time with Backtrack t0 t1 t2 t0 t1 t2 t3 t4 t3 t4 Rewind to t1 Rewind to t3 Invisible Invisible • Backtrack is not destructive • You can backtrack multiple times to find the right point in time • Pay for the volume of change records retained for the desired duration (up to 72 hours) • Available for Aurora MySQL 5.6 compatible
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Development focused on production scale Bad practices we’ve seen: • App development and testing on tiny subsets of non-production data • My database is always there for me and never fails me • Running long, unoptimized queries on cluster readers • Lack of outcome focus The right way: • Be aware of architectural differences between Aurora and equivalent engines • Know Aurora capabilities and operational procedures: automated failovers, upgrades • Extend Aurora features with application side cluster awareness • Test, don’t hope for the best: failure injection
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Connection management and availability Minimize failure downtime, and connection management overhead Common MySQL and PostgreSQL drivers are not cluster/topology aware Use a client side connection pool; recycle connections periodically; avoid connection storms Use a smart driver, or build topology awareness in your client data layer, validate connections 1 2 3 Understand the behavior of the Aurora DNS endpoints, manage DNS caching 4
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monitor the performance of your queries Establish a baseline of acceptable/desired query performance Assess performance impact of workload changes Troubleshoot poor performance, identify bottlenecks 1 2 3 Effective capacity planning4
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database health at a glance Amazon Aurora comes with comprehensive monitoring built-in:
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database health at a glance Amazon Aurora comes with comprehensive monitoring built-in:
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Performance Insights Available for both MySQL and PostgreSQL compatible versions of Amazon Aurora Easy and powerful dashboard showing load on your database Helps you identify source of bottlenecks: top SQL queries, wait statistics Adjustable time frame (hour, day week, month) 7 days of performance data history free – perfect for developers; up to 2 years of long term retention for production use cases Max CPU
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cost optimized development and testing Use database resources at appropriate scale only when they are needed 1 Dev and test activities are rarely continuous 2 Dev and test environment isolation3 Scale of dev and test activities varies
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora features helping with cost optimization
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora features helping with cost optimization
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Aurora Serverless use cases Development and test databases: • Easily provisioned • Cost savings when DBs are not in use • Simplify dev/test pipelines Infrequently used applications (e.g., low-volume blog site) Applications with variable load - peaks of activity that are hard to predict (e.g., news site)
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora Serverless architecture • Application talks to MySQL compatible endpoint • Fleet of routers manage queue, client connections and route DB traffic • Instance handles database operations • Data kept durable and highly available on Aurora storage volume • When scaling thresholds are reached we scale the instance substituting with capacity from warm pool • Scaling operations are transparent to applications • You configure min. and max. capacity, whether and when to pause DB if there’s no activity INSTANCE DATABASE STORAGE APPLICATION WARM POOL DATABASE TRAFFIC ROUTERS
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora Serverless pricing • You pay for capacity your database consumes while it is active • Database capacity is measured in Aurora Capacity Units (ACUs): 1 ACU ~ 2Gb of memory with corresponding CPU and network capacity • Flat rate per second of ACU usage, with a minimum of 5 minutes of usage each time the database is activated • Storage and I/O are billed the same as with Aurora instances Duration ACUs ACU-Hours Rate Charges 1 hour, 10 minutes, and 15 seconds (1.020 hours) 4 4.08 $0.06 $0.25 40 minutes and 34 seconds (0.676 hours) 8 5.41 $0.06 $0.32 Usage total for 24 hours 9.49 $0.06 $0.57 Usage Rate Charges 9.49 ACU-hours $0.06 per ACU-hour $0.57 80 GB of storage for 24 hours $0.10 per GB-month $0.26 90,000 I/O requests $0.20 per 1 million requests $0.02 Total charges for 24 hours $0.85
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Introducing the RDS Data API • Public HTTP API endpoint, integrated with AWS Authentication • Automated server side connection pooling • Ideal for AWS Lambda or serverless apps reusing connections across multiple invocations • Fully Integrated with AWS Secrets Manager and AWS AppSync • Optional session construct for efficient prepared statement executions • Interactive Query Editor in the console for ad-hoc queries • Available for Aurora Serverless (MySQL)
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Parting Thoughts Use automation wisely and map out your operational processes in detail Know Aurora’s features and how they can improve on your development and testing process Develop and test with performance in mind 1 2 3 Quantify the expected baseline performance of your workload 4
  • 35. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Steve Abraham Vlad Vlasceanu
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Companion workshops Tuesday, November 27th Accelerating Application Development with Amazon Aurora 11:30am – 2:00pm | Bellagio, Level 1, Grand Ballroom 6 Wednesday, November 28th Accelerating Application Development with Amazon Aurora 2:30pm – 5:00pm | Aria West, Level 3, Ironwood 1 Thursday, November 29th Accelerating Application Development with Amazon Aurora 11:30am – 2:00pm | Mirage, Mirage Event Center C3
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Related breakouts DAT204 | What’s New in Amazon Aurora DAT304 | Deep Dive on Amazon Aurora with MySQL Compatibility DAT305 | Deep Dive on Amazon Aurora with PostgreSQL Compatibility
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.