Contenu connexe Similaire à AWSome Day MODULE 3 - Databases (20) Plus de Amazon Web Services (20) AWSome Day MODULE 3 - Databases1. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Module 3 - AWS Databases
@AWS_UKI
@AWS_actus
#AWSomeDay
2. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Module 3 - Overview
How to choose the correct database
Managed SQL and NoSQL Databases
Hands on - Create an MySQL Database
Additional Database services
Hands on - Migrate a Database with the AWS
DMS service
3. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
How to choose the correct database
Consider the format/structure of data, the total volume of data and speed/scaling
requirements.
Carry out a data modeling exercise to choose the correct database type such as relational,
document, key/value pair.
Consider splitting data across different database types. This can give improvements in
scale/speed, storage optimization, resiliency and cost optimization.
Consider the read/write patterns and ensure solution scale/speed gives the required
throughput.
4. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
AWS Database Services – Amazon RDS
Amazon RDS
Amazon RDS optional Multi-AZ modes
Master
Standby – runs in a different AZ to the Master
Read Replica
Amazon RDS database run in VPC’s and inherit VPC security features such as Security
Groups and Network ACL’s. Database engines support SSL/TLS configured with Amazon
RDS Options. All database engines support encryption as well as Microsoft SQL and Oracle
DB supporting transparent data encryptionTDE
Automatic backups
35 Day rolling window
Manual backups –
retained until
customer deletes
Cross region
snapshots
Monitor with Amazon
CloudWatch for 1-click
scaling
5. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
AWS Database Services – Amazon RDS
Amazon Aurora
Aurora Multi-Master is a feature of the
Aurora MySQL-compatible edition, adds
the ability to scale out write performance
across multiple Availability Zones,
allowing applications to direct read/write
workloads to multiple instances in a
database cluster and operate with higher
availability. Multi-Master is currently in
preview.
Aurora Serverless is a new configuration
of the Aurora MySQL-compatible edition,
automatically scales database capacity
up and down to match your application
needs. It’s designed for applications with
infrequent, intermittent or unpredictable
workloads, and can save you time, effort
and cost . Serverless is currently in
preview.
Performance Insights helps
assess load on your database
and determine when and where
to take action for PostgreSQL
deployments
PostgreSQL
Compatible with PostgreSQL 9.6
Up to 3X the performanceof
PostgreSQLon the same
hardware
MySQL
Compatible with MySQL 5.6
Up to 10X the performanceof
MySQL on the same hardware
6. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Demo – Create an MySQL Database
7. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
AWS Database Services – Amazon DynamoDB
Amazon DynamoDB
Event Driven Programming
Integration with AWS Lambda to
provide triggers that
automatically react to data
changes
Fast, Consistent Performance
DynamoDB is designed to deliver
consistent, fast performance at
any scale for all applications
Average service-side latencies are
typically single-digit milliseconds
Highly Scalable
Specify target utilization and
DynamoDB automatically scales
capacity up and down
Now also support Global Tables
for multi region replication
8. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Amazon DynamoDB Data Model
Table:
Music
Items
Attributes (name-value pairs)
Artist Song
Title
Album
Title
Year Genre
9. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Amazon DynamoDB Primary Keys
Partition Key
Sort Key
Table: Music
Partition Key: Artist
Sort Key: Song Title
(DynamoDB maintains a sorted index for both keys)
Table:
Music
Artist Song
Title
Album
Title
Year Genre
10. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Simple Application Architecture
Clients
Amazon
DynamoDB
Business logic
Elastic
Load
Balancing
Amazon
EC2 app
instances
AWS
Lambda
Amazon API
Gateway
11. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
AWS Performance and Data Analytics
Amazon Redshift
Petabyte scale data warehouse
Specifically designed for online analytic
processing (OLAP) and business intelligence (BI)
applications, which require complex queries
against large datasets.
With just a few clicks it’s easy to resize your
cluster up and down to suit performance and
capacity
Extend Redshift with Amazon Spectrum for Data
Lake analysis (Avro, CSV, Grok, ORC, Parquet, RCFile,
RegexSerDe, SequenceFile, TextFile, and TSV)
Amazon ElastiCache
Managed, in-memory data store
Choose between Memcached or Redis
Build data-intensive apps or improve the
performance of your existing apps by retrieving
data from high throughput and low latency in-
memory data stores
12. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
AWS Performance and Data Analytics
AWS Snowball
Snowball addresses common challenges
with large-scale data transfers including
high network costs, long transfer times,
and security concerns. Transferring data
with Snowball is simple, fast, secure, and
can be as little as one-fifth the cost of
high-speed Internet.
AWS Database Migration Service
AWS Database Migration Service helps you
migrate databases to AWS quickly and
securely. The source database remains fully
operational during the migration, minimizing
downtime to applications that rely on the
database.
Supports homogenous migrations such as
Oracle to Oracle, as well as heterogenous
migrations such as Oracle to Aurora or
Oracle to Microsoft SQL Server.
13. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Demo – Migrate a database with
DMS
14. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
End of Module 3
@AWS_UKI
@AWS_actus
#AWSomeDay