Design Facebook Safety Check Activation for Disaster Areas
Last updated: November 29, 2026
Quick Overview
Design the system behind Facebook Safety Check that detects a crisis, identifies users likely to be in the affected area, prompts them to mark themselves safe, and notifies their friends, all within minutes of the event.
Meta
November 29, 20260
0
0 solved
Design the system behind Facebook Safety Check that detects a crisis, identifies users likely to be in the affected area, prompts them to mark themselves safe, and notifies their friends, all within minutes of the event.
Safety Check is a well-known Meta feature that combines geo inference with a massive, bursty notification and fan-out workload. The interviewer checks how you determine who is in the area without precise location for most users, how you handle a sudden spike of writes and reads, and how you avoid false activations.
What the Interviewer Expects
- Detect or confirm crisis events and define the affected area
- Infer which users are likely in the area from coarse location signals
- Send prompts and handle a burst of safe-mark writes
- Fan out status to friends efficiently
- Prevent false activations and over-notification
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
- How do you determine who is affected if most users have location services off?
- What if the affected area is a whole city of 8 million people?
- How do you handle people traveling through the area?
- How would you scale friend notifications when millions mark safe in an hour?
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: an event is created (from crisis feeds plus a spike in local posts about the event, confirmed by an operator or community activation). The affected area is a polygon. Users likely in t...
High-Level Design
Event pipeline: external crisis data plus a stream detector that finds spikes of posts with disaster keywords clustered by location. An event record has a polygon and time. **Affected user resolve...