/Practice

Scale and the numbers reels

Scale and the numbers1 / 4
200k technicians × 2 GB of photos each
0TB of uploads a week
So bytes go straight to S3. Never through your API.
Field app, real numbers
Do the multiplication out loud.
#capacity
Scale and the numbers2 / 4
1M daily users × 10 syncs a day ÷ 86,400 s
0requests / second
Plan for 5 to 10 times that at peak.
Requests per second
Average load is smaller than people guess.
#capacity
Scale and the numbers3 / 4

Scale in 4 stages

1

MVP

one Postgres, monolith sync API

2

Growth

replicas, Redis, push hints, CDN

3

Scale

partitioned log, CDC, snapshots

4

Large

shards, regional cells

Scale in 4 stages
Under 10k users. Keep it boring.
#backend
The retry storm