Design Deduplicated Daily Active People Counting Across Meta Apps
Last updated: November 29, 2026
Quick Overview
Design the system that computes daily active people across Facebook, Instagram, Messenger, and WhatsApp, counting each person once even if they use several apps, with daily, weekly, and monthly rollups.
Meta
November 29, 20260
0
0 solved
Design the system that computes daily active people across Facebook, Instagram, Messenger, and WhatsApp, counting each person once even if they use several apps, with daily, weekly, and monthly rollups.
Meta reports family-wide daily active people, so the dedupe-across-apps problem is native to its analytics stack. Interviewers want a clean definition, identity resolution, and a choice between exact and sketch-based counting for rollups.
What the Interviewer Expects
- Define 'active' and the day boundary
- Resolve identities across apps
- Compute exact daily counts with a distinct
- Use mergeable sketches for weekly and monthly windows and slices
- Validate against per-app counts
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
- Why can you not just add weekly counts of each day?
- How much error is acceptable from HyperLogLog here?
- How do you count a person who only uses WhatsApp with no linked account?
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
Functional: DAP, WAP, MAP per day, sliceable by country and app combination; dashboards available by 9 am UTC.
Definitions: 'active' means a qualifying event (app open in foreground, not back...
High-Level Design
- Each app's event logs land hourly in the warehouse.
- An activity extract job filters qualifying events and emits
(app_user_id, app, country, date)distinct rows. - An identity map tabl...