All posts
Data Platform

DynamoDB vs Postgres, Measured in AWS: 53 Workloads From the Same Client

By

November 9, 2026

12 min read

We ran 53 workloads against RDS Postgres 17 and DynamoDB from one Fargate task in the same Availability Zone, at 100,000, 1 million and 5 million orders. Key lookups took 0.35 ms in Postgres and 2.7 ms in DynamoDB; a two-item transaction 1.75 ms against 20 ms; a question nobody designed for, 0.08–2.7 s against a full table scan. The full results, with the method and every caveat.

Benchmark
Postgres Performance
DynamoDB

Most DynamoDB-versus-Postgres comparisons are opinions. This one is measurements: the same orders data in both, the same client, the same network, 53 workloads from key lookups to transactions, hot keys, throughput and ad-hoc reports.

At 5 million orders

Postgres (db.m7g.large)

DynamoDB

Get an order by ID, median

0.35 ms

2.7 ms

Insert an order, median

0.93 ms

4.0 ms

Insert plus counter update, as a transaction

1.75 ms

20.3 ms

Revenue by region and month (an unplanned question)

2.3 s

A full scan: 217,000 read units, 74 s in one client

Get an order by ID0.35 ms2.7 msA customer's 20 latest orders0.52 ms3.8 msGet 25 orders in one request0.63 ms6.0 msInsert an order0.93 ms4.0 msUpdate a status0.96 ms4.0 msTransaction: insert + counter1.8 ms20 ms

Postgres

DynamoDB

Median latency for everyday operations at 5 million orders, measured from the same client (log scale). Our measurements, November 2026.

The data
PostgresDynamoDB
Get an order by ID0.35 ms2.7 ms
A customer's 20 latest orders0.52 ms3.8 ms
Get 25 orders in one request0.63 ms6.0 ms
Insert an order0.93 ms4.0 ms
Update a status0.96 ms4.0 ms
Transaction: insert + counter1.8 ms20 ms

The full report covers all 53 workloads at three sizes: strongly consistent reads, batches, pagination, conditional writes, hot keys, throughput from 1 to 128 concurrent clients, 16 analytics questions, schema changes, 40 KB items and cold connections, with what each costs in DynamoDB request units.

Choosing between them for a real system?

We'll go through your access patterns with these numbers in hand. 30 minutes, free.

hoolco Monthly Review

Once a month: what changed in tech that month and what it means for you, from cloud and AI to security and the tools you build with. Every item links to its source. No sales pitch, unsubscribe in one click.

As of November 9, 2026. Provided as is, for general information, and accurate to the best of our knowledge on the date shown. Not legal, compliance, tax, financial or other professional advice. Prices, limits and vendor services change; check current vendor documentation before relying on anything here. Terms of use.