Lesson 16 of 17
38. Design a Chat App (WhatsApp)

Sources

3 min read+10 XP

Source notes

  • WhatsApp group size: raised to 512 and then to 1,024 participants in 2022, as reported at the time. Checked 2026-10-08.
  • End-to-end encryption with the Signal Protocol, and sender keys for groups: WhatsApp Encryption Overview (security whitepaper). Checked 2026-10-08.
  • Gateway sizing and reconnect behaviour: see Chapter 21.
  • All user, message and connection numbers are interview assumptions agreed in Step 1, not figures for any real app. Arithmetic computed 2026-10-08.
  • Routing, client-ID de-duplication, per-chat sequence numbers, multi-device ticks, cursor sync and group cost: tested 2026-10-08 (code/ch38_chat.py, all checks pass).