Download pptx - Amazon rds

Transcript
Page 1: Amazon rds

LOGO

Amazon RDSNguyen Trung Thanh

1

Page 2: Amazon rds

2

Outline

Concept RDS Features, Functionality Scalability Compare to SQL Azure Conclusion Q&A

Page 3: Amazon rds

3

Solution for Database Build your own

For example - MySQL on EC2, Postgres , … Acquire instances Install the database according to your architecture Self manage your database

Database-as-a-Service For example - Amazon RDS,

Xeround, Azure SQL…. ,

Page 4: Amazon rds

4

Amazon RDS

RDS = Relational Data Storage A Service make it easy to

+ Set up

+ Operate

+ Scale

Relational Database on Cloud

Page 5: Amazon rds

5

Elasticity

Page 6: Amazon rds

6

Similarities

Web Portal

Your App

Change Connection String

Page 7: Amazon rds

7

RDS Features, Functionalities

Pre-configured ParametersMonitoring and MetricsAutomatic Software Patching Automated BackupsDB SnapshotsPush-Button Scaling Automatic Host Replacement Replication: two features Multi-AZ Deployment, Read Replica

Page 8: Amazon rds

8

Amazon RDS Tooling MySQL

WorkBench All the Oracle

Tools

AWS Management Console CLI ( Command Line Interface ) APIs

Page 9: Amazon rds

9

Scalability-Two Types of Scaling

Page 10: Amazon rds

10

Scalability – Scale Up vs. Scale Out

Scale Up/Vertical Scaling Select next available configuration (EC2, RDS) Relatively simple but limited scalability

Scale Out/Horizontal Scaling Add additional resources Complicated but high scalability RDS Read replicas

Page 11: Amazon rds

11

Amazon RDS Scale Up

Page 12: Amazon rds

12

Shared Everything vs. Shared Nothing

Shared Everything Scale throughput but limited due to shared resources Storage and networking limitations in the cloud ScaleDB

Shared Nothing Horizontal data partition / sharding Unlimited scalability Many design and implementation

challenges

Page 13: Amazon rds

13

Stategies for scaling

Read Replicas Read replicas, also known as master-slave

deployments. A good option for applications with a high read to write ratio.

A single master database is responsible for handling all writes.

The writes are then replicated to the slaves which are designated

to handle just reads.

Partioning/Sharding Breaking a larger database up into smaller databases + Splitting tables that are not joined in the same query onto different

hosts

+ Duplicating a table across multiple hosts and then splitting where

a row goes.

Page 14: Amazon rds

14

Read Replicas

Master

R

RR

Load Balancer

RR

Page 15: Amazon rds

15

Read Replicas

Page 16: Amazon rds

16

Multi-AZ DeployementAvailability Zones: are distinct locations within

a Region that are engineered to be isolated from failures in other Availability Zones.

Run a DB Instance as a Multi-AZ deployment, the “primary” serves database writes and reads. Amazon RDS provisions and maintains a “standby” behind the scenes, which is an up-to-date replica of the primary. The standby is “promoted” in failover scenarios. After failover, the standby becomes the primary and accepts your database operations.

Page 17: Amazon rds

17

Multi-AZ Deployement

Double the price

Page 18: Amazon rds

18

Sharding

Page 19: Amazon rds

19

ScaleBase-Auto Sharding

Page 20: Amazon rds

20

Compare to SQL Azure

Amazon RDS

Less Cloudy

Built on MySQL/Oracle

Amazon RDS wins Scale UpSQL Azure

More Cloudy

Built on SQL Server

SQL Azure wins Scale Out

Page 21: Amazon rds

21

Pricing

Page 22: Amazon rds

22

Main Amazon RDS Pricing - MySQL

Page 23: Amazon rds

23

Main SQL Azure Pricing

Page 24: Amazon rds

24

Page 25: Amazon rds

25

Page 26: Amazon rds

26

ConclusionSimple to DeployManagedCompatibleScalableReliableDesigned for use with other Amazon Web

Services SecureInexpensive: On-Demand DB Instances, Reserved DB

Instances

Page 27: Amazon rds

27

Q&A


Recommended