Design the Unread Notification Badge Count Synced Across Devices

Last updated: November 29, 2026

Quick Overview

Design the service behind the red unread badge on Facebook's notification bell so the number is correct on phone, tablet, and web, and clears everywhere when the user reads on one device.

Meta
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
Technical Screen
System Design
Easy

0

0

0 solved


Design the service behind the red unread badge on Facebook's notification bell so the number is correct on phone, tablet, and web, and clears everywhere when the user reads on one device.

A compact design question used in Meta phone screens and early onsite rounds. The interviewer looks for a simple, correct model of counts and read watermarks, and for awareness of what happens across multiple devices.

What the Interviewer Expects
  • Model unread as a watermark rather than per-item flags where possible
  • Explain how the count is computed or maintained
  • Push count changes to other online devices
  • Update the app icon badge via silent push
  • Keep it cheap at billions of reads per day
Key Topics to Cover
Counters
Watermarks
Silent push
Cache
Multi-device sync
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • What if notifications can be individually marked read?
  • How do you handle a device that was offline for a week?
  • Would you ever cap the displayed number?
Sharpen Your Skills on Codemia

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

Practice System Design Problems
Sample Answer
Requirements

Functional: show the number of notifications the user has not seen; when they open the tray on any device, reset to zero everywhere; new notifications increment it.

Non-functional: very read-...

High-Level Design
  • Notification store keeps items sorted by time per user.
  • Badge service stores per user: last_seen_ts (watermark) and a cached unread_count.
  • On open of the tray, client calls `markSeen...

Submit Your Answer
Markdown supported