TL;DR: choose the object store that fits your existing identity, network, and operations model, then make retention and deletion an application-owned policy. For an e-commerce system storing user documents, the dangerous decision is not which API uploads bytes fastest. It is whether a tenant's backup can be deleted on schedule without destroying the selected snapshot needed for a restore.

I have been paged for missed jobs and duplicate deliveries. That history makes me suspicious of backup designs that depend on one scheduled task, one bucket prefix, or one provider-specific delete call. The durable shape is boring: immutable snapshot metadata in a database, tenant-scoped object keys, short-lived upload credentials, and a deletion workflow that records intent, completion, and verification.

Deletion is a policy decision.

How should cloud storage handle user uploads during tenant restore?

An upload is an object. A backup is a recovery contract. Those are related, but they should not share one retention rule by accident. A shopper's document may need ordinary lifecycle handling, while a tenant snapshot must remain restorable until its retention deadline. If both are mixed under a broad prefix, a cleanup job can satisfy its query and still remove the only copy a restore operation expects.

The first design decision is a policy table, not a bucket name. For example, a tenant may retain daily snapshots for 7 days, weekly snapshots for 30 days, and explicitly selected snapshots until an operator clears the hold. The values are policy examples, not universal defaults. The important property is that selection creates a durable hold, and deletion checks that hold at the moment it acts.

I would store an immutable snapshot record with the tenant ID, snapshot ID, object key, creation time, retention deadline, hold state, checksum, and deletion state. The object key should be derived from an internal identifier rather than a user filename. User-controlled names are useful metadata; they are poor authorization boundaries.

The three large object-storage APIs expose different names for similar primitives. Amazon S3 uses presigned URLs, Azure Blob Storage uses shared access signatures, and Google Cloud Storage supports signed URLs. Each can grant time-limited access without putting long-lived credentials in a browser. Their surrounding identity, policy, audit, and lifecycle systems differ, so the comparison should follow the controls your organization must operate, not the label on the upload URL.

What should the upload and restore boundary look like?

The browser should receive permission for one object and one operation, with an expiry short enough for the upload workflow. The application should validate tenant membership before issuing it, and should not accept a client-supplied tenant prefix as proof of ownership. After upload, a server-side finalize step records size, content type, checksum, and the object version or generation when the provider exposes one.

Restore is a separate authorization path. A request names a snapshot ID, not an arbitrary object key. The service loads the snapshot row, verifies the tenant and hold state, checks that the object still exists, and streams or copies it into the restore workflow. That extra lookup is intentional. It prevents a valid upload credential from becoming a general read credential.

Here is the deletion decision in Go. The storage adapter is deliberately generic; the policy belongs above it.

package retention import "time" type Snapshot struct { TenantID string ID string RetentionEnds time.Time LegalHold bool DeleteState string } func CanDelete(s Snapshot, now time.Time) bool { if s.LegalHold || s.DeleteState != "pending" { return false } return !now.Before(s.RetentionEnds) } 

The delete worker must be idempotent. Claim the database record with a compare-and-set transition, issue the object delete, and treat an already-absent object as a state that can be reconciled rather than as permission to erase the record. A retry after a timeout must not create a second deletion intent or skip the audit entry.

How do the three services change the operational work?

For a single-cloud team, the existing IAM model and private-network path may outweigh small API differences. In a mixed-cloud estate, portability has a different cost: signed-request construction, event formats, versioning behavior, restore tooling, and audit queries all need an adapter or a common operational contract. A neutral interface can hide request syntax, but it cannot hide those semantics.

S3 presigned URLs are bearer-style access tokens whose permissions are constrained by the signer and expiry. Azure SAS tokens similarly delegate scoped access for a defined interval. Google Cloud signed URLs provide time-limited signed access to a resource. In all three cases, the application still owns the decision about which tenant and snapshot are eligible; URL expiry is not a substitute for that decision.

Keep the comparison concrete:

Concern S3 Blob Storage Cloud Storage
Temporary upload mechanism Presigned URL SAS token Signed URL
Primary portability concern Request signing and object version semantics Token permissions and storage-account boundaries Signed request format and generation semantics
Application invariant Snapshot ID maps to one tenant-owned key Snapshot ID maps to one tenant-owned key Snapshot ID maps to one tenant-owned key

The table is a design prompt, not a feature ranking. Test the exact delete, restore, and audit behavior through the interface you plan to operate. Provider documentation should settle the details for the account type, region, versioning configuration, and client library version you deploy.

There is no universally best service here. A team that already operates one cloud's identity and private-network controls may accept less portability to reduce operational surface. A team that must move tenants between clouds pays for adapters, cross-cloud transfer paths, and separate audit queries. That is the limitation of a generic storage interface: it can normalize method names, but it cannot erase provider-specific retention and version semantics.

I start with the deletion deadline, then test the upload path. That order is deliberate.

Verification before rollback

A backup is not verified when an upload returns success. The scheduled job should create a snapshot record, upload the object, finalize metadata, and perform a restore test against a disposable destination. Record the result against the snapshot ID. A checksum mismatch, missing object, or unexpected generation should fail the snapshot before it becomes eligible for restore.

Test the ugly paths before production: the worker dies after the object delete, the database transition times out, two workers claim the same snapshot, an operator adds a hold while deletion is queued, and a restore starts just as retention expires. Those cases define the state machine.

For rollback, stop new deletion claims, preserve pending records, and replay reconciliation from the audit log. Do not recreate a deleted object from an unverified temporary upload. If a policy change made retention too short, extending future deadlines is straightforward; recovering an already deleted object is a different incident.

Monitor counts and age, not only errors. Useful signals include snapshots past deadline, delete claims without completion, restore failures by tenant, held snapshots nearing expiry, and divergence between database state and object listings. Alert on a trend before a restore request exposes it.

The decision rule is simple: pick the storage service that matches the identity and network controls your team can run, then require the same tenant-scoped snapshot contract above it. Retention, holds, verification, and idempotent deletion are the system. The object API is one component.

References