Unmanaged Services
Scaling, fault tolerance, and availability are managed by you.
Managed Services
Scaling, fault tolerance, and availability are typically built into the service.
Challenges of relational databases
Amazon Relational Database Service (Amazon RDS)
Database in EC2
You are still responsible for patching the OS and handling all software and backup operations.
Database in RDS - Aurora (engine)
DB Instance Class
DB Instance Storage
Multi - AZ deployment
Ability to configure your database instance for high availability. RDS automatically generates a standby copy of the database instance in another Availability Zone within the same VPC.
RDS Read Replicas
Features:
* Offers asynchronous replication
* Can be promoted to primary if needed
Functionality:
* Use for read-heavy database workloads
* Offload read queries
RDS Use Cases
Web and mobile applications,
Ecommerce applications,
Mobile and online games.
When to use RDS
Clock-hour billing
Resources incur charges when running.
Database characteristics
Physical capacity of database:
* Engine,
* Size,
* Memory class.
On-Demand Instances
Compute capacity by the hour.
Reserved Instances
Low, one-time, upfront payment for database instances that are reserved with a 1 year or 3 year term.
Relational
Rows and Columns,
Fixed Schema,
SQL,
Vertical Scalability;
Non-Relational
Amazon DynamoDB
Fast and flexible NoSQL database service for any scale. (SSD Exclusive).
DynamoDB Core Components
Partition Key
Simple primary key, which is composed of one attribute called the sort key. (GUID).
Composite Primary Key
Composed of two attributes:
* Partition key
* Sort key
Partitioning
As data grows, table data is partitioned and indexed by the primary key.
Data Retrieval DynamoDB