Repeated payment events create multiple dispatches
The demonstrated flow creates more than one shipment instruction for one paid order, risking duplicate fulfilment and manual reconciliation.
- Observed finding
- 3 deliveries of the same event create 3 dispatch instructions. The fixed transition creates 1.
- Recommended fix
- Make fulfilment repeatable without duplication. Record event identities durably and enforce a unique business fulfilment operation in the same transactional boundary as the state change.
- Verification and follow-up checks
- Replay the event and a differently identified event for the same operation. Expect one dispatch. In the live platform, also test concurrent consumers and crashes between persistence and dispatch hand-off.
Before the fix
Event deliveries: 3; dispatches: 3.
After the fix
Event deliveries: 3; dispatches: 1.