Aurora, RDS Proxy and upgrades
Aurora separates compute from shared storage
Amazon Aurora is a relational database engine family with MySQL-compatible and PostgreSQL-compatible editions. A typical regional Aurora cluster has one writer and optional reader instances that use a distributed cluster storage volume. Storage is replicated across three AZs in the Region, independently of how many compute instances you create. A single compute instance still has redundant storage, but adding a suitable reader in another AZ gives a ready failover candidate. Do not equate storage durability with uninterrupted application availability.
Choose the correct endpoint
The cluster (writer) endpoint directs connections to the current writer. The reader endpoint distributes new connections among available readers, not individual SQL statements. If there are no readers, that endpoint can connect to the writer; it is not an authorization boundary. Instance endpoints select specific instances. Use database read-only roles for reporting and reconnect after failover instead of pinning the old IP.
Checkout -> writer endpoint -> writer in AZ-aReports -> reader endpoint -> reader in AZ-bBoth instances -> shared regional cluster storageA reader can lag; keep freshness-sensitive operations on the writer.
Serverless capacity and connection pooling
Aurora serverless (the v2 architecture) adjusts compute capacity within configured bounds measured in Aurora Capacity Units (ACUs). Supported versions, minimum/maximum capacity and pause behavior vary; verify before relying on them. Scaling compute does not remove storage, query design or billing responsibilities. RDS Proxy is a managed connection pool for supported engines and versions. It can reuse database connections across clients and improve connection management during failover. Session state or long transactions can pin connections and reduce reuse. A proxy cannot fix an inefficient query or make writes automatically idempotent. Verify supported authentication, network placement and proxy cost; use private connectivity.
Monitor before changing or upgrading
Start with symptoms: query latency, database load, CPU, free memory, connection count, storage or I/O metrics and replica lag. CloudWatch metrics and supported Database Insights features help locate bottlenecks; correlate them with query plans and application timing. Major engine upgrades may change behavior or break extensions; minor upgrades can still cause interruption. Review release notes and supported paths, restore a test copy, run schema and application regression tests, verify backup recovery, schedule a maintenance window and establish a cutover/rollback plan. A snapshot is not an instant rollback, and writes after cutover need reconciliation. Apply changes only in a separately authorized environment.
Compare costs with explicit assumptions
Illustrative worksheet, not AWS pricing: suppose a database consumes 120 compute-hours at $0.20/hour, 50 GB-months at $0.10/GB-month and 2 million I/O requests at $0.50/million. Partial subtotal is $24 + $5 + $1 = $30. Actual Aurora pricing depends on configuration, Region, compute mode and storage billing option, with additional costs such as backup, transfer, proxy and migration overlap. Compare measured workload profiles and current rates; serverless is not automatically cheaper. Practice: explain why a burst of new connections suggests investigating pooling, while a sustained expensive query suggests analyzing its plan.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Aurora, RDS Proxy and upgrades — knowledge check
Apply relational database architecture concepts to fictional workloads.
An Aurora cluster has one writer and no readers. What remains true?
How does the Aurora reader endpoint distribute normal read traffic when readers exist?
A burst of short-lived clients exhausts database connections. Which service is worth evaluating?
Before a major engine upgrade, which step reduces compatibility risk?
Using hypothetical rates, compute costs $24, storage $5 and I/O $1. What is the partial subtotal?