TL;DR: For a media application storing user documents, the useful comparison is not a feature scoreboard. Azure Blob Storage, Google Cloud Storage, and Amazon S3 can all hold objects behind temporary authorized requests. The hard decision is the isolation boundary around each tenant: separate key prefixes or containers, an authorization service that checks ownership, immutable backup metadata, and a restore path that cannot write into the wrong tenant. Pick the service that fits your existing identity, region, and operations constraints, then measure request latency and restore behavior with your own object sizes.
This is an experiment note, not a vendor verdict. I am evaluating a simple design in which the upload service accepts a tenant ID and object metadata, while storage receives the bytes through a short-lived signed request. The first version put tenant IDs into a shared bucket prefix and treated that prefix as the security boundary. That was easy to ship and easy to misunderstand. A prefix is a naming convention; it is not an authorization decision.
The chosen design makes the application authorize every upload and download before issuing temporary access. It records a snapshot manifest separately from the objects, including tenant ID, object key, checksum, creation time, and retention state. A restore job reads that manifest and writes into a new restore prefix before the application makes anything visible. That extra staging step costs another copy and some latency. It also gives the operator a place to validate tenant ownership before replacing a document. The test matrix has 2 object classes: many small documents and a few large media files. Those shapes stress different parts of the same restore workflow, so one happy-path fixture is weak evidence.
The correction is simple.
Isolation is the constraint.
Measure before copying this choice: p95 upload-to-visible time, failed authorization rate, restore duration for a representative tenant, and the number of objects touched by a restore. Cost matters, but a low storage bill does not compensate for a cross-tenant restore.
How should tenant isolation shape cloud storage for user uploads?
The three names describe similar object-storage primitives, but their control surfaces are not identical. Amazon S3 uses buckets and object keys, Azure Blob Storage uses storage accounts, containers, and blobs, and Google Cloud Storage uses buckets and objects. Each platform offers a temporary authorization pattern, but the token format, policy model, identity integration, and lifecycle controls differ. Those differences show up in code ownership and incident response rather than in the upload button.
| Decision area | Amazon S3 | Azure Blob Storage | Google Cloud Storage |
|---|---|---|---|
| Object namespace | Bucket plus key | Storage account, container, blob name | Bucket plus object name |
| Temporary access pattern | Presigned URL | Shared access signature | Signed URL or policy-based signed request |
| Isolation question | Who may use this key and URL? | Which account, container, and SAS scope are allowed? | Which bucket, object, and signed request are allowed? |
| Operational fit | Often aligns with AWS identity and tooling | Often aligns with Azure identity and storage-account boundaries | Often aligns with Google Cloud identity and bucket controls |
These are boundary differences, not a ranking. A team already operating one identity plane may reduce integration work by staying close to it. A team with a multi-cloud requirement may value a provider-neutral adapter more than a provider-specific convenience. The adapter should expose capabilities that the application can actually test, not pretend that every backend has identical retention or version semantics.
Can a signed upload keep tenants isolated?
Only if the service signs an already-authorized operation. A signed URL or equivalent credential proves that the holder may perform a constrained request; it does not tell the storage service whether the caller selected the correct tenant in your application. The application still needs to derive the object key from authenticated tenant context, constrain the operation, and set a short expiry. Never accept an arbitrary key from a browser and then sign it unchanged.
A small interface makes the boundary visible to reviewers. It also keeps storage-specific request construction out of the tenant authorization code.
type TenantObject = {
tenantId: string;
objectId: string;
contentType: string;
};
type UploadGrant = {
url: string;
expiresAt: string;
};
interface ObjectStore {
issueUploadGrant(input: TenantObject): Promise<UploadGrant>;
writeRestoreCopy(input: TenantObject, sourceKey: string): Promise<void>;
}
function objectKey(input: TenantObject): string {
return `tenants/${encodeURIComponent(input.tenantId)}/objects/${encodeURIComponent(input.objectId)}`;
}
async function prepareUpload(
store: ObjectStore,
authenticatedTenantId: string,
objectId: string,
contentType: string,
): Promise<UploadGrant> {
const input = { tenantId: authenticatedTenantId, objectId, contentType };
const key = objectKey(input);
// The implementation signs key, method, content type, and expiry together.
return store.issueUploadGrant({ ...input, objectId: key });
}
The example intentionally leaves signing details behind the interface. S3 presigned URLs, Azure SAS tokens, and Google Cloud signed URLs have different request fields and policy mechanics. The invariant belongs in tests: a grant for tenant A must not authorize an object key for tenant B, and an expired grant must fail.
There is a subtle failure mode here. Encoding a tenant ID does not validate it, and a database lookup does not automatically bind it to the authenticated principal. Resolve the tenant from the session, validate the requested object record, then derive the key. Keep the manifest authoritative for restore operations.
How should backups and selected-snapshot restores work?
Backups are more than copies of bytes. For a media workload, a usable snapshot needs a consistent inventory of the tenant's objects and the metadata required to decide what can be restored. Store the manifest outside the mutable request path, protect it with the same tenant authorization rules, and make its snapshot ID explicit.
A restore should be a new write set first. The job can copy objects into restores/{tenantId}/{snapshotId}/..., verify checksums where the backend and application expose them, and record failures per object. Only after validation should a transaction or pointer change make the restored set current. This avoids a half-finished restore silently replacing live documents.
Versioning and retention features can help, but they are not interchangeable across the three services. Check the exact behavior for delete markers, object generations or versions, retention locks, lifecycle transitions, and replication before treating a platform feature as a backup policy. A backup is only as good as its restore test. Run that test with a tenant that has many small files and another with a few large files; those shapes stress different parts of the workflow.
The cost trade-off is operational. Keeping every intermediate restore copy forever creates storage and listing work. Deleting it immediately removes an audit trail. A retention rule tied to snapshot status is easier to review than a timer hidden in a storage console.
What should be tested before choosing a provider?
Start with a contract suite against a fake store, then run the same cases against each candidate through an adapter. The cases should include: tenant A cannot read tenant B, a signed request cannot be reused outside its key or method, a duplicate upload has deterministic manifest behavior, a partial restore is retryable, and a revoked snapshot cannot become current. These tests expose architecture defects before a billing report does.
For the live test, use non-production documents and fixed object-size buckets. Capture p50 and p95 upload latency, time to first readable object, restore duration, list consistency as documented by the provider, and the number of storage requests per restore. Keep the test small enough to repeat after changing a policy.
I would also test the human path. Can an on-call engineer identify the tenant, snapshot, and exact object set from logs without reading payloads? Can they stop a restore safely? Are signed URLs absent from long-lived logs? Those questions connect isolation to observability, where many otherwise careful designs lose context.
The provider comparison belongs in this evidence set. Amazon S3, Azure Blob Storage, and Google Cloud Storage each offer different naming, authorization, identity, retention, and versioning details. Treat those details as adapter capabilities with documented limits. Do not flatten them into a common feature checkbox and then discover the difference during recovery.
The decision rule
Choose the storage service whose identity boundary, region requirements, retention behavior, and operational tooling match the system you can actually run. Keep the application contract vendor-neutral, but do not hide meaningful backend differences behind vague names such as backup() or secureUpload(). The implementation should expose expiry, snapshot state, restore staging, and verification results.
For this tenant-isolated media workflow, the winning design is the one that makes an incorrect tenant difficult to express, makes a restore observable, and lets the team prove recovery with repeatable tests. The brand on the bucket comes after those properties.
Further reading
- AWS S3 presigned URLs: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-presigned-url.html
- Azure Blob Storage shared access signatures: https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview
- Google Cloud Storage signed URLs: https://cloud.google.com/storage/docs/access-control/signed-urls
- AWS S3 Versioning: https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html
- Azure Blob Storage blob versioning: https://learn.microsoft.com/en-us/azure/storage/blobs/versioning-overview
- Google Cloud Storage object versioning: https://cloud.google.com/storage/docs/object-versioning
Top comments (0)