Scaling WebSockets Horizontally with Redis Pub/Sub (With Benchmarks)
Adding a second WebSocket node is easy. Keeping Redis from melting at four nodes is the part nobody benchmarks. The fan-out amplification trap, the one-line subscribe mistake that costs you 30× the message volume, and real numbers from 1 to 8 nodes.