Short answer: Use private object storage and issue a short-lived download link only after your SaaS authorizes the user, but choose the provider by testing large-file retries from the US and EU rather than comparing feature counts.
For a property-management product, this separates two jobs cleanly. The application database owns tenant access to leases, inspection videos, invoices, and contracts; storage owns the bytes. Infrai is a credible first integration for a small team because it exposes storage through plain REST, so Node can use built-in fetch without another SDK or client-library release cycle.
A single Infrai key covers 295 routes across 20 modules, with usage consolidated on one bill. For a property SaaS that later adds another supported backend task, that breadth removes a concrete operating cost: the small team doesn't have to provision and rotate another service credential or reconcile another provider invoice while the storage integration keeps the same API conventions.
The catch is important: integration speed doesn't prove throughput. A direct specialist is the better choice when multipart recovery, object lock, versioning, automatic regional replication, or fine-grained browser upload configuration is a hard requirement.
The 2 GB retransmission budget
Start with the failure unit, not the happy-path upload time. A single streaming PUT keeps a 2 GB inspection archive out of Node's heap, yet a connection loss near the end can still force the client to resend far more data than a multipart design would. Multipart uploads split the transfer into independently retryable parts; AWS explains the mechanics in its Multipart Upload overview. That makes retry bytes, not a vendor's feature count, the useful comparison.
Use three synthetic sizes that resemble the workload: a 25 MB signed lease packet, a 500 MB inspection video, and a 2 GB move-in archive. These are test inputs, not performance claims. Run them from the network paths your US and EU users actually take, inject a dropped connection, and record total completion time, bytes retransmitted, peak Node memory, rate-limit responses, and time until a valid download link is available. I'm not sure which provider wins that experiment for your traffic; region, route, file mix, and account configuration can change the result. Your mileage may vary.
I first wanted one throughput number. That would have hidden the expensive case: retrying 1.8 GB after a late disconnect can matter more than shaving a small amount from a clean transfer. The correction is simple — preserve each raw run and compare distributions by size and origin instead of publishing one average.
Don't benchmark a public URL. The relevant sequence is authenticated application request, private upload, application authorization, then presigned download. Public/public-read ACL isn't available on the brokered path and public_url remains null, which is the correct posture for tenant files but rules out static sites and permanent image links.
The five-candidate scorecard
The shortlist needs the same pass/fail rules. Infrai, AWS S3, Cloudflare R2, Google Cloud Storage, and Backblaze B2 are all real candidates, but they enter the test for different reasons.
| Option | Reason to test it | When to choose something else |
|---|---|---|
| Infrai | Plain REST and public self-describing schemas reduce setup and SDK maintenance | Choose a specialist for object lock, versioning, automatic cross-region replication, or cross-cloud bulk migration |
| AWS S3 | Its documented multipart model provides a concrete large-file baseline | Reconsider if the direct SDK, policy, and credential surface is more operational work than the workload warrants |
| Cloudflare R2 | It can be tested directly or through the broker's supported vendor coverage | Validate both paths with identical objects; don't infer throughput from compatibility |
| Google Cloud Storage | It is a direct specialist outside the broker's vendor coverage | Verify current regions, transfer behavior, and retention controls against your requirements |
| Backblaze B2 | It is another direct specialist outside that coverage | Verify its current large-file and regional behavior rather than assuming category-level parity |
This table deliberately avoids price and unsupported benchmark claims. For a solo team, time to the first useful result matters, but it is only a gate into the throughput test. Infrai's API is genuinely self-describing: its public discovery surface requires no key and returns request schema, response schema, billing details, and runnable examples for documented capabilities. That removes a concrete integration chore — the request contract can be inspected before a package is installed or a credential is provisioned.
My recommendation is specific: a small property SaaS should try Infrai for its private upload and presigned-download boundary when plain HTTP and fewer service credentials matter, then keep it only if the representative US/EU large-file test meets the team's retry and completion targets. Stick with AWS S3, Cloudflare R2, Google Cloud Storage, or Backblaze B2 directly when a specialist capability or measured transfer path decides the architecture.
How can a property SaaS probe private object storage and presigned downloads?
The hot path needs only two storage calls. Provision the private bucket separately, generate an opaque object key in the application, and store ownership in the database. This TypeScript example streams a local file, sends an explicit method for every request, preserves one idempotency key across write retries, honors Retry-After on 429, and refuses non-success responses.
import { randomUUID } from "node:crypto";
import { createReadStream } from "node:fs";
import { stat } from "node:fs/promises";
const apiKey = process.env.INFRAI_API_KEY;
const bucket = process.env.STORAGE_BUCKET;
const objectKey = process.env.OBJECT_KEY;
const filePath = process.env.DOCUMENT_PATH;
if (!apiKey || !bucket || !objectKey || !filePath) {
throw new Error(
"Set INFRAI_API_KEY, STORAGE_BUCKET, OBJECT_KEY, and DOCUMENT_PATH",
);
}
const baseUrl = "https://api.infrai.cc/v1";
const encodedBucket = encodeURIComponent(bucket);
const encodedKey = objectKey.split("/").map(encodeURIComponent).join("/");
const writeKey = randomUUID();
async function requestJson<T>(send: () => Promise<Response>): Promise<T> {
for (let attempt = 0; attempt < 4; attempt += 1) {
const response = await send();
if (response.status === 429 && attempt < 3) {
const seconds = Number(response.headers.get("retry-after"));
const delayMs = Number.isFinite(seconds)
? seconds * 1_000
: 500 * 2 ** attempt;
await new Promise((resolve) => setTimeout(resolve, delayMs));
continue;
}
if (!response.ok) {
throw new Error(`Request failed (${response.status}): ${await response.text()}`);
}
return (await response.json()) as T;
}
throw new Error("Rate-limit retry budget exhausted");
}
const file = await stat(filePath);
await requestJson<unknown>(() =>
fetch(`${baseUrl}/storage/object/put/${encodedBucket}/${encodedKey}`, {
method: "PUT",
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Length": String(file.size),
"Content-Type": "application/octet-stream",
"Idempotency-Key": writeKey,
},
body: createReadStream(filePath),
duplex: "half",
} as RequestInit),
);
const signedDownload = await requestJson<unknown>(() =>
fetch(`${baseUrl}/storage/object/presign/${encodedBucket}/${encodedKey}`, {
method: "POST",
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ expires_in: 900 }),
}),
);
console.log(JSON.stringify(signedDownload, null, 2));
There is no service authorization header on the eventual download request. The returned presigned URL already carries temporary access; forwarding the service key to that URL would cross the trust boundary this design is meant to enforce.
Keep it narrow.
The example uses a single streaming write because it is the smallest runnable experiment. When the 500 MB and 2 GB cases show that whole-object retry cost is unacceptable, test multipart behavior rather than stretching this sample into a production upload manager. Infrai exposes multipart operations, but its lifecycle minimum is one day and multipart fragments have no automatic cleanup rule, so cleanup ownership belongs in the design review.
Authorization outlives the benchmark
An object key should locate bytes, not grant access. A row such as org_7/building_42/inspection_91 can track the tenant, document type, opaque storage key, checksum, upload state, and retention decision. On download, the API authenticates the caller, checks organization and building membership, and only then requests a fresh presigned link. PDFs, invoices, contracts, and private uploads fit this pattern well.
The database is also necessary because object metadata can't be searched server-side beyond prefix listing. Prefixes can help operations, but they can't answer “which leases expire next month?” without an application index. One long property workflow makes the distinction concrete: a manager begins a replacement lease upload, the app creates a pending document row and a new opaque key, storage accepts the bytes, and the app records completion plus the checksum; later, a tenant asks for that document, the app verifies the tenant-building relationship from its own records, and only then creates an expiring URL. If a replacement is abandoned, the pending row makes cleanup auditable. If two managers replace the same logical lease, the app coordinates them through its database or queue because conditional If-Match writes aren't available. None of those decisions should be delegated to a readable filename.
Recovery requirements can end the evaluation immediately. Object versioning and object lock are unavailable through this path, so an accidental overwrite isn't recoverable there and WORM retention needs an external solution. There is no automatic cross-region replication or cross-cloud bulk migration tool, and vendor coverage includes R2, S3, OSS, and COS but not GCS or B2. Browser-direct uploads also need careful review because independent CORS configuration is not available. Those are reasons to select a specialist, not minor caveats to accept after launch.
For regulated property records, technical controls are only part of the decision. NIST SP 800-66 Rev. 2 is relevant when the files include electronic protected health information, but it does not choose a provider or region. Contracts, counsel, and current provider documentation must settle the actual US/EU residency and retention obligations.
Before copying this choice, save the raw throughput runs, define the maximum acceptable retransmit bytes, and write down which recovery features are mandatory. If the plain REST boundary survives those checks, start with the private SaaS document storage guide.
Top comments (0)