Jenga huduma moja ambayo kila timu huiita kwa notification type + recipient, na iruhusu huduma kubaini channel, template, mapendeleo ya mtumiaji, na priority. Hatua muhimu ya usanifu ni priority lanes — OTP haiwezi kusubiri nyuma ya marketing blast ya watumiaji milioni 2.
Usanifu
Services ─▶ Notify API ─▶ [validate + enrich] ─▶ Kafka topics
├─ otp/txn (high lane)
└─ marketing (bulk lane)
│
┌──── Dispatcher (per lane) ────┐
│ prefs check ─▶ template render │
└────┬──────┬──────┬────────────┘
Push Email SMS In-App
(provider adapters + rate limit)
