Report Storage Design Ties Uploads, Scans and Deletion to a Database Ledger
An architecture decision record argues that a database record, not the browser or storage bucket, should govern the lifecycle of uploaded reports. The proposed design has browsers upload into a private quarantine bucket while an authenticated storage event creates the durable processing record. Originals, thumbnails, scan results and deletion deadlines would all be linked to a single report ID and reconciled against storage. The author notes that the approach adds a ledger, a worker queue and a reconciler, which may be unnecessary for small internal tools with disposable files. The document also lists invariants, such as single-tenant ownership, at-most-once processing and no customer access before scanning passes.
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