สร้างบริการเดียวที่ทุกทีมเรียกใช้ด้วย notification type + recipient แล้วให้บริการนั้นเป็นผู้ตัดสิน channel, template, การตั้งค่าของผู้ใช้ และ priority การออกแบบที่สำคัญคือ priority lanes — OTP ห้ามรอต่อคิวอยู่หลังการยิง marketing ให้ผู้ใช้ 2 ล้านคน
สถาปัตยกรรม
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)
