7
Back to Problem Dungeon

Notification System

medium

Step 1: Requirements

Requirements

Questions to ask the interviewer

  1. What channels — email, SMS, push notification, in-app?
  2. User preferences (opt-in/opt-out per channel)?
  3. Priority levels (urgent vs marketing)?
  4. Templates or free-form?
  5. Retry on failure? Rate limiting?
  6. Scheduled/delayed notifications?

Functional requirements

  • Send notifications via multiple channels: email, SMS, push, in-app.
  • Users set channel preferences per notification type.
  • Support templates with variable substitution.
  • Priority levels: urgent (immediate), normal (batched), low (digest).
  • Retry failed deliveries with backoff.
  • Log all notification attempts for audit.

Non-functional requirements

  • Channel-specific logic isolated (adding WhatsApp shouldn't change email code).
  • High throughput (1000s of notifications per minute).
  • At-least-once delivery for urgent notifications.

Assumptions

  • Third-party providers for email (SendGrid), SMS (Twilio), push (Firebase).
  • User preference store exists.

1 / 7 — Requirements