top of page

What If a Record Saves but Its Notification Never Leaves?

Oct 23
3 min read
Connect the record and event: Commit the change and intent; Dispatch committed events; Reconcile delivery outcomes.

A service saves a task assignment and then sends an event to another system. The process stops between those operations. The task is assigned, but the receiving system never learns about it. Reversing the order creates a different risk: an event could describe a change that never committed.


This is the dual-write problem. Two independent successful operations are required to produce one consistent business outcome. An outbox is one design option for preserving the intent to notify alongside the record change, while treating delivery as a separate recoverable process.


Describe the consistency requirement


Identify the record change, the event it should produce and the downstream action. Decide what delay is acceptable and how an undelivered event is detected. Avoid saying “real time” when the workflow actually tolerates a bounded delay.


The AWS transactional-outbox guidance describes writing a business change and an outbox entry in the same database transaction, then dispatching committed events separately. It also highlights duplicate delivery and ordering considerations.


The pattern does not make every downstream effect part of the original database transaction. Its value is preserving the notification intent with the committed change so a later process can act on it.


Define the event record


Specify an event identifier, the relevant business identifier, event type, version and the information the consumer needs. Decide whether the event describes a historical fact or asks the consumer to fetch current state.


Keep that distinction explicit. A consumer fetching current state later may see a newer value than the one that triggered the event. That can be appropriate for synchronization but unsuitable for a historical record of the original change.


Limit sensitive content to what the workflow requires. An outbox often persists longer than a transient request, so its data and retention deserve deliberate review.


Illustrative assignment interruption


A fictional service commits a task's reviewer assignment together with an event stating that the assignment changed. The dispatcher is stopped before sending the event. The test confirms that the assignment and pending event both remain stored.


After restart, the dispatcher sends the committed event. A second test stops the dispatcher after sending but before recording completion. On restart, the same event may be sent again, so the consumer must handle that duplicate safely.


A third test rolls back the original database transaction. Neither the assignment nor its event should become visible as a committed change. These interruption points test different guarantees and should have separate results.


Review duplicate handling at the consumer


Use a stable event identifier or another documented business key to recognize repeated delivery. The idempotency guide explains why receiving the same message twice should not automatically produce two business effects.


Do not mark an event handled before the required consumer effect is safely recorded under the consumer's own consistency design. Otherwise a crash can turn duplicate prevention into lost work.


Specify the scope of deduplication and how long its evidence remains available. A retention decision should reflect supported replay behavior rather than an arbitrary cleanup schedule.


Monitor pending work and ordering


Track events that remain pending beyond the expected window. A growing outbox can indicate dispatch failure even while the business database continues accepting changes. The operational response needs an owner and a way to identify affected records.


If order matters, define the relevant ordering scope. Global ordering may be unnecessary when only successive changes to one task must be processed consistently. Test the actual dispatcher and consumer behavior instead of assuming a timestamp alone enforces order.


Keep retry and quarantine policies explicit for events the consumer cannot process. Repeating an invalid event indefinitely can block useful work or conceal a contract problem.


Accept the failure scenarios


Keep evidence for rollback, interruption before dispatch, interruption after send and consumer rejection. Compare the business state, outbox state and downstream effect for each case.


The acceptance claim should describe those observed guarantees. An outbox is a reliability mechanism with operational responsibilities, not a promise of instantaneous or exactly-once completion across every system.


FutureOS is in prelaunch. Use this guide to prepare a concrete project discussion, and read the published introduction for the current project context.



Prepared with AI assistance for the FutureOS editorial series. Primary sources checked on October 23, 2026. Examples are illustrative; this article does not announce an available FutureOS feature or an independently reviewed assessment.

Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.
bottom of page