Design Ranking for Push Notifications in the Google App
Last updated: November 29, 2026
Quick Overview
Design the ML system that decides which candidate push notifications (news, weather, sports scores, reminders) to send each user, and when, without causing fatigue or disables.
0
0
0 solved
Design the ML system that decides which candidate push notifications (news, weather, sports scores, reminders) to send each user, and when, without causing fatigue or disables.
Notifications are a scarce channel: each send can win engagement or push a user to disable all notifications. Interviewers look for a design that models long-term cost of sending, uses a per-user budget, and handles timeliness of content.
What the Interviewer Expects
- Define success with both engagement and long-term guardrails (disables, uninstalls)
- Collect candidates from multiple producers into a central ranker
- Predict open probability and negative outcomes, combine into a value score
- Apply per-user budgets, quiet hours, and send-time choice
- Evaluate long-term effects with holdouts
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you quantify the cost of a notification disable?
- How do you handle breaking news that must go out immediately?
- How would you avoid one producer team flooding the channel?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Producers submit candidates with an expiry (a score update is stale after an hour). For each user, choose at most a few sends per day and when. Optimize long-term active usage of the app, not just ope...
High-Level Design
Producers write candidates to a queue keyed by user. A ranking service periodically, or on high-priority triggers, gathers a user's pending candidates and features, scores each, applies budget and pac...