Dispatch Deduplication Guard
Component Detail
Service Layer
low complexity
backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Prevents duplicate message sends caused by upstream retry logic by generating idempotency keys per outbound event and checking the dispatch log before each send attempt.
dispatch-deduplication-guard
Responsibilities
- Generate stable idempotency keys derived from event type, recipient, and timestamp window
- Check the dispatch log for recent sends matching the same key before allowing dispatch
- Return the cached dispatch result for duplicate requests that fall within the deduplication window
Interfaces
isDuplicate(idempotencyKey)
registerDispatch(idempotencyKey, dispatchId)
buildIdempotencyKey(event)