DEV Community

GideonSterling9643
GideonSterling9643

Posted on

Scalable Object Storage Pricing: Tenant Isolation for Marketplace Backups

A low storage rate is a weak answer for continuous marketplace backups. The useful comparison is the cost and control of a tenant's complete recovery path: accepted backup bytes, retained versions, lifecycle transitions, deletion work, and the egress needed to restore one customer without exposing another. I would keep the storage bill in the worksheet, but make isolation and recovery the columns that can veto a service.

For an app that serves generated reports to authenticated marketplace customers, the safe default is a tenant-scoped backup namespace, immutable backup metadata, and a restore service that never accepts an arbitrary object key from the browser. That design costs a little operational complexity. It also prevents a cheap bucket from becoming an expensive incident.

How should you compare pricing for scalable object storage services?

Start with the data flow. A report job writes a manifest and its objects into a tenant-specific prefix or equivalent namespace. A queue records the completed backup. A policy retains the required generations. A customer request asks for a report through the application, which checks tenant identity before reading anything. The object store is durable storage in that flow, not the authorization layer.

This is the worksheet I use before looking at a rate card:

Cost or control Question for continuous backups Why it affects the decision
Stored bytes How many live and historical bytes remain per tenant? Retention and versioning can make growth non-linear.
Write and request activity How many uploads, listings, manifests, and lifecycle operations occur? Small report objects can make request charges matter.
Recovery transfer What leaves the service during a tenant restore? A restore is a workload, not an edge case.
Version retention Can an overwrite leave older data behind? Recovery history and deletion obligations must be explicit.
Isolation controls Can a restore be authorized by tenant and report ID? A low bill does not compensate for cross-tenant disclosure.
Deletion evidence Can the system prove which generations were removed? A tenant deletion request needs a bounded, auditable process.

The exact price is intentionally absent from that table. Prices change, and a monthly estimate built from one advertised storage number usually omits the events that make a backup system expensive: reports regenerated after a failed upload, stale versions, restore traffic, and an operator replaying a job.

Backblaze B2's pricing page is a useful example of why the worksheet needs separate rows for storage, downloads, and transactions. AWS's versioning documentation is a useful reminder that versioning changes the object lifecycle: an overwrite can leave a previous version available. Those are different facts, but they meet in the same estimate.

How do you keep a marketplace restore inside its tenant?

The application should derive the storage key from trusted identity and a validated report identifier. It should never treat a client-provided path as authorization. Here is a small TypeScript boundary; the storage implementation can be replaced without changing the tenant check.

\`ts
type Principal = { tenantId: string; userId: string };

type ReportRef = {
tenantId: string;
reportId: string;
objectKey: string;
};

interface BackupStore {
getObject(key: string): Promise;
}

function assertReportAccess(principal: Principal, report: ReportRef): void {
if (principal.tenantId !== report.tenantId) {
throw new Error("report is outside the authenticated tenant");
}
}

export async function readReportBackup(
principal: Principal,
report: ReportRef,
store: BackupStore,
): Promise {
assertReportAccess(principal, report);
return store.getObject(report.objectKey);
}
`\

The example is deliberately boring. The report record comes from a database lookup constrained by tenantId\; the client does not supply objectKey\ as a free-form value. In a real service, the lookup and the read authorization belong to one request path, and the audit event should contain tenant ID, report ID, actor ID, result, and correlation ID. Avoid logging full object keys if they may contain customer data.

A prefix is not the whole isolation story. It helps organize data, but the application still has to bind identity to the record it reads. Separate credentials, accounts, or buckets can be appropriate for high-risk tenants, but they multiply policy and operational work. I would reserve that stronger boundary for a stated threat model, not use it as a substitute for authorization tests.

Where do versions and deletion change the bill?

Continuous backup systems create history. History is valuable until nobody can explain which copy is authoritative. Versioning can preserve older object versions after an overwrite, so the storage forecast must model retained generations rather than counting only the latest report. A report regenerated every hour is not one object in the cost model if prior versions remain available.

Deletion is also a control, not a button. GDPR Article 17 describes a right to erasure, with conditions and exceptions. An implementation therefore needs a deletion record, a bounded sweep over manifests and versions, and a verification step. The record should distinguish “application no longer serves this report” from “all retained backup representations have been handled.” That distinction is easy to lose when the system stores opaque objects behind a single report ID.

I initially treated lifecycle rules as a cleanup detail. The correction was to make retention part of the backup contract: every tenant gets a policy, every backup records the policy version, and every estimate includes the maximum retained generations. This makes a pricing comparison slower at the beginning and much more believable at month six.

How should services be compared without vendor lock-in?

Put AWS S3, Backblaze B2, and Google Cloud Storage in the same worksheet, but compare behaviors rather than slogans. For each candidate, record the storage class or tier used, request dimensions, data retrieval or download charges, lifecycle capabilities, version behavior, region choices, access controls, audit integration, and the operational steps required to restore one tenant. The point is not to crown a winner. It is to expose which assumption drives the total.

Use a small synthetic workload that resembles the marketplace: 10,000 tenants, 4 report artifacts per tenant per day, two retained generations, and a restore drill for one tenant. These figures are a test fixture, not a production forecast. Change them to your observed object sizes and retention policy. I care about the shape of the result: does one tenant restore without scanning unrelated keys, and does deleting that tenant have a finite, reviewable job?

Keep the storage adapter narrow. The rest of the application should ask for putBackup\, getBackup\, listGenerations\, and deleteGeneration\ through a local interface, while a separate policy module decides retention. Avoid spreading provider-specific URLs or headers through report handlers. Portability is not a claim that every service behaves identically; it is the discipline of keeping provider differences at one boundary.

A practical comparison has three passes. First, price the normal write and retention path. Second, price a month with a failed upload retry and a tenant restore. Third, test deletion and authorization with a staging tenant whose object names look like real production names. A service that looks cheaper in pass one may be the wrong fit if pass two requires broad export permissions or pass three cannot produce convincing deletion evidence.

The operational checklist belongs in the deployment process, not at the bottom of a spreadsheet. Alert on backup age per tenant, failed manifest completion, unexpected object-count growth, and restore latency. Exercise a restore on a schedule that matches the business risk. Keep a correlation ID from report generation through object write and restore. Review the permissions used by the backup worker separately from the permissions used by a customer-facing read path. Finally, document who can bypass the application and how that access is audited.

The decision rule is simple: choose the service whose complete recovery path fits the threat model and retention policy, then compare its price under the same workload. Tenant isolation is a prerequisite. Storage price is one input.

This design has limits. A shared namespace is a poor fit when regulations or a threat model require physical account separation, and a local adapter cannot erase differences in retrieval behavior or regional availability. In those cases, the extra isolation boundary may be worth the policy and operations burden. That is a real trade-off, not a reason to pretend the services are interchangeable.

Sources

Top comments (0)