Add notification-service module: Kafka fan-out by user preference, per-channel templates, rate-limited workers, non-blocking retries with DLT, idempotent delivery (10 tests on embedded Kafka, 9 transcripts)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7rAEgiNi4Fo94nVoB
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
Retries and the dead-letter topic (SMS channel, 4 attempts, 250 ms doubling)
|
||||
============================================================================
|
||||
|
||||
1. provider times out twice, then works
|
||||
SMS FANNED_OUT notification.requests publishing to notify.sms
|
||||
SMS ATTEMPT_FAILED notify.sms attempt 1: TransientProviderException
|
||||
SMS ATTEMPT_FAILED notify.sms-retry-250 attempt 2: TransientProviderException
|
||||
SMS SENT notify.sms-retry-500 attempt 3
|
||||
|
||||
2. provider says the number is invalid (permanent): no retries
|
||||
SMS FANNED_OUT notification.requests publishing to notify.sms
|
||||
SMS ATTEMPT_FAILED notify.sms attempt 1: PermanentProviderException
|
||||
SMS DEAD_LETTERED notify.sms-dlt needs a human or a replay tool
|
||||
|
||||
3. provider is down for the whole window: all attempts used
|
||||
SMS FANNED_OUT notification.requests publishing to notify.sms
|
||||
SMS ATTEMPT_FAILED notify.sms attempt 1: TransientProviderException
|
||||
SMS ATTEMPT_FAILED notify.sms-retry-250 attempt 2: TransientProviderException
|
||||
SMS ATTEMPT_FAILED notify.sms-retry-500 attempt 3: TransientProviderException
|
||||
SMS ATTEMPT_FAILED notify.sms-retry-1000 attempt 4: TransientProviderException
|
||||
SMS DEAD_LETTERED notify.sms-dlt needs a human or a replay tool
|
||||
Reference in New Issue
Block a user