For an app storing healthtech data, the best object storage service for data backup is the one that can move a 2 GB report, apply automated file lifecycle rules, and protect an authenticated customer from another tenant's object. I would choose a standards-compatible object store only after proving those three paths with production-shaped files. The service name is secondary.
The operational rule is straightforward: generate into a private object key, publish only after a complete write, issue a short-lived read capability, and make retention a policy that is tested like code. Keep the application out of the byte stream whenever the platform can transfer directly. That leaves the API responsible for authorization and metadata, while the storage path handles throughput and range reads.
How should an object storage service handle app data backup?
A report is not merely a blob. It has an owner, a generation, a retention class, and a recovery expectation. I use a key such as tenant/2026/10/report-<id>/generation-3/report.pdf, but that path does not authorize anyone. The database record remains the source of truth for tenant membership, report state, and revocation.
For a large file, the write protocol needs an explicit state transition:
- Create a pending report row with a unique report ID.
- Stream or upload parts to a private temporary key.
- Verify the final byte count and checksum that the storage API reports.
- Mark the generation ready in one database transaction.
- Return a download capability only after that commit.
This ordering handles the awkward middle states. A worker can die after the object is complete but before the row changes. A reconciler can find that object and either finish the transition or quarantine it. A row can also say ready while the object is absent, and a read-path check should turn that into a controlled failure with an alert rather than a blank response.
Why is direct streaming worth the boundary?
I have been paged by missed jobs and duplicate deliveries, so I treat retries as normal traffic. Proxying every byte through the API makes retry behavior, connection limits, and memory pressure part of the application release. Direct transfer moves the heavy path to the storage boundary, but it does not remove application responsibility: the API must validate the tenant, report state, expiry, and requested disposition before it grants access.
In Go, the important code is the decision boundary, not a vendor SDK call. The storage interface can be backed by an S3-compatible service, a self-hosted implementation, or another provider without changing the authorization rule.
package reports import ( "context" "errors" "time" ) var ErrNotReady = errors.New("report is not ready") // AuthorizeDownload keeps tenant ownership in the application database. type Report struct { TenantID string ObjectKey string Ready bool } type Store interface { PresignGet(ctx context.Context, key string, expires time.Duration) (string, error) } func DownloadURL(ctx context.Context, store Store, report Report, tenantID string) (string, error) { if report.TenantID != tenantID || !report.Ready { return "", ErrNotReady } return store.PresignGet(ctx, report.ObjectKey, 10*time.Minute) } The ten-minute value is a policy choice, not a security slogan. A shorter capability reduces exposure but can frustrate a slow connection; a longer one reduces repeat authorization calls but extends the impact of a leaked URL. Measure completion time by file-size bucket before setting it. Also record who requested the capability without logging the capability itself.
Where do lifecycle rules fail in practice?
Lifecycle management is useful for old report generations, temporary uploads, and backup retention. It is also asynchronous policy machinery. An object can remain visible for a period after its expiration condition is met, so a compliance workflow must not treat a lifecycle rule as the only deletion proof. The application should expose retention state, and a periodic inventory should compare expected objects with observed objects.
Use separate prefixes or tags for temporary and durable data. A temporary multipart upload should have a bounded cleanup policy. A durable report should move through a small number of retention classes, each with a documented restore test. Avoid a rule that matches every object in a shared bucket: one broad filter can silently apply backup retention to exports or apply export deletion to evidence that must remain. AWS documents lifecycle filters and expiration behavior; the same design questions apply across object-storage implementations.
A useful test matrix includes a 10 MB report, a 2 GB report, an interrupted upload, a duplicate worker retry, an expired capability, and a report whose tenant record has been revoked. Run it in a non-production account, then repeat the recovery portion against a sampled production-shaped dataset. The number of test cases is small. Their failure modes are not.
How should teams compare services without chasing a leaderboard?
Start with interfaces and evidence. Check multipart upload behavior, resumability, range reads, checksum support, encryption controls, audit events, lifecycle filters, deletion semantics, and restore procedures. Then test the path that matters: an authenticated customer downloading a large generated report while another worker retries the same job.
Three common service families illustrate why a single ranking is misleading. Amazon S3 exposes lifecycle configuration and multipart upload primitives; Google Cloud Storage provides object lifecycle management and resumable uploads; Azure Blob Storage provides lifecycle management and block-blob upload patterns. Those are capabilities, not a recommendation. Their operational details, identity integration, event delivery, regional behavior, and observability still need to be checked against the team's controls and data residency requirements.
The comparison should fit on an engineering worksheet:
| Question | Evidence to collect | Failure signal |
|---|---|---|
| Can a 2 GB report resume? | Interrupted multipart or resumable upload test | Restart begins at byte zero |
| Is tenant isolation enforceable? | Cross-tenant authorization test | Key naming is treated as access control |
| Does retention behave as designed? | Expiry, inventory, and restore test | Rule scope is wider than intended |
| Can responders explain a miss? | Audit, metrics, and object-state records | Only application logs exist |
This method keeps price in its proper place. Storage, request, transfer, and retrieval charges can matter, but an apparently cheap tier is a poor fit if restoring a report is slow, opaque, or operationally risky. The trade-off is a real limitation: direct transfers improve large-file throughput, while a proxy gives the application tighter control over every byte and can be easier to audit for small files.
The incident lesson
The invariant is simple: never let a successful byte transfer stand in for a successful business transition. A complete object without a committed report state is orphaned data. A committed state without a verifiable object is a customer-visible failure. Idempotent job IDs, conditional state changes, private-by-default objects, and reconciliation close that gap.
This approach does not fit every workload. If reports are tiny, ephemeral, and never downloaded outside the API, direct delivery may add unnecessary moving parts. A proxy is the better choice for that small case. If records require legal hold, retention must be integrated with the applicable policy and review process rather than delegated to a generic expiration rule. A lifecycle-only design is unsuitable when deletion must be proven synchronously. For large authenticated healthtech reports, however, the decision is less about finding a winner and more about proving the transfer, authorization, and deletion boundaries under retry.
Small test. Big consequence.
Sources
- MDN, Cross-Origin Resource Sharing (CORS): https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS
- AWS, Object lifecycle management: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html
- RFC 3986, URI Generic Syntax: https://www.rfc-editor.org/rfc/rfc3986
- Amazon S3, Multipart upload overview: https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html
- Google Cloud Storage, Object Lifecycle Management: https://cloud.google.com/storage/docs/lifecycle
- Azure Blob Storage, Lifecycle management policy: https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview


