Code Room
System designHardsd-g620
Subject End to end encryptionLevel Senior–Staff~55 minCommon in Security interviewsIndustries Technology

Question

Design the backend for an end-to-end encrypted messaging service with 200M users supporting 1:1 and group chats, multi-device, and offline delivery — where the server itself must never be able to read message content. It must deliver messages with p99 under 200ms when recipients are online, queue for offline devices, and provide forward secrecy so that compromising a device's current key doesn't decrypt past messages. Cover key distribution, the encryption/trust model, group messaging, and multi-device.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts — data model, bottlenecks, consistency, failure modes — and name the trade-offs you are making.

Narrate your design
Loading whiteboard…
Run or narrate your approach, then ask the coach.