Designing Retention, Audit Trails, and Deletion for User Avatar Uploads in Object Storage
The article argues that storage choice should follow retention and deletion requirements, with authorization, audit history, and reconciliation handled in the application layer. Large avatar files should bypass the API by using short-lived direct uploads to object storage. Each upload is tracked through separate identities for the account, media record, object key, and upload attempt, to avoid deletion errors. A two-phase protocol creates a pending record first, then verifies the stored object before marking it available. Deletion is handled as a controlled, auditable state transition rather than a simple storage call.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in