Back to Case Studies

Design Whatsapp

Overview–

WhatsApp is a messaging service that allows users to send and receive encrypted messages and calls from their phones and computers. WhatsApp was famously originally built on Erlang (no longer!) and renowned for handling high scale with limited engineering and infrastructure outlay.


Requirements–

  1. Start group chat

  2. send/receive messages

  3. send/receive media

  4. Access messages after I've been offline.


Non-Functional Requirements—

  1. Delivered with low latency < 500ms

  2. Guarantee delivery messages

  3. Billions of users, high throughput

  4. Messages not stored unnecessarily.

  5. Fault-tolerant


Core Entities—

  • Messages

  • Users

  • Chat

  • Client


API-

Commands Sent Commands Received

  • createChat - newMessage

  • sendMessage - chatUpdate

  • createAttachment

  • modifyParticipants


High-Level Design–



© 2026 Mehraj Hosen. All rights reserved.