Design a event-driven Notification System

Quick Overview

Design a event-driven notification system handling millions of requests. Discuss consistency, availability, and performance trade-offs.

Walmart
ML System Design
Machine Learning Engineer
Walmart
Machine Learning Engineer
Onsite
ML System Design
Easy

10


Design a event-driven notification system handling millions of requests. Discuss consistency, availability, and performance trade-offs.

Walmart uses this ML system design question to see how candidates add intelligence to its event-driven notification pipeline for order updates, promotions, and alerts. The interviewer checks that you keep transactional messages reliable while using ML to pick send time and channel for promotional ones.

What the Interviewer Expects
  • Separate must-deliver transactional notifications from optimizable promotional ones
  • Define the ML target, such as open or conversion probability by time and channel
  • Identify features from user history, event context, and past notification response
  • Design an event-driven pipeline with a stream platform and low-latency scoring
  • Discuss frequency caps, fatigue, and opt-out handling
  • Explain offline metrics and online experiments for the model
Key Topics to Cover
Event-driven architecture
Send-time optimization
Kafka
Notification fatigue
Online experimentation
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How do you avoid notification fatigue while still meeting marketing goals?
  • What happens to delivery if the model service is down?
  • How do you measure the incremental value of a notification rather than raw opens?
  • How would you handle a burst of millions of events during a flash sale?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Problem Formulation

The goal is to design an event-driven notification system for Walmart that can efficiently handle millions of requests for sending notifications (e.g., promotions, order updates, alerts). This maps to...

Data & Features

The system will require various data sources:

  • User Data: Profiles including demographics, past interactions, preferences, and purchase history.
  • Event Data: Timestamped logs of user actio...

Submit Your Answer
Markdown supported

Related Questions