Databases Flashcards
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
- Server maintenance and energy footprint,
- Software installation and patches,
- Database backups and high availability,
- Limits on scalability,
- Data security,
- Operating system (OS) installation and patches;
Amazon Relational Database Service (Amazon RDS)
- Managed service
- Sets up and Operates a relational database
Database in EC2
You are still responsible for patching the OS and handling all software and backup operations.
Database in RDS - Aurora (engine)
- Automatically scale your database
- Enable high availability
- Manage backups,
- Perform patching.
DB Instance Class
- CPU
- Memory
- Network performance
DB Instance Storage
- Magnetic
- General Purpose (SSD)
- Provisioned IOPS
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
- Complex transactions / queries
- Medium to high query or write rate
- No more than a single worker node or shard * High durability
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.