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:
Claude
2026-11-24 00:30:04 +05:30
parent ce12a80f58
commit 09f875ddd9
54 changed files with 1516 additions and 0 deletions
@@ -0,0 +1,17 @@
Token bucket: 20 tokens/second, burst 5, fake clock
===================================================
10 sends requested at the same instant (t = 0):
send 1 waits 0 ms
send 2 waits 0 ms
send 3 waits 0 ms
send 4 waits 0 ms
send 5 waits 0 ms
send 6 waits 50 ms
send 7 waits 100 ms
send 8 waits 150 ms
send 9 waits 200 ms
send 10 waits 250 ms
After the queue drains and the clock idles for 10 seconds the bucket refills, but only to the burst size:
next 7 sends wait (ms): [0, 0, 0, 0, 0, 50, 100]