एक अशी service बनवा जिला प्रत्येक team notification type + recipient देऊन कॉल करते, आणि channel, template, युजर preferences आणि priority ठरवणे service वर सोपवा. मुख्य design हालचाल म्हणजे priority lanes — एक OTP 20 लाख-युजर marketing blast च्या मागे थांबू शकत नाही.
आर्किटेक्चर
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)
