Pattern 18 / COMMS
Bidirectional Streaming (WebSockets / gRPC Streaming)
Use this when supporting continuous two-way real-time interaction.
- Pressure
- Supporting continuous two-way real-time interaction
- Mechanism
- Keep a persistent connection where client and server can send frames whenever state changes
- Toll
- Millions of open connections need specialized routing, backpressure, and reconnect logic
