Diagram explorer

Which export writes must survive together?

Separate the acceptance transaction from the later rendering work. Trace the credit, job and dispatch record through retries, claims and publication.

Relationship map
01 Authorize the snapshot02 Claim request identity03 Debit one credit04 Commit four writes05 Recover the receipt06 Relay the outbox07 Acquire a worker claim08 Write an attempt object09 Publish the current pointer10 Resolve provider effects11 Test an ownership split
01 / 11Exports owns admission

Authorize the snapshot

The HTTP process derives the tenant from the authenticated request and checks access to the immutable snapshot. Accounts supplies identity while Exports owns the write contract.

02 / 11Exports owns admission

Claim request identity

A unique tenant, operation and request key identifies the intent. Record a fingerprint of the normalized input so an accepted duplicate can recover its original receipt.

03 / 11Exports owns admission

Debit one credit

Only the winner attempts the conditional debit. The balance must still be positive at the write. With no qualifying row, roll back the transaction.

04 / 11Exports owns admission

Commit four writes

The request receipt, quota debit, durable job and outbox record commit in one short transaction. Only then may the HTTP process return acceptance to the caller.

05 / 11Exports owns admission

Recover the receipt

A matching authorized retry reads the same accepted job and status location. A changed snapshot under the same key conflicts with that recorded intention.

06 / 11Separate execution

Relay the outbox

The relay sends a stable job ID and input version to the external broker. A crash after sending can cause a second publication of the same event.

07 / 11Separate execution

Acquire a worker claim

The worker loads the authoritative job and takes a time-limited lease with a new generation. Rendering uses its own CPU allocation outside the database transaction.

08 / 11Separate execution

Write an attempt object

Store the CSV under the tenant, job and generation as an immutable object. A second attempt can finish computation without changing the object of its predecessor.

09 / 11Separate execution

Publish the current pointer

A later database transaction publishes the artifact pointer only if the claim generation still matches. A stale worker leaves an unreferenced object for cleanup.

10 / 11Boundaries beyond the claim

Resolve provider effects

A paid provider may have acted before a timeout. A stable provider operation ID or an explicit reconciliation process covers that external effect.

11 / 11Boundaries beyond the claim

Test an ownership split

Moving allowance to another service introduces a new partial state. Either keep the debit with admission or define who reserves, confirms, cancels and reconciles it.