AWS Cloud Architecture•Part 4: Storage, Content Delivery & Databases (36 - 50)
Amazon Aurora Architecture.
In Simple Words: Aurora separates compute from storage:
- Storage is distributed across 3 AZs with 6-way replication.
- Writes are acknowledged when 4 of 6 storage nodes commit.
- Delivers up to 5x the throughput of standard MySQL and 3x of standard PostgreSQL.
hcl
resource "aws_rds_cluster" "aurora_postgres" {
cluster_identifier = "aurora-prod-cluster"
engine = "aurora-postgresql"
engine_version = "15.4"
database_name = "production"
master_username = "dbadmin"
manage_master_user_password = true # Managed by AWS Secrets Manager!
}