3 ms·
Like I highlighted elsewhere, did your Go server setup a separate multiplexed process for the PubSub channel and track the PubSub subscribers on each client con
by chrismccord 11y ago
Like I highlighted elsewhere, did your Go server setup a separate multiplexed process for the PubSub channel and track the PubSub subscribers on each client connection? Comparing the client size to raw WS connections isn't accurate in this context. Horizontal scaling is nice, but you also have to consider the overhead in broadcasts that now are distributed over dozens/hundreds of nodes vs a handful of large nodes.
- nulltype 11y agoI track the pubsub subscribers on each client connection, but I'm not sure what you mean by a multiplexed process for the pubsub channel. Depending on your traffic patterns, considering the broadcast activity is potentially important, and then you might worry more about CPU than RAM. I use redis myself, but gnatsd or redis cluster may help with scaling the pubsub part of the system.