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.…