Compare Pricing for Scalable Object Storage Services for Receipt Archives
Short answer: compare backup storage by the recovery and access pattern, not by the headline per-gigabyte number. For a healthtech app that keeps receipt originals, the important inputs are retained versions, retrieval f
Short answer: compare backup storage by the recovery and access pattern, not by the headline per-gigabyte number. For a healthtech app that keeps receipt originals, the important inputs are retained versions, retrieval frequency, request volume, regions, deletion work, and the controls wrapped around every object. A lower storage rate can lose its appeal when the application needs frequent restores or a reviewer needs a defensible audit trail.
I use a small rule for this kind of decision: price the path from receipt upload to verified restore. The bucket is only one line on that path. The real constraint is access control versus delivery simplicity. A single private store with short-lived download authorization is easier to operate. Separate retention and recovery paths can reduce routine exposure, but they add policy, testing, and observability work. For a one-person SaaS, that extra work has to earn its place in the weekly shipping budget.
What does a receipt backup actually need to preserve?
The original file is evidence, not just a convenient attachment. A backup record should therefore carry the object key, tenant identifier, content hash, creation time, retention decision, and the event that caused the copy. The database can hold the searchable receipt metadata; object storage holds the bytes and their version history. Keeping those responsibilities separate makes a restore test less mysterious.
Object versioning is useful when an update or delete request is accidental. It is not a retention policy by itself. A versioned object can multiply stored bytes, and a deletion workflow still needs to define which versions are removed. GDPR Article 17 also makes deletion a business operation, not an afterthought: a tenant request may require finding and erasing copies that the normal application path never displays.
That is where continuous backups get expensive in ways a storage-rate table hides. Every write can create another object or version. Every restore can create retrieval and request activity. Every audit can create a controlled read. Model those events before comparing services.
How should I compare scalable storage pricing?
I start with a monthly worksheet, but I do not reduce it to one grand total. I keep these columns separate: stored bytes, new bytes per month, retained versions, write requests, read requests, data returned during a restore, and the number of regions. Then I add operational labor as a decision note rather than pretending it is zero.
The public pricing pages for Amazon S3, Backblaze B2, and Azure Blob Storage expose different pricing models and service boundaries. That makes a direct per-GB comparison incomplete. The useful comparison is a scenario matrix: ordinary retention, a tenant deletion, a routine restore, and a large incident restore. Use the same byte counts and request assumptions in each row, then read the provider's current pricing page for the applicable region and storage class. Prices change; the model should survive that change.
Here is the comparison I use before opening a calculator. It describes boundaries, not a winner.
| Service | Integration path | Good fit for this scenario | Limitation to test |
|---|---|---|---|
| Amazon S3 | Standard object APIs or SDKs | Teams already operating a broad cloud policy model | The policy and pricing surface can be complex across regions, requests, and storage classes |
| Backblaze B2 | S3-compatible APIs or its native interface | A deliberately small object-storage integration | Confirm the access-control features and recovery path needed by the audit workflow |
| Azure Blob Storage | Standard object APIs or SDKs | Applications already aligned with Azure identity and operations | Identity, tier, and region choices still need an explicit restore and deletion test |
The table's limitations are the point. A service with an easy first upload may be a poor fit once tenant-scoped reads, version cleanup, or a cross-region restore becomes routine. A wider policy system may offer more control while costing more engineering attention. Neither trade-off disappears in a pricing screenshot.
A compact input shape is enough to keep the calculation reviewable:
type BackupCostInputs = {
storedGiB: number;
newGiBPerMonth: number;
retainedVersions: number;
restoreGiB: number;
readRequests: number;
writeRequests: number;
regions: number;
};
const recoveryShare = (input: BackupCostInputs): number =>
input.restoreGiB / Math.max(input.storedGiB, 1);
The code does not produce a provider quote. That is deliberate. It makes the assumptions explicit and leaves volatile rates at the boundary where they belong. I would rather update a small rate table once a month than bury a copied price in deployment code.
Where access control changes the design
For receipt originals, the default should be private objects and an application decision before delivery. A user asks for a receipt; the application checks tenant ownership, role, and audit conditions; only then does it issue a short-lived authorization for the exact object. The browser should not learn a reusable bucket credential.
This adds a little delivery machinery. It also narrows the blast radius of a leaked link. The alternative is operationally simpler: a public or broadly shared path with application-level obscurity. That is a poor trade for health records. Simplicity that weakens authorization is debt with a security interest rate.
I keep backup writers separate from reader credentials. The writer can create a new immutable-looking key and record the result; it does not need permission to browse every tenant's receipt history. The reader path gets narrowly scoped access, and the audit event records who requested the file and which object version was returned. Exact policy syntax varies by service, so the invariant matters more than a provider-specific snippet: least privilege, explicit tenant scope, and a log that can be correlated with the business action.
The smallest working build
The backup job receives a receipt ID and an object stream. It writes a deterministic key, stores a checksum beside the database row, and marks the backup complete only after the storage operation succeeds. A retry must not create an untraceable second record.
type ReceiptBackup = {
tenantId: string;
receiptId: string;
sha256: string;
objectKey: string;
};
interface PrivateObjectStore {
put(key: string, body: Uint8Array, checksum: string): Promise<void>;
issueReadAuthorization(key: string, expiresInSeconds: number): Promise<string>;
}
async function backupReceipt(
store: PrivateObjectStore,
receipt: ReceiptBackup,
body: Uint8Array
): Promise<ReceiptBackup> {
await store.put(receipt.objectKey, body, receipt.sha256);
return receipt;
}
The interface keeps the application code independent from a vendor SDK. In production, I would add an outbox record around the database transition, retry with bounded backoff, and emit a metric for pending, completed, failed, and restored receipts. I would also run a restore test against a non-production tenant on a schedule. A backup that has never been restored is an assumption, not a recovery plan.
One trap deserves a blunt sentence.
Do not count a successful upload as proof that the backup is usable.
Validate the checksum, authorization decision, object version, and downloaded bytes. Then record the result.
What I would change at scale
At larger volume, I would split the policy into hot access, ordinary retention, and recovery-only copies. The split should follow measured access patterns, not a desire to use every storage tier available. A receipt needed by support this week has a different delivery requirement from a receipt retained for an audit window. My first assumption was that the storage line would dominate the 2026 worksheet; the access, deletion, and restore columns are the ones that force the harder choices.
I would also make deletion observable end to end. A deletion request should produce a durable job, enumerate the database reference and object versions, attempt each permitted deletion, and leave a reviewable result. The job needs an idempotency key. Otherwise a retry can look like a second legal event while the original outcome is still unknown.
This is the point where delivery simplicity starts losing to access control. The system gains more queues, policy checks, and restore tests. The payoff is clearer ownership of sensitive files and a smaller set of credentials that can read them. For a solo founder, I would accept that complexity only after a concrete access, retention, or recovery requirement justifies it. Outsource the undifferentiated storage mechanics; keep the tenant authorization and audit decisions in the application where the business context exists.
The final choice is therefore not the provider with the lowest displayed storage rate. It is the design whose monthly worksheet, deletion process, restore test, and access logs remain understandable after the next feature ships. That is the version of cost I can defend in a healthtech audit and still maintain week to week.
Further reading
- GDPR Article 17, Right to erasure: https://gdpr-info.eu/art-17-gdpr/
- Amazon S3 object versioning: https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html
- Backblaze B2 Cloud Storage pricing: https://www.backblaze.com/cloud-storage/pricing
- Amazon S3 pricing: https://aws.amazon.com/s3/pricing/
- Azure Blob Storage pricing: https://azure.microsoft.com/pricing/details/storage/blobs/
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.