Code RoomNotification batching system
MediumPrep Room Coding #3408

Notification batching system

System designDistributed systemsMid–Senior~40 min

Design a notification batching / digest system that prevents notification spam. Users generate events that notify others (comment, mention, like, assignment); a popular thread can produce hundreds of events for one user in minutes. Instead of 200 separate pushes/emails, the system should intelligently batch ('12 new comments on your post', 'Alice and 5 others mentioned you') with per-user, per-channel preferences (instant vs hourly vs daily) and respect quiet hours and timezones. How do you aggregate, batch, and deliver notifications without spamming users or dropping anything important?

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify4:30 left
Estimate4:30 planned
Design13:30 planned
Deep dive10:30 planned
Failure7:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.