RELIABILITY, SECURITY & CASE STUDIES · SUBTOPIC
Read vs. Write Amplification
Spot hidden multipliers from indexes, replication, fan-out, and LSM compaction.
AdvancedPart of Trade-offs & Bottlenecks
Subtopics in Trade-offs & Bottlenecks (2)
In plain words
One user click might trigger 1 write to the table, 5 index updates, 3 replica copies, and 1,000 timeline pushes - turning 1 logical action into 1,009 physical writes.
Think of it like…
CC’ing 500 people on an email turns 1 sent message into 500 deliveries.
Loading interactive diagram
Loading interactive exercise
Theory & how it works
Spotting the bottleneck in seconds
Always ask: "What is the read:write ratio?" On a 100:1 read-heavy app (URL shortener), gladly spend extra work on writes (building indexes, warming caches) to make reads 1 ms. On a 1:10 write-heavy app (telemetry), strip extra indexes and batch writes in LSM/Kafka.
Key points & practical guide
Summary checklist
- Every index speeds reads but adds write amplification
- Drop unused indexes on write-heavy tables
- Use hybrid fan-out and batching to bound amplification
When to use it
- Database optimization and architecture trade-off reviews
Watch out for
- Adding 10 secondary indexes to a high-churn events table
Quick check
Loading quiz