ایک ایسی service بنائیں جسے ہر team ایک notification type + recipient کے ساتھ کال کرے، اور service کو channel، template، صارف کی ترجیحات اور priority حل کرنے دیں۔ کلیدی ڈیزائن اقدام priority lanes ہے — ایک OTP 20 لاکھ صارفین کے marketing دھماکے کے پیچھے انتظار نہیں کر سکتا۔
فن تعمیر
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)
