The mental model
Relational databases organize data with schemas and support SQL queries, joins, and transactions. RDS manages supported relational engines; Aurora is an AWS relational database offering with its own architecture. DynamoDB is a managed key-value and document database where partition keys, indexes, and access patterns are central design inputs.
Write down the reads, writes, consistency requirements, transaction boundaries, and expected data distribution. A design that needs arbitrary relational joins differs from one that repeatedly looks up a known key. Avoid choosing solely from a service’s scaling reputation: an unsuitable key or query pattern can make a simple application costly and difficult to operate.
Decisions to make
- Favor a relational model when joins and relational constraints are central to the workload.
- Consider DynamoDB when known access patterns can be designed around suitable keys and indexes.
Design exercise · no AWS resources needed
Work through a scenario
A shop needs order lookup, account history, and monthly financial reporting.
- Write the exact lookup and reporting questions.
- Identify joins, transaction boundaries, and expected key distribution.
- Compare a relational design with a DynamoDB access-pattern design.
Check your understanding
What should come before choosing DynamoDB partition keys?
Choose an answer to see the reasoning.
Continue with AWS documentation
Before following a deployment guide, review current pricing, permissions, and cleanup steps. Budget alerts are not a hard spending cap.