Design Notification Retraction When the Underlying Post or Like Disappears
Last updated: November 29, 2026
Quick Overview
Design how Meta removes or updates notifications that are already delivered or queued when the triggering action is undone, for example a like removed, a comment deleted, a post taken down by integrity, or a user blocked.
Meta
November 29, 20260
0
0 solved
Design how Meta removes or updates notifications that are already delivered or queued when the triggering action is undone, for example a like removed, a comment deleted, a post taken down by integrity, or a user blocked.
Integrity and privacy are central to Meta's systems, and stale notifications can leak content that was removed. This question tests whether you can design cleanup across a tray store, pending queues, aggregated items, and devices that already displayed a push.
What the Interviewer Expects
- Track lineage from source actions to notifications
- Handle pending, delivered in-app, and delivered push separately
- Update aggregated notifications rather than deleting them
- Prioritize integrity takedowns over cosmetic undo
- Accept and bound the cases that cannot be fully reversed
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- Can you recall a push that is already on the lock screen?
- How do you retract within an aggregated notification of 300 actors?
- What is the SLA for removing a notification about content taken down for safety reasons?
- How do you test this end to end?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Triggers: unlike or unreact, comment or post delete by author, integrity takedown, account deactivation, block between actor and recipient, privacy change that removes the recipient's access.
**G...
High-Level Design
- Lineage index: when a notification is created, record
source_key -> [(recipient, notif_key)], where source_key is the object or action id (like id, comment id, post id). Stored in a sharded KV...