A late order event and the check at send time
A sequence between the shop, the order system, the CRM workflow and the email service.
Read the full description
The shop sends a basket event at 10:00 with an event ID, and the workflow plans a reminder for the next day. The customer buys at 09:50 on that day. The order event does not reach the workflow in time. At 10:00 the workflow asks the order system whether an order exists for this basket. The answer is yes, and the reminder is cancelled. The late event arrives at 10:05 and is ordered by its source time. The email service receives no request.
Shop
The shop records the basket and later the purchase. Each event carries the time at the source and an event ID.
Order system
The system of record for a confirmed purchase. Its event can arrive late, and its status can be asked at any time.
CRM workflow
The workflow plans the reminder after the basket event and orders all events by their source time.
Send-time check
Before a message leaves, the workflow asks for the current order status. A missing or stale answer follows a defined rule.
Outgoing
Email service
The service receives no request in this case. When it does, the send key lets a retry return the first result.