Chapter Three

Databases

Eight databases spanning relational, document, key-value, in-memory, analytical, graph, and time-series models. AWS gives you a purpose-built engine for each shape of data — and the cost of picking wrong is a rewrite.

8 services

Core Terminology

A few terms recur across this chapter. Defining them here keeps the service sections focused.

OLTP vs OLAP
Transactional databases (OLTP) serve many small reads and writes; analytical databases (OLAP) scan huge ranges for aggregates. Different engines, different shapes.
Read Replica
A read-only copy that offloads read traffic from the primary. Asynchronous, so it can lag slightly behind.
Multi-AZ
A synchronous standby in another Availability Zone that takes over automatically on failure — durability and failover, not read scaling.
Partition Key
The attribute DynamoDB hashes to distribute data. Choosing it poorly creates hot partitions that throttle throughput.
Provisioned vs On-Demand
Two capacity modes: reserve throughput for predictable load and lower cost, or pay per request for spiky, unpredictable load.

Services in This Chapter