AWS+Database Distribution ML
AWS+Database Distribution ML
Chandra Lingam
Cloud Wave LLC
Encryption
Database Backup
S3
Security Group
Encryption Multi-AZ
My VPC
Client Client
Multi-Master, Multi-Region
Database Database
Elasticsearch Search database, store, analyze and correlate logs from disparate
applications and systems
Uses: search, infrastructure and application monitoring, Security info and
event management
Reference: https://aws.amazon.com/products/databases/
User-Movie Movie-
Rating Actor
Complex System
Scaling Challenges
Copyright © 2019 ChandraMohan Lingam. All Rights Reserved.
Amazon Relational Database Service (RDS)
Automates time-consuming administrative tasks (hardware,
installation, patching, backup)
SYNC
User, Primary Standby
Application Create
Read
Update
Delete
EBS EBS
Storage Storage
AZ 1 AZ 2
Multi-AZ Configuration
• Connect using DNS Name
• RDS maintains mapping between DNS Name and Primary Instance
• After failover, DNS is updated to point to new primary
Copyright © 2019 ChandraMohan Lingam. All Rights Reserved.
Failover Client
DNS – mydb.a1b2yz.us-west-2.rds.amazonaws.com
Primary Standby
Primary
Standby
AZ 1 AZ 2
Automated
Primary Standby S3
Backup
Primary Read
ASYNC Replica
Standby
Read Replica
• Offload Read traffic from primary instance
• Data can be stale
• One or more read replicas (depending on DB engine)
Copyright © 2019 ChandraMohan Lingam. All Rights Reserved.
RDS Patching
RDS RDS
Primary Standby
AZ 1 AZ 2 AZ 3
VPC
SYNC
User, Primary Standby
Application Create
Read
Update
Delete
EBS EBS
Storage Storage
AZ 1 AZ 2
Multi-AZ Configuration
Read Read
Primary
Replica 1 Replica 15
Read
Read Read
Write
1 2 3 4 5 6
AZ 1 AZ 2 AZ 3
Primary
Read/Write
1 2 3 4 5 6
Aurora Storage Subsystem
Data Sample:
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.Python.html
Copyright © 2019 ChandraMohan Lingam. All Rights Reserved.
Primary Key
DynamoDB Database
Copyright © 2019 ChandraMohan Lingam. All Rights Reserved.
Game Score Table
Client Client
Multi-Master, Multi-Region
Database Database
Application
Game Leader
GameScores UserProfile UserSession
Board
DynamoDB ElastiCache
Copyright © 2019 ChandraMohan Lingam. All Rights Reserved.
MemCached Features
• Key-value store
• Scales up to 20 nodes and 12.7 TB
• Sub milli-second latency