Design an image hosting service (like Imgur)
medium 50 minUpload a picture, get a link at once, and let the whole world look at it.
Remember it
The few things worth knowing cold, and how to make them stick.
Memory hook
Box it, check it, print three, hang them up, and know how to take them down.
A photo booth. The photo goes into a closed box and you get a ticket. The back room trims it and prints three sizes. The prints hang on a line and shops in town keep copies. The ticket takes it all down again.
Cheat sheet
- Uploads
- 116/s, 347 peak
- Views
- 57,870/s, 173,600 peak
- Out
- 17.4 GB/s, 417 Gbit/s peak
- Edge, shield
- 95%, 80%
- To store
- 1%, 1,740/s
- Workers
- 290
- Growth
- 12.6 TB a day
- Records
- 11B, 16 shards
- Cache
- browser 1 h, shared 30 d
Spot it when you see
- Large files from users.
- Slow work after a fast answer.
- Files that never change.
- User content that may have to vanish.
Tricks that stick
- Box, Back room, Booth line: private, process, public.
- 95 then 80 leaves 1.
- Shield before edge.
- Records are many, bytes are one.
Do not forget
- Serving the original.
- Any size anyone asks for.
- A year in the browser.
- Deleting a shared blob.
- Cold decided from store reads.
- ETag taken for MD5.