ਇੱਕ ਅਜਿਹੀ service ਬਣਾਓ ਜਿਸਨੂੰ ਹਰ team ਇੱਕ notification type + recipient ਨਾਲ call ਕਰੇ, ਅਤੇ service ਨੂੰ channel, template, user preferences, ਅਤੇ priority resolve ਕਰਨ ਦਿਓ। ਮੁੱਖ design move ਹੈ priority lanes — ਇੱਕ OTP 20 ਲੱਖ-user ਵਾਲੇ 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)
