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.

Feature: Email/SMS Notifications

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)

Related Data Entities (1)

Data entities managed by this component