Skip to content
Preptima
hardDesignCase StudyMidSeniorStaff

Photos are the payload, thumbnails are the traffic, and both must survive losing a disk. Where does each copy live?

Photo storage should separate originals from thumbnails. Originals are large, rarely read and irreplaceable, so keep a canonical erasure-coded object; thumbnails are small, hot and rebuildable, so replicate them, cache them at the edge and address them by content or transform version.

5 min readUpdated 2026-08-15

Answer

Short answer

Store original photos and thumbnails as different workloads. The original is the durable source of truth, so keep it in object storage with strong durability and no direct public reads. Thumbnails are derived, frequently read and rebuildable, so store replicated derivatives behind a CDN using content- or version-addressed keys that avoid cache invalidation.

Was this answer helpful?

Likely follow-ups

  • A code change makes every existing thumbnail wrong. What is your plan, and what does the renderer see in the first minute?
  • Why is a 6-plus-3 erasure code a poor choice for 20KB objects when it is a good one for 4MB objects?
  • If two users upload the same photograph, what does content addressing do to your delete-my-data guarantee?
  • How do you serve a thumbnail whose original has been erasure-coded into a region that is currently unreachable?

Related questions

Related Topics