Design Live Location Sharing in WhatsApp Chats

Last updated: November 29, 2026

Quick Overview

Design WhatsApp's live location feature, where a user shares their real-time location in a one-to-one or group chat for a chosen duration, with updates delivered end-to-end encrypted and sharing stopped reliably when time runs out.

Meta
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design WhatsApp's live location feature, where a user shares their real-time location in a one-to-one or group chat for a chosen duration, with updates delivered end-to-end encrypted and sharing stopped reliably when time runs out.

WhatsApp's design questions always carry the constraint that the server must not see content, and live location is a streaming feature built on encrypted messaging. The interviewer checks update frequency and battery trade-offs, delivery to group members, expiry handling, and what the server can and cannot know.

What the Interviewer Expects
  • Treat each location update as an end-to-end encrypted message
  • Choose update frequency based on movement, battery and viewers
  • Deliver efficiently to group participants and offline members
  • Stop sharing reliably on expiry or manual stop, even if the sender's phone dies
  • Show stale-location indicators to viewers
Key Topics to Cover
end-to-end encryption
location streaming
adaptive update rate
expiry
group fan-out
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
  • How do you avoid draining battery when nobody is looking at the map?
  • What if the sender's phone goes offline in the middle of a share?
  • How do you handle a group with 200 members, most offline?
  • Can the server enforce expiry if it cannot read the messages?
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: user picks a duration (15 minutes, 1 hour, 8 hours) and shares in a chat. Recipients see a live pin updating on a map and the last-updated time. The sender can stop anytime; sharing en...

High-Level Design

Starting a share sends an encrypted share-start message containing duration and first location. The client then sends location update messages through the normal message pipeline, encrypted wi...


Submit Your Answer
Markdown supported