System Design Patterns: From Fundamentals to Real Systems
0% completed
Bidirectional Streaming
1. The Incident
Your team releases a chat application over WebSockets, allowing both sides to send live messages. It works perfectly in the demo and in staging. Production behaves differently.
Production has three gateway servers behind a load balancer. A gateway server holds client connections. Alice connects to server A, while Bob joins the same room through server B. Alice sends "hey," and server A checks its local connection list. It finds only Alice, so Bob receives nothing.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%