Skip to content

Lesson 6 of 9 · 25m

S3 and RDS: Object Storage Is Not a Database

Choosing between object and relational storage, plus versioning, lifecycle, backups, and connection patterns that survive production.

S3 and RDS solve different problems, and forcing one to behave like the other is a classic expensive mistake. S3 stores immutable objects extremely well: files, artifacts, logs, images, exports. RDS runs managed relational databases: transactions, joins, constraints, indexes. If your design stores mutable application state as JSON objects in S3 or serves large binary assets straight out of RDS, the bill and the incident reviews will both be unpleasant.

S3 is a key-value object store with sharp edges

aws s3 cp report.csv s3://team-reports/incoming/report.csv   --sse aws:kms   --storage-class STANDARD

There are no partial object updates. A “rename” is a copy plus delete, and a “directory” is just a key prefix. Strong consistency applies to object operations, but your application still owns idempotency, retry behavior, and cleanup after partial multipart uploads.

Useful production settings:

Versioning: enabled for recoverability
Lifecycle: transition old versions to cheaper storage or expire them
Default encryption: SSE-S3 or SSE-KMS
Block Public Access: enabled unless the bucket is deliberately public

Versioning is not backup against every mistake — deleting both current and old versions still hurts — but it turns many accidents into recoverable events.

RDS is about connections and failure windows

An RDS instance gives you a database engine endpoint, managed patching, snapshots, replication options, and a lot of operational burden removed — not infinite capacity. Applications should use connection pooling, bounded retries, and credentials from Secrets Manager rather than hard-coded passwords.

Multi-AZ: synchronous standby for failover, not a read scaling feature
Read replica: asynchronous copy for read offload or migration patterns
Snapshot: point-in-time backup copy

These are related but not interchangeable. Multi-AZ does not make slow queries fast, and a read replica can lag. Know which failure you are actually buying protection against.

The decision rule

Ask what the data is:

  • Large immutable payload or file? S3.
  • Relational state requiring transactions? RDS.
  • Metadata describing an object? Often both: object bytes in S3, searchable metadata in RDS.
  • High-volume append-only telemetry? Often neither; consider purpose-built analytics or streaming systems before forcing a fit.

Field notes

  • S3 inventory and access logs are boring until an audit or incident, then suddenly indispensable.
  • aws s3 sync is not a backup strategy by itself; destructive operations can synchronize too.
  • RDS storage autoscaling prevents disk-full outages, but runaway queries can still consume CPU, memory, and connections.
  • Test restores. A snapshot nobody has restored is a hope, not evidence.

Was this lesson helpful?

Sign in to rate