Skip to content
Preptima
mediumDesignScenarioMidSeniorStaff

Every uploaded image needs six sizes and the thumbnail has to appear immediately. What runs before you return, and what does not?

Thumbnail generation system design should return one displayable image immediately while every durable variant is produced asynchronously. Persist the original, write metadata, show a client-side preview or first small thumbnail, and expose variant readiness so the UI never asks for an image size that is not ready.

5 min readUpdated 2026-08-15

Answer

Short answer

Persist the original first, return a preview or smallest thumbnail immediately, and generate the remaining image sizes through idempotent background jobs that publish variant readiness.

Was this answer helpful?

Likely follow-ups

  • The renderer is down for twenty minutes. What does a user who uploads during that window see, and what do they see afterwards?
  • How do you avoid rendering the same variant twice when the job is delivered twice?
  • Which of the six sizes would you drop entirely, and what measurement would justify dropping it?
  • A designer adds a seventh size for a page that launches on Friday. What has to happen before Friday?

Related questions

Related Topics