एउटा यस्तो service बनाउनुहोस् जसलाई प्रत्येक team ले notification type + recipient दिएर call गर्छ, र service लाई channel, template, प्रयोगकर्ता preference, र priority पत्ता लगाउन दिनुहोस्। मुख्य डिजाइन कदम भनेको priority lane हो — एउटा 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)
