Start building

Orchestration

Idempotent outbox and delivery

One duplicate is suppressed. Actual external effects require idempotency and unknown-outcome reconciliation; no exactly-once guarantee.

  • JSON → JSON
  • Advanced
  • 10 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processIdempotent outbox and delivery6 activities

Scroll sideways to see the whole flow.

Flow diagram of Idempotent outbox and delivery6 activities and 5 transitions: Start, Enqueue business event, Same key, no duplicate, Deliver once to fixture, Inspect queue status, Return result.StartstartEnqueue business eventoutbox.enqueue1Same key, no duplicateoutbox.enqueueDeliver once tofixtureoutbox.dispatchInspect queue statusoutbox.statusReturn resultend
List the 6 activities and 5 transitions

Activities

  1. Start start
  2. Enqueue business event outbox.enqueue
  3. Same key, no duplicate outbox.enqueue
  4. Deliver once to fixture outbox.dispatch
  5. Inspect queue status outbox.status
  6. Return result end

Transitions

  • Start → Enqueue business event (on success)
  • Enqueue business event → Same key, no duplicate (on success)
  • Same key, no duplicate → Deliver once to fixture (on success)
  • Deliver once to fixture → Inspect queue status (on success)
  • Inspect queue status → Return result (on success)
SubprocessDelivery fixture3 activities

Scroll sideways to see the whole flow.

Flow diagram of Delivery fixture3 activities and 2 transitions: Start, Simulated delivery, Return result.StartstartSimulated deliveryassignReturn resultend
List the 3 activities and 2 transitions

Activities

  1. Start start
  2. Simulated delivery assign
  3. Return result end

Transitions

  • Start → Simulated delivery (on success)
  • Simulated delivery → Return result (on success)

Walkthrough

  1. Enqueue business eventOne duplicate is suppressed. Actual external effects require idempotency and unknown-outcome reconciliation; no exactly-once guarantee.

What you will practise

  • Run the example in simulation and inspect recorded activity results.
  • Distinguish simulation assertions from live service qualification.

Sample cases

1 case with 1 assertion, run with python -m server.integration examples --all in simulation.

Safe simulation

Passed

One duplicate is suppressed. Actual external effects require idempotency and unknown-outcome reconciliation; no exactly-once guarantee.

Expected result The process completes in simulation without connecting to external systems.

1/1 assertions

  • Simulation completed

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
None beyond the base runtime.
Simulation fixtures
None: no activity in this template uses a connector.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
9c4d24e25140c992099d2ab74ca33a670135a8db17976f2e971274b9d066bdf4
Closure SHA-256
3858189902577c2f55e30a6f09e6f5a96564a580302d59db990376d1e465e83c
Runtime
1.27.0
Results
1/1 cases, 1/1 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/v21_safe_outbox.json
  • server/integration/templates/v21_outbox_delivery.json
  • server/integration/templates/v21_safe_outbox.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example v21_safe_outbox
PYTHONPATH=. python scripts/export_public_gallery.py --check