Menu

Avatar Upload Backend Storage — Large-File Throughput and Snapshot Recovery for EU/US Apps
📰

Avatar Upload Backend Storage — Large-File Throughput and Snapshot Recovery for EU/US Apps

DEV Community: go·ZorvynGale1729·12 days ago
#IYyPeQt7
#devtogo#devto#dev#restore#object
Long article (1352 words) — no AI summary yet.
Reading 0:00
15s threshold

Short answer: keep avatar metadata in the database, keep the bytes in an object-oriented store, and treat local disk as a cache; for a fintech app that must restore tenant snapshots, measure large-file throughput and recovery time before choosing a layout.

I learned this from a backup drill, not a diagram. A tenant restore looked healthy because the database rows came back quickly, while the larger file set was still copying. The login path then served a mix of old and new avatars. Nothing crashed. The data was simply at two points in time, which is worse during an incident because it is easy to miss.

The invariant is simple: one database record names the immutable object version, and a restore changes the active pointer only after the corresponding bytes and checksum are verified. Local disk can accelerate a hot read, but it cannot be the source of truth for a multi-instance service.

Evaluating the split-brain avatar set after a restore

Start with a control-plane row.…

Continue reading — create a free account

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