Short answer: compare scalable object storage services against the full backup lifecycle, then choose the access boundary that your restore and deletion controls can actually enforce.
The cheapest storage meter is not the deciding factor for continuous app backups. For a logistics system with many tenants, I would first make the access boundary and restore path explicit, then compare storage, request, transfer, and retention charges against that design. A small difference in object price is easy to model. A backup that a tenant can read across an authorization boundary, or one that cannot be deleted when required, is an operational incident.
I have been paged by missed jobs and duplicate deliveries. The recurring lesson is plain: backup delivery needs its own state machine. Treating it as a file upload with a retry loop makes the happy path look cheap while hiding the recovery work.
How should teams compare pricing for scalable object storage services?
The useful comparison is not “which service has the lowest rate?” It is “what will one successful backup and one successful restore require over its full retention life?” For each tenant, estimate the following separately:
stored bytes + write requests + read requests + restore transfer + egress + lifecycle operations
Then add the engineering cost of the controls the service does not provide as part of your application boundary. Those controls include tenant scoping, immutable naming, deletion authorization, retry behavior, and evidence that a restore was tested.
For a continuous stream, the stored-byte term grows with retention. Request volume grows with backup frequency and object layout. A design that writes one object per database change may have a very different request profile from one that creates hourly manifests and larger immutable segments, even when both retain the same logical data.
That distinction matters more than a headline rate. It also gives procurement and SRE the same worksheet: the application team supplies object counts and sizes, while operations supplies restore frequency, transfer volume, and retention policy. Keep those assumptions versioned. A number copied from a pricing page without the workload behind it is not a forecast.
Where does simple delivery stop being safe?
There are two tempting designs. In the first, a central worker owns every credential and sends all tenant backups through one queue. Delivery is straightforward, but the worker becomes the enforcement point for every read, delete, and restore. In the second, tenants receive direct access to storage objects. That can reduce application traffic, but it moves authorization details into object names, tokens, policy documents, and client behavior.
I initially assumed direct delivery would win because it removed one service hop. The restore review changed that assumption: the saved hop still left us responsible for tenant checks, token scope, audit evidence, and deletion state. The comparison had to include those controls.
Neither is universally correct. The boundary should follow the operation. A tenant may be allowed to select a snapshot from its own catalog, while the restore worker alone reads the underlying backup bytes. That split preserves a simple delivery path for writers and a narrower read path for sensitive data.
For logistics data, I prefer a catalog record that contains a tenant identifier, snapshot identifier, creation time, byte count, checksum, and lifecycle state. The object key is an opaque identifier, not a customer-readable path. The catalog authorizes selection; the worker authorizes retrieval. A successful upload does not mean the snapshot is restorable until the manifest and integrity check have been recorded.
That is the boundary I would price.
The price consequence is indirect but measurable. A catalog adds writes and reads. A proxy restore adds application transfer. A direct download may add fewer application operations but demands tighter token scope and stronger audit coverage. Put all three in the comparison instead of treating delivery simplicity as free.
| Delivery shape | Access boundary | Operational cost to model | Best fit |
|---|---|---|---|
| Worker-owned transfer | Restore worker reads and writes | Application transfer, queue retries, worker capacity | Tenant data must stay behind application authorization |
| Scoped direct access | Tenant receives a narrowly scoped object grant | Token issuance, audit coverage, policy testing | A client can safely read selected objects |
| Catalog plus controlled restore | Catalog selects; worker retrieves | Catalog operations, restore transfer, integrity checks | Selection and byte access need different permissions |
The table is a design comparison, not a price list. Its purpose is to expose which meter and control each option adds.
Keep the meter visible.
How should retries protect both cost and correctness?
The first production rule is idempotency. A retry must be allowed to repeat a request without creating a second logical snapshot or charging the system with an untracked object. Give each backup attempt a deterministic key derived from tenant, backup sequence, and snapshot identity. Store a manifest only after the object is complete, and make the manifest transition conditional on the expected checksum.
Here is the shape of the write path. The storage client is deliberately generic; the important part is the order of state transitions, not a provider-specific SDK.
package backup
import (
"context"
"fmt"
)
type ObjectStore interface {
Put(ctx context.Context, key string, body []byte, checksum string) error
Head(ctx context.Context, key string) (checksum string, ok bool, err error)
}
type ManifestStore interface {
Published(ctx context.Context, tenantID, snapshotID, key, checksum string) (bool, error)
Publish(ctx context.Context, tenantID, snapshotID, key, checksum string) error
}
func PublishSnapshot(
ctx context.Context,
objects ObjectStore,
manifests ManifestStore,
tenantID, snapshotID string,
body []byte,
checksum string,
) error {
key := fmt.Sprintf("snapshots/%s/%s", tenantID, snapshotID)
published, err := manifests.Published(ctx, tenantID, snapshotID, key, checksum)
if err != nil {
return err
}
if published {
return nil
}
if err := objects.Put(ctx, key, body, checksum); err != nil {
return err
}
actual, ok, err := objects.Head(ctx, key)
if err != nil {
return err
}
if !ok || actual != checksum {
return fmt.Errorf("snapshot integrity check failed")
}
return manifests.Publish(ctx, tenantID, snapshotID, key, checksum)
}
This code does not replace a database transaction or a storage service's conditional-write feature. It shows the invariant to test: an object may exist without being advertised as a usable snapshot, but a published snapshot must point to verified bytes. If the process dies after Put and before Publish, the next attempt can inspect the object and finish the state transition. A cleanup job can later remove orphaned objects under a bounded policy.
There is a sharp limitation. A deterministic key prevents duplicate logical names; it does not make every underlying operation free of races. Two workers can still reach the same snapshot concurrently. Use a lease, a compare-and-set manifest state, or an equivalent single-writer rule. Do not solve that race by deleting whichever object finishes second. A late delete can destroy the first valid result.
Does versioning solve retention and deletion?
No. Object versioning can preserve previous versions when an object is overwritten, but it changes the inventory that retention and deletion must account for. A delete request may create a delete marker or leave older versions subject to separate handling. The operational question is not whether a key disappeared from a listing; it is whether every retained representation is covered by policy.
That matters for tenant erasure. GDPR Article 17 describes a right to erasure, subject to conditions and exceptions. A backup design therefore needs a documented decision about snapshots, manifests, replicas, and indexes when a tenant deletion request is accepted. Retention cannot be an excuse for an unbounded copy of personal data. At the same time, deleting bytes before the business's legal and recovery policy permits it can create a different incident.
I would make deletion a workflow with a request ID, an authorization check, a list of affected objects, a completion record, and an audit event. The restore worker must reject a snapshot whose tenant is in a deletion state. That is more work than handing a client a broad object prefix, but it keeps the access decision visible and testable.
Versioning also affects the cost model. Count current objects and noncurrent versions independently. Include list, metadata, and deletion operations in the forecast. If the service offers lifecycle rules, test their timing and scope against a fixture containing multiple versions; do not infer behavior from the name of a rule.
Which comparison should reach the design review?
Bring a small workload model, not a vendor scorecard. For example, a review can compare three retention choices for the same tenant population: daily snapshots for 30 days, hourly snapshots for 7 days plus daily snapshots for 30 days, and continuous segments with a 30-day recovery window. The exact values are policy inputs, not universal defaults. The useful output is the resulting object count, average object size, expected restore bytes, and number of authorization decisions.
Keep access control and delivery simplicity as separate axes. A direct client download can be operationally simple for a restore that is already authorized. It is a poor fit when the client should never see the underlying storage credential. A service-mediated restore can add transfer and request work, yet it can centralize tenant checks, rate limits, audit records, and deletion-state handling.
The design review should answer five concrete questions:
- Which principal can create, list, read, restore, and delete a snapshot?
- What event changes a backup from uploaded to restorable?
- What does a retry do after a worker timeout?
- How are old versions and orphaned objects discovered?
- What measured restore test proves the retained data is usable?
Run the restore test with a tenant that has several snapshots and at least one interrupted upload. Check that the selected snapshot is the one restored, that another tenant's object is unreachable, and that a repeated restore does not create duplicate application state. Record request counts and transferred bytes along with duration. Those numbers are the evidence behind the price estimate.
The exception is a low-risk, single-tenant system with no direct tenant access and a short, fixed retention policy. There, a simpler worker-owned path may be a reasonable choice. The exception disappears once tenants can select or download their own snapshots, deletion requirements become tenant-specific, or the restore path is shared across regions.
The conclusion is practical: choose the storage service only after the backup state machine, authorization boundary, and retention inventory are defined. Then compare the resulting workload against current public pricing pages and re-run the model when frequency, retention, or restore behavior changes. That process keeps a cheap upload from becoming an expensive recovery failure.
Sources
- GDPR Article 17, Right to erasure: https://gdpr-info.eu/art-17-gdpr/
- AWS S3 object versioning documentation: https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html
- Backblaze B2 Cloud Storage pricing: https://www.backblaze.com/cloud-storage/pricing
Top comments (0)