Design a notification ranking system
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI/ML design interview question asked in Meta's AI/ML design round, last asked Jan 2026. It tests notifications, ranking and engagement.
Design a ranking system for notifications. Candidate notifications for a user come from many sources: new product announcements, friends' activity, advertisers' messages and more. The system decides which candidates are eligible to send, which go first, and which are suppressed, so that people find notifications worth opening without being annoyed into turning them off.
Requirements
- Functional: for each user, take the candidate notifications from every source, filter out the ineligible ones, de-duplicate, rank the rest, and decide which to send now, later, or never.
- Functional: respect per-user settings, quiet hours, and caps on how many notifications a user gets per day.
- Non-functional: billions of candidates a day; decisions within seconds for time-sensitive notifications (a friend's live video); a ranking that is fair across sources and stable when one source floods the system.
Clarifying questions
- What is the product goal: opens, daily active users, long-term retention, or something else?
- Which negative signals exist: dismissals, opt-outs per category, disabling all notifications, uninstalls?
- Are notifications sent in real time, in batches, or both?
- Who sets the caps, and do advertisers pay for delivery?
- Which channels: push, in-app, email?
What a strong answer covers
- The objective: maximize expected value per notification, for example
P(open) * value - cost * P(opt-out or disable), with long-term retention as the north star rather than clicks alone. - Eligibility rules before any model: user settings, quiet hours, category opt-outs, legal and privacy rules, freshness (stale friend activity is dropped).
- De-duplication and aggregation: collapsing "3 friends liked your post" into one, and dropping near-duplicates across sources.
- Fatigue: per-user volume caps learned from how each user reacts, a decaying count of recent notifications as a feature, and suppression after repeated ignores.
- Multi-objective ranking: one model per outcome (open, positive action, dismiss, opt-out), combined with tunable weights, and calibration so scores from different sources can be compared.
- Labels and features: open within a time window as the positive; user, source, content, sender relationship, time of day, and recent notification history as features; care with position and delivery-time bias.
- Serving: a streaming pipeline that scores candidates as they arrive, a scheduler that batches non-urgent ones and picks the send time, and per-user state for caps.
- Evaluation: offline AUC and calibration per objective; A/B tests on opens, opt-outs and retention, run long enough to see fatigue effects.
Follow-ups
- Opens went up but the rate of users disabling notifications also went up. What do you change?
- How do you decide the best time of day to send a non-urgent notification to a given user?
- One source starts sending ten times its usual volume. How do you protect the user experience?
- How do you value an advertiser notification against a friend notification?
Where it's asked
- Meta · AI/ML design · Last asked Jan 2026ML system design
What it tests
notifications · ranking · engagement
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
