Examples
How a chat app delivers a message in real time
A WebSocket upgrade drawn message by message, a message forwarded the moment it arrives, then two chat servers joined by a message broker so friends on different servers still chat live.
This video was made with the System design skill.
- 1:11
- System design
- Narrated by Orus
- English
Made from a prompt
How does a chat app deliver a message in real time? Show the WebSocket connection step by step.
Video transcript
One message must reach your friend without either of you refreshing.
Your app contacts the server, requesting a WebSocket upgrade over HTTP one point one. Success returns status one hundred one.
WebSocket stays open, so either side can send immediately. Your friend's app establishes its own WebSocket connection.
You send a message, and the server forwards it immediately. Your friend's acknowledgement confirms delivery, not reading.
Your app and your friend's app share one server. In this example, a thousand messages per second makes it ninety-five percent busy.
Your friend reconnects to another server; a message broker now routes messages between their separate connections.
Why add a broker? It crosses server boundaries, but costs another network hop and operational complexity.
Apps keep WebSockets open, servers manage connections, and the broker routes live messages. Chat and multiplayer updates use this pattern.
More examples
-
Where the money goes when you buy a $5 coffee A $5 latte split into what it pays for, one hand-drawn picture at a time: ingredients, staff, rent and running costs, the 50¢ left over, and why a quiet day makes every cup carry more rent. 2:14 · English -
Why your stomach gets gassy Where gas comes from, drawn and painted in as it is said: swallowed air, gut bacteria and foods like beans and milk, what normal looks like, what helps, and when to see a doctor. 2:17 · English -
A train’s average speed, then a triangle’s area Two problems on a teacher’s board: the options in a row, every line of working written as it is said, each answer checked before it is drawn. 2:07 · English
Your topic, drawn in about a minute.
Your first 2 videos are free, up to 1 minute each, watermarked. No card required. Full product, every voice and style included.