Real-time delivery to millions of open connections
A trade fair runs in many halls, and each hall's steward scans visitors' badges at the door. When the organisers' office has a message for one visitor, it checks which hall scanned her badge last and phones that hall's steward. Every message is also pinned on the noticeboard at the entrance, in case the steward missed her. An announcement for one talk goes as one call to each steward with listeners in her hall, and she reads it out to all of them.
Visitors are phones holding open connections, and the halls with their stewards are gateways. The badge scan is the routing-map entry a phone writes when it connects, the office is the chat service, the noticeboard is the message store, and a talk's audience is a room. Interviewers listen for how a message finds the right server and what happens when servers die. The move: keep gateways thin, store every message first, then route it to the gateways that hold its recipients, one copy per gateway and never one per phone.