Step 1: Requirements
Requirements
Questions to ask the interviewer
- What channels — email, SMS, push notification, in-app?
- User preferences (opt-in/opt-out per channel)?
- Priority levels (urgent vs marketing)?
- Templates or free-form?
- Retry on failure? Rate limiting?
- 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.