Menu

Containing Unbounded Resize Variants Before Cache Admission (A Media Recovery Plan)
📰

Containing Unbounded Resize Variants Before Cache Admission (A Media Recovery Plan)

DEV Community: go·IronspireDraven77·9 days ago
#eK4SirXe
#devtogo#devto#dev#manifest#request
Long article (2078 words) — no AI summary yet.
Reading 0:00
15s threshold

Predictable thumbnails belong in upload-time processing; arbitrary request-time dimensions turn every new size into another cache entry. TL;DR: for an auto-tagged media library with known search-result layouts, derive a bounded set of thumbnails from each original and retain that original for reprocessing. Choose request-time resizing when the required dimensions genuinely cannot be predicted, and make the accepted transformation space an explicit operating decision. The difference in cost is structural: a fixed derivation set per upload versus work and cache growth driven by requested variants.

For a tabletop production exercise, I'd start with a media search page showing uploaded photographs and contributor avatars, then ask what happens when a client starts requesting slightly different thumbnail widths. This is a hypothetical incident, not a report of an observed outage.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.