Asynchronous exports
Asynchronous exports move large downloads out of the HTTP request lifecycle. The request returns an export identifier, an export worker writes the file to object storage, and the client downloads the completed file later.
Exports are separate from Confy jobs. confyJobId is the identifier of the
Confy job used for progress and logs; the sxs export is identified by its
exportId.
See Execution modes and resource profiles to choose between synchronous and asynchronous delivery, execution modes and resource profiles.
When to use exports
Use an export for very large or long-running downloads. Medium requests can
continue to use synchronous responses. Synchronous requests above
SYNC_MAX_OBSERVATIONS are rejected with 413; clients can opt in to an export
with Prefer: respond-async.
API
Create an export
Supported formats:
The response is 202 Accepted:
A data request can create the same export with Prefer: respond-async:
List exports
The list is limited to the last 30 days by default and supports status,
format, requester, exportId and confyJobId filters.
Get status
Statuses:
pending— queued;processing— being written;completed— file available;failed— seeerror;cancelled— cancelled by the requester;expired— the file is no longer available.
Download
MinIO and Azure providers return a short-lived signed URL. Providers without a signed-URL implementation stream the file through sxs.
Cancel
Cancellation is possible while the export is pending or processing.
Admission and limits
The queue is durable in MongoDB. The following settings control admission and execution:
Files are deleted after EXPORT_RETENTION_DAYS; the export record remains
available for history until EXPORT_HISTORY_DAYS.
Concurrency limits are enforced with MongoDB-backed counters, so they are shared by all sxs replicas connected to the same database.
A full queue returns:
Confy
Every accepted export creates a Confy job after admission. The job payload
includes resourceId, resourceType, agencyID, version, memberId and
spaceId; the corresponding Confy job is stored as confyJobId.
The job receives:
- an
Export startedevent; - progress events using the stable export
progressMessageId; - a final summary such as
Export completed: N observations, B bytes.
Rejected requests do not create a Confy job.
Confy provides an Exports tab under sxs with:
- summary cards and live status refresh;
- date, status, format and requester filters;
- a paginated export table;
- a detail dialog with lifecycle events and
confyJobId; - download and cancel actions.
The tool is backed by the dedicated RPC service:
The equivalent sxsStats.sxsExports, sxsStats.loadSXSExport,
sxsStats.sxsExportHistory and sxsStats.sxsExportStats methods remain for
backward compatibility. Export records are retained after the object file
expires so history remains available.
