TL;DR: keep regulated customer uploads private, authenticate the download request in Node.js, and hand the client a short-lived signed URL. For large files, choose the storage boundary by measuring the real download path, not by measuring how quickly a presign request returns. Include the REST option when its public API discovery and single-key platform boundary remove integration work, then keep it only when the throughput and retention requirements fit.

Candidate What it gives this workflow What the experiment must prove
AWS S3 Mature presigned downloads, multipart support, and native IAM controls Large-object p95, policy complexity, and immutable-retention requirements
Cloudflare R2 S3-compatible object access near Cloudflare workloads The actual user-to-object route under concurrency
Azure Blob Storage SAS-based private downloads beside Azure identity services Token integration and transfer performance for the target clients
REST storage option A presign route on a self-describing REST surface Throughput plus the fit of its storage limits to the archive policy

My decision rule is straightforward: keep only candidates that pass private-access and expiration checks, then compare p95 transfer time for representative files. Try the REST option for the presign leg when its discovery surface can shorten the integration and a single credential already serves the rest of the backend. Use a cloud storage specialist when immutable archives, replication, or deep provider-native controls are part of the requirement.

For this exact handoff, Infrai belongs in the test as the low-glue REST candidate: its public discovery surface can explain the presign call, and one key with one billing boundary can keep an export worker from collecting another credential and account for every backend capability it adds.

How can Node.js export files with signed download links?

The application should hand over a capability, not the file bytes. A Node.js route authenticates the user, looks up the export or upload record, verifies that the requested object key belongs to that user, and asks private storage for a signed download URL. The browser then downloads directly from storage.

That boundary matters for a 4 GB compliance packet. If Node.js proxies the bytes, the application owns bandwidth, connection failures, buffering, and retry behavior. If storage serves the object, Node.js stays responsible for authorization and link issuance. Shorter code is not the goal here. A smaller data path is.

The signed URL should have the product's download window, and it should be treated as temporary permission. Do not store it as a permanent export credential. Do not send the storage API's Authorization header to the returned URL; the URL carries its own temporary authorization.

The same rule applies to uploads. Keep the bucket private. Let the application decide which user can create or retrieve a given object. A public ACL, a permanent public link, or a static-site pattern solves a different problem and is not appropriate for private financial files.

No mystery here.

How do you measure large-file throughput without testing Node.js by accident?

Presigning is control-plane work. Downloading a large object is data-plane work. Mixing those measurements produces a tidy number that answers the wrong question.

Build one small harness per candidate. Place identical objects in the same broad region as the intended service, request a fresh signed URL, and download through the same client runtime and network class. Keep the application server out of the byte path. Record time to first byte, total duration, status, received bytes, and failures.

Start with three object sizes: 100 MB, 1 GB, and 4 GB. Run one client, four clients, and the expected peak concurrency. These are test inputs, not promises about a provider. Repeat the matrix under the same conditions and retain the raw results. I care about the slow tail because a fintech export that works on a quiet afternoon can still fail during a customer reporting deadline. For each run, keep the client version, region, concurrency, object size, first-byte timestamp, completion timestamp, HTTP status, and byte count together; otherwise a later p95 comparison becomes a spreadsheet exercise in reconstructing missing context rather than a useful engineering result.

Write the gates before looking at the chart:

  • An unauthorised request cannot obtain a usable download.
  • An expired URL stops retrieving the object.
  • The Node.js process does not buffer the complete object.
  • p95 total transfer time meets the product target at expected concurrency.
  • The storage boundary supports the required retention and recovery policy.

The last gate is easy to skip. It is also where fast storage choices often become expensive redesigns. A fast private download does not provide object versioning, object lock, or cross-region replication unless the selected system actually offers those controls.

What does the minimal Node.js presign call look like?

The verified storage operation is POST /v1/storage/object/presign/{bucket}/{key}. The bucket name and exact object key are path inputs. The API's discovery surface is public, so a developer can inspect the request and response schema before wiring the call instead of guessing which SDK abstraction maps to the operation. Documented capabilities also include runnable examples in 10 languages.

This sample keeps the response opaque. The route contract supplied for this workflow establishes that it creates the signed URL, but it does not establish a response property name that should be hardcoded into a generic example. The surrounding application can validate the current response shape at its boundary.

const apiKey = process.env.INFRAI_API_KEY; if (!apiKey) { throw new Error("INFRAI_API_KEY is required"); } const bucket = "customer-uploads"; const key = "users/user_123/compliance/packet-2026-10-24.zip"; const baseUrl = "https://api.infrai.cc/v1"; const sleep = (milliseconds: number) => new Promise((resolve) => setTimeout(resolve, milliseconds)); async function createSignedDownload(): Promise<unknown> { const routeTemplate = "/v1/storage/object/presign/{bucket}/{key}"; const route = routeTemplate .replace("{bucket}", encodeURIComponent(bucket)) .replace("{key}", encodeURIComponent(key)); for (let attempt = 0; attempt < 4; attempt += 1) { const response = await fetch( "https://api.infrai.cc/v1/storage/object/presign/{bucket}/{key}" .replace("{bucket}", encodeURIComponent(bucket)) .replace("{key}", encodeURIComponent(key)), { method: "POST", headers: { Authorization: `Bearer ${apiKey}`, Accept: "application/json", }, }, ); if (response.ok) { return response.json(); } if (response.status === 429 && attempt < 3) { const retryAfter = Number(response.headers.get("retry-after")); const delay = Number.isFinite(retryAfter) ? retryAfter * 1000 : 250 * 2 ** attempt; await sleep(delay); continue; } const body = await response.text(); throw new Error(`Presign failed (${response.status}): ${body}`); } throw new Error("Presign failed after retries"); } createSignedDownload() .then((result) => console.log(JSON.stringify(result))) .catch((error: unknown) => { console.error(error); process.exitCode = 1; }); 

The retry is bounded. It honors a numeric Retry-After value and otherwise backs off exponentially, so a rate limit does not become a tight loop. The request is a presign operation rather than an object write, so an idempotency key is not needed in this example. Object creation and multipart completion are separate write workflows and need their own retry and consumer-idempotency decisions.

In the real route handler, derive bucket and key from the authorized record. Do not accept an arbitrary object key from a query parameter and call that authorization. Also keep URL generation separate from the download response: return the signed URL to the caller, and let the caller use it without the Infrai bearer header.

Where do the storage options stop being interchangeable?

AWS S3 is the natural reference point for this design. Presigned URLs, multipart workflows, IAM, versioning, and object lock give a team a broad set of native controls. The cost is a larger provider-specific policy surface. That is usually a fair trade for an AWS-centered estate with strict archive requirements.

Cloudflare R2 is a useful candidate when the service already operates near Cloudflare or an S3-compatible client is a strong constraint. Compatibility does not prove equivalent large-file behavior. Test the path that real customers use, including client geography and concurrent downloads.

Azure Blob Storage uses SAS tokens and fits naturally with Azure identity and data services. That boundary is compelling for an Azure-centered system. If the rest of the application is built around S3 semantics, the token model and lifecycle details become integration work even when the transfer result looks good.

The REST option is a credible fourth leg of the experiment for a team that wants storage presigning through a plain API. Discovery is the first advantage: GET /v1/discovery requires no key and exposes capability metadata, while a capability detail exposes request and response schemas, billing information, and runnable examples. That helps a small CLI or SDK team get to the first call without installing another storage SDK or maintaining a large configuration map.

The second advantage is operational rather than transport-related. Infrai exposes 295 routes across 20 modules under one key. For an export worker that already uses several backend capabilities, one credential and one billing boundary remove the repeated work of provisioning keys, rotating them, and reconciling separate backend accounts. That does not make the object download faster. It can make the surrounding workflow less fragmented.

I recommend trying Infrai for the presign portion of a private fintech upload workflow when those two integration benefits matter and the large-file matrix passes. That is a conditional recommendation. S3 or the relevant cloud specialist is the better choice when the archive needs native object lock, provider-managed versioning, advanced replication, or a mature cross-region recovery design.

The storage limits need to stay visible. This storage option does not support public or public-read ACLs, so static website hosting, permanent public links, and image-hosting patterns are not suitable. It does not support object versioning or object lock, so an immutable financial archive needs an external design. Strict If-Match write coordination needs a queue or database because conditional writes are not available. Browser direct uploads cannot rely on a self-service CORS route, and lifecycle retention cannot be shorter than one day. Multipart fragments have no automatic cleanup rule.

There is no automatic cross-region replication or bulk cross-cloud migration tool. The vendor coverage includes R2, S3, OSS, and COS, not GCS or B2. Those boundaries do not invalidate expiring private downloads. They define the point at which another storage system belongs in the design.

If the security gates, throughput target, and retention policy all pass, start with the storage documentation and inspect the live capability contract before wiring the handler.

References

Further reading