FCJ - Week 5 - Database on AWS
FCJ - Week 5 - Database on AWS
Week 5 – Module 5
Microsoft
SQL
Server
• CPU/ Memory / IOPS / • Process / Thread list • SQL / State / User / Host
Network • Per second metric (“Database Load”)
• Per minute metric storage in Amazon • Per second metric storage
storage in Amazon CloudWatch Logs in Amazon RDS
CloudWatch
• Network security
• Amazon Virtual Private Cloud (VPC) security groups act as a virtual
firewall to control inbound and outbound traffic
• Data encryption
• Encryption at rest using AWS KMS or Oracle/Microsoft TDE
• SSL protection for data in transit
Application Database
servers failure Standby
Fault tolerance
across multiple data
centers
• Automatic failover New
standby
Availability Zone A
• Synchronous replication
Primary
• Enabled with one click
Availability Zone B
Amazon EBS
Volume
• Always incremental
Amazon S3
• Amazon S3
99.999999999%
durability
• Supports encryption Bucket Snapshot 1 Snapshot 2 Snapshot 3
Compute
Node
SQL
Caching
Attached
Storage
Continuous backup to
Amazon S3.
AZ 1 AZ 2 AZ 3
Amazon
Tolerating compute failures
Cluster Reader
Endpoint Endpoint
AZ 1 AZ 2 AZ 3
• Simple to use
• Reliable
• Supports widely used
databases
• Low cost
• Fast and easy to setup
Sources* Targets**
Oracle Oracle
SQL Server SQL Server
Azure SQL PostgreSQL On-premises
database
PostgreSQL MySQL
MySQL Amazon Redshift
SAP ASE SAP ASE
MongoDB Amazon S3
Amazon S3 Amazon DynamoDB
IBM DB2 Amazon Kinesis
Amazon ElasticSearch
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.html
*
**
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.html
You can use different tasks with different settings for different environments
Features
Schema conversion between database engines
Database Migration Assessment report for choosing the best target engine
Code browser that highlights places where manual edits are required
Relational Key - Value Document Wide Collumn In-memory Graph Time Series Ledger
Relational Key - Value Document Wide Collumn In-memory Graph Time Series Ledger
1K WCU or 3K RCU
T1.p1 T1.pn
up to 10 GB
© 2023, Amazon Web Services, Inc. or its Affiliates.
DynamoDB Table
Table
A1 A2 A3 A4 A5
(partition (sort key)
key)
A1 A2
(partition (sort key)
key)
Items
A1 A2 A6 A4 A5
(partition (sort key)
key)
All items for a partition key
A1 A2 A3 A4 A7
==, <, >, >=, <=
(partition (sort key) “begins with”
key) “between”
sorted results
counts
Partition Key top/bottom N values
SortKey paged responses
Optional
Mandatory Model 1:N relationships
Key-value access pattern Enables rich query capabilities
© 2023, Amazon Web Services, Inc. or its Affiliates.
Determines data distribution
Item Distribution
Keyspace
Partition B
OrderId: 2
CountryCode : 1 Hash(2) = 48
ASIN: [B00OQVZDJM]
AA
OrderId: 3 Partition C
CountryCode : 1 Hash(3) = CD
ASIN: [B00U3FPN4U]
FF
Hash.MAX = FF
Related data (aggregate) is stored together for efficient access
© 2023, Amazon Web Services, Inc. or its Affiliates.
Path of a PutItem request
RR RR RR RR RR
AVA IL A B IL IT Y RR RR RR RR RR
ZO N E 1
RR RR RR RR RR
RR RR RR RR RR
AVA IL A B IL IT Y RR RR RR RR RR
ZO N E 2
RR RR RR RR RR
Network
RR RR RR RR RR
AVA IL A B IL IT Y RR RR RR RR RR
ZO N E 3
RR RR RR RR RR
Data Scientist
Amazon
Amazon
Amazon Amazon
Exploration, Integration,
S3 Amazon Amazon
Kinesis Neptune S3 QuickSight SageMaker Predictive Models
Systems of
Record
Amazon Data Experts
S3 Glacier Amazon Amazon Amazon
AWS
Glue Redshift DynamoDB Athena Ad-hoc Reports,
Raw Data Create KPIs
Systems of
Engagement
AWS Amazon
AWS
Database
Amazon
Amazon
Elasticsearch
Amazon
ElastiCache Lambda API Gateway Business Users
Migration Service Service
S3 Dashboarding,
Sensor & Move Data
Prepared Data
Consumable Data Insights Consumption Use KPIs, Slice & Dice
Log Data
…
Downstream
External Data Amazon AWS Amazon Amazon Amazon Amazon Amazon Systems
Athena Glue EMR Transcribe Rekognition Comprehend SageMaker
Data Feeds,
Data Processing, Metadata Management Machine Learning
Information Hub
Analytical Data …
Insights
Applications
AWS AWS AWS Amazon AWS AWS
Data Sources KMS IAM CloudTrail CloudWatch CloudFormation Config Actionable Insights at
Security, Identity and Compliance Management and
the Point of Impact
Data and Insights Applications
Governance
© 2023, Amazon Web Services, Inc. or its Affiliates.
Serverless data lakes and analytics
Amazon RDS
On-premises data
Streaming data
Glue
Data Catalog
• Automatically discovers data and stores schema
Discover data and • Catalog makes data searchable, and available for
extract schema ETL
Compliance
• Serverless
Bắt buộc – Sử dung account do AWS cung cấp: Lab thử thách – Sử dụng account cá nhân hoặc
AWS cung cấp:
• Amazon RDS
https://000005.awsstudygroup.com/vi/ • Data lake / Data Analytic on AWS
https://000070.awsstudygroup.com/vi/
https://000072.awsstudygroup.com/vi/
https://000073.awsstudygroup.com/vi/
• DMS và SCT
https://000043.awsstudygroup.com/vi/