Você está na página 1de 22

RDS and DynamoDB

Managed Databases

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 1
Data Storage Considerations

No one size fits all.


Analyze your data requirements by considering:
Data formats
Data size
Query frequency
Data access speed
Data retention period

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
SQL and NoSQL Databases

SQL NoSQL
Data Storage Rows and Columns Key-Value
Schemas Fixed Dynamic
Querying Using SQL Focused on collection of
documents
Scalability Vertical Horizontal
SQL NoSQL
ISBN Title Author Format {
ISBN: 9182932465265,
Title: Cloud Computing Concepts,
9182932465265 Cloud Computing Wilson, Paperback
Author: Wilson, Joe,
Concepts Joe
Format: Paperback
3142536475869 The Database Gomez, eBook }
Guru Maria

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
Amazon Relational Database Service (RDS)

Cost-efficient and resizable capacity


Manages time-consuming database
administration tasks
Amazon Access to the full capabilities of Amazon
RDS Aurora, MySQL, MariaDB, Microsoft SQL
Server, Oracle, and PostgreSQL databases

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 4
AWS Managed Database Services

Deployment and Administration

Amazon DynamoDB
App Services
Amazon ElastiCache

Compute Storage Database Amazon RDS

Amazon Redshift

Networking AWS Database Migration Service

AWS Global Infrastructure

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 5
Amazon RDS

Simple and fast to deploy


Manages common database administrative tasks
Compatible with your applications
Fast, predictable performance
Simple and fast to scale
Secure
Cost-effective

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 6
DB Instances

DB Instances are the basic building blocks of


Amazon RDS.
They are an isolated database environment in the
cloud.
They can contain multiple user-created databases.

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 7
How Amazon RDS Backups Work

Automatic Backups: Manual Snapshots:


Restore your database to a Let you build a new
point in time. database instance from a
Are enabled by default. snapshot.
Let you choose a retention Are initiated by the user.
period up to 35 days. Persist until the user deletes
them.
Are stored in Amazon S3.

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 8
Cross-Region Snapshots

Are a copy of a database


snapshot stored in a
different AWS Region.
Provide a backup for
disaster recovery.
Can be used as a base
for migration to a
different region.

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 9
Amazon RDS Security

Run your DB instance in an Amazon VPC.


Use IAM policies to grant access to Amazon RDS resources.
Use security groups.
Use Secure Socket Layer (SSL) connections with DB instances
(Amazon Aurora, Oracle, MySQL, MariaDB, PostgreSQL, Microsoft
SQL Server).
Use Amazon RDS encryption to secure your RDS instances and
snapshots at rest.
Use network encryption and transparent data encryption (TDE) with
Oracle DB and Microsoft SQL Server instances.
Use the security features of your DB engine to control access to
your DB instance.

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 10
DB Parameter & Option Groups

DB Parameter Groups:
Contain engine configuration values that can be applied to one or
more DB instances of the same instance type.
Amazon RDS applies a default DB parameter group when you create
DB instance, which contains defaults for the specific database engine
and instance class of the DB instance.
DB Option Groups:
Tools that simplify database
management.
Currently available for Oracle,
Microsoft SQL Server, and MySQL 5.6
DB instances.

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 11
A Resilient, Durable Application Architecture

Elastic Load Balancing


load balancer instance

Application, in Amazon
EC2 instances

Amazon RDS database


instances:
DB snapshots in Master and Multi-AZ standby
Amazon S3

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 14
Amazon DynamoDB

Store any amount of data with no limits


Fast, predictable performance using SSDs
Easily provision and change the request
capacity needed for each table
Amazon
DynamoDB
Fully managed, NoSQL database service

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 16
Provisioned Throughput

You specify how much provisioned throughput capacity


you need for reads and writes.
Amazon DynamoDB allocates the necessary machine
resources to meet your needs.
Read capacity unit:
One strongly consistent read per second for items as large
as 4 KB.
Two eventually consistent reads per second for items as
large as 4 KB.
Write capacity unit:
One write per second for items as large as 1 KB.

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 17
DynamoDB Use Case

Adroll Uses AWS to grow by more than


15,000% in a year
We spend more on snacks
Needed high-performance, flexible
than we do on Amazon
platform to swiftly sync data for
DynamoDB.
worldwide audience
Valentino Volonghi Processes 50 TB of data a day
CTO, Adroll
Serves 50 billion impressions a day
Stores 1.5 PB of data
Worldwide deployment minimizes

AdRoll, an online advertising platform, serves 50


billion impressions a day worldwide with its
latency

global retargeting platforms.

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 18
DynamoDB Data Model

Artist Song Album Year Genre


Title Title

Table:
Items
Music

Attributes (name-value pairs)

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 19
Primary Keys

Artist Song Album Year Genre


Title Title

Table: Table: Music


Music Partition Key: Artist
Sort Key: Song Title

Partition Key

Sort Key
(DynamoDB maintains a sorted index for both keys)

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 20
Local Secondary Index
Artist Song Album Year Genre
Title Title

Table:
Music Table: Music
Partition Key: Artist
Sort Key: Song Title
LSI: Album Title
Partition Key

Sort Key

LSI

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 21
Database Considerations
If You Need Consider Using

A relational database Amazon RDS


service with minimal Choice of Amazon Aurora, MySQL, MariaDB, Microsoft
administration SQL Server, Oracle, or PostgreSQL database engines
Scale compute and storage
Multi-AZ availability
A fast, highly scalable Amazon DynamoDB
NoSQL database Extremely fast performance
service Seamless scalability and reliability
Low cost
A database you can Your choice of AMIs on Amazon EC2
manage on your own and Amazon EBS that provide scale compute and
storage, complete control over instances, and more.

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 22
Learning Path

Fundamentals Deeper dive into Deeper dive into


Compute / Networking Security and RDS

Cloud computing Elastic Compute Identity and


concepts (EC2) Access
Foundational Virtual Private Management
Services Cloud (VPC) Relational
Managed Database
Services Services
DynamoDB
concepts
(NoSQL)

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 29
Expand Your Cloud Skills with AWS

Online videos and Instructor-led courses Certification


labs

Start working with an AWS Learn how to design, deploy, Validate your proven
service in minutes with free and operate highly available, technical expertise with the
online instructional videos cost-effective, and secure AWS platform and gain
and labs applications on AWS recognition for your skills
aws.amazon.com/training/ aws.amazon.com/training aws.amazon.com/certification
self-paced-labs

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 30
Thanks for Attending
AWSome Day
Please stick around were not quite done!

2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 33