Menu

Avatar Delivery Recovery: 3 Rules for Content-Type Tags and Prefix Listings
📰

Avatar Delivery Recovery: 3 Rules for Content-Type Tags and Prefix Listings

DEV Community: go·Faelvorn538072·15 days ago
#pXnYiYtJ
#devtogo#devto#dev#object#database
Long article (1618 words) — no AI summary yet.
Reading 0:00
15s threshold

Short answer: store avatar bytes in object storage, but keep ownership, content type, dimensions, tags, and the active object key in your application database; a prefix-only listing cannot serve as a metadata search index.

For authenticated customer reports and user avatars, access control wins over delivery simplicity. Read the database row first, authorize it, and issue a signed read for that exact private key. Treat bucket listing as an operational recovery tool, not an account-page query path.

I've been paged by missed jobs and duplicate deliveries. The durable lesson applies here: retries are normal, so recovery must have one authoritative state and an operation that can be repeated without changing the result.

Infrai uses one API key across 295 routes in 20 modules, so it fits the private-object and signed-delivery boundary when the same team also operates other backend services.…

Continue reading — create a free account

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