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,14 @@
|
||||
HTTP in, Kafka in the middle, providers at the end
|
||||
==================================================
|
||||
|
||||
POST /api/notifications
|
||||
{"requestId":"<requestId>","userId":"<userId>","templateId":"welcome","params":{"name":"Asha"}}
|
||||
HTTP 202
|
||||
{"requestId":"<requestId>"}
|
||||
|
||||
what happened afterwards
|
||||
EMAIL FANNED_OUT notification.requests publishing to notify.email
|
||||
EMAIL SENT notify.email attempt 1
|
||||
SMS SKIPPED notification.requests user has not opted in
|
||||
PUSH FANNED_OUT notification.requests publishing to notify.push
|
||||
PUSH SENT notify.push attempt 1
|
||||
Reference in New Issue
Block a user