Read-heavy vs write-heavy systems
Most design decisions depend on one ratio: how often data is read compared to how often it's written. How to estimate it, how to spot each kind inside one app, and which tools fit each side.
In one sentence
A read-heavy part is read far more than it changes (a video page); a write-heavy part receives a constant flood of new data (view counts, analytics). Each one needs different tools.
The read/write ratio
Before choosing caches, replicas, queues or databases, ask: for every write, how many reads happen? A tweet is written once and read thousands of times. A view counter is written on every single view.
The trick is that one app is never just one kind. Classify the parts of a video platform below.
- Watch page (title, description, channel)
- View counter
- Search results
- Analytics events (watch time, clicks)
- Comments under a video
- Uploading a video
- Profile & settings
- Live chat during a stream
How to estimate it
- Start from users: e.g. 10M daily active users.
- Count actions per user per day: each opens ~20 videos (reads) and leaves 0.1 comments (writes).
- Turn it into requests per second: 10M × 20 / 86,400 ≈ 2,300 reads/s vs 10M × 0.1 / 86,400 ≈ 12 writes/s.
- Multiply by 2–3 for peak hours.
A ratio like 200:1 tells you straight away that reads are the problem to solve for that feature.
Tools for each side
Read-heavy
- Caching at every layer (CDN, Redis)
- Read replicas
- Indexes tuned for the read queries
- Denormalized or precomputed data so a read is one lookup
Write-heavy
- Queues to buffer and smooth bursts
- Batching many small writes into one
- Write-optimized databases (Cassandra, time-series stores)
- Sharding so writes spread over many machines
- Few indexes on hot write tables
Key takeaways
- 01Estimate reads and writes per second for each feature, not for the whole app.
- 02Read-heavy parts scale with caches, replicas, indexes and precomputed data.
- 03Write-heavy parts scale with queues, batching, sharding and write-optimized databases.
- 04Many features mix both: separate the write path from the read path.
Check your understanding
1 of 3
What makes a feature read-heavy?
Related concepts
Read replicas
A read replica is a copy of the database that receives every change from the primary and answers read queries, so you can add read capacity without touching writes.
7 min read →Caching
A cache stores copies of data that are expensive to get (slow query, far away server) so the next request can be answered from somewhere fast and close.
9 min read →Async writes with a queue
Instead of writing to the database during the request, the API puts the write in a queue and answers immediately; workers drain the queue at a pace the database can handle.
7 min read →Estimation
Estimation turns users into requests per second, storage and bandwidth with rounded numbers. The goal isn't precision: it's knowing whether you need one database or a hundred.
6 min read →