AI Receipt Images in a Node.js App: A Throughput-First Storage Decision
Short answer: for a customer-support system that processes receipts, keep the original file in private object storage, keep thumbnails as separate regenerable objects, and make the Node.js application publish database pointers only after the bytes are complete; signed URLs and lifecycle rules should enforce access and retention policy, not stand in for either one.
The operational constraint changes the answer. Large-file throughput matters more here than the smallest posted storage rate, because an audit original has a different failure boundary from a thumbnail. The original receipt is evidence. The thumbnail is a convenience.
The audit record starts with a deletion policy
Start with the erasure boundary, then define the bucket layout. For every receipt, the application should know the original key, derivative keys, content digest, processing state, and deletion state.…