I. Introduction
- RDBMS in AWS is called RDS (Relational Database Service)
- Used in OLTP scenarios.
- DB instance is the building block.
- Only pay for the instances that are active.
- RDS includes SQL Server, Oracle, MySQL, MariaDB, PgSQL and Amazon Aurora.
- Key features of RDS include:
- Automatic provisioning, OS patching
- Continuous backups and restore to specific timestamp
- Monitoring dashboards
- Multi-AZ for disaster recovery
- Read-replicas for performance
- Storage backed by EBS (GP2 or IO1)
- RDS runs on virtual machines but you can't log into them.
- Patching is Amazon's responsibility
- It is NOT serverless (except Aurora)
- AWS also provides data warehousing with tools like Cognos, JasperSoft, SQL Server Reporting Services, Oracle, Hyperion, SAP NetWeaver.
- These are used to pull in very large and complex data sets. Usually used by management to do queries on data
- Redshift is AWS' data warehousing solution
- It's important to identify what kind of database you need based on use case — OLAP vs OLTP.
- ElastiCache is a web service that makes it easy to deploy, operate and scale in-memory cache in the cloud. The service improves the performance of web apps. ElastiCache supports two open-source in-memory caching engines:
- RDS supports encryption at rest and is done using KMS. Once your RDS instance is encrypted, the data stored at rest in the underlying storage is encrypted along with its automated backups, read-replicas etc
- For MS SQL, the max size RDS volume is 16 TB
- Regular metrics available by default including CPU utilization, database connections and freeable memory
II. RDS for SA
- Operations
- Small downtime when failover/maintenance happens
- Scaling in read replicas/EC2 instance/restore EBS implies manual interventions
- Security
- AWS responsible for OS security
- We are responsible for setting up KMS, security groups, IAM policies and user auth
- Reliability: Multi AZ feature, failover in case of failures
- Performance: Depends on EC2 instance type, EBS volume type, ability to add read replicas. Does not auto scale.