3 ms·
Last thing I heard we're no longer worried about memory usage. We where thinking about using AnyCable to address memory concerns but that is off the table at th
by sytse 6y ago
Last thing I heard we're no longer worried about memory usage. We where thinking about using AnyCable to address memory concerns but that is off the table at the moment because it isn't an issue anymore.
- nickjj 6y agoThanks. Are you no longer concerned because memory usage dropped significantly? How's the overall latency? I remember seeing some benchmarks where ActionCable was using like 1-2gb of memory for around a thousand active connections with 95% percentile latency in the multi-second range to broadcast a message. I do see AnyCable makes huge improvements here and I love the idea of it but also not too sure how backwards compatible it is with Hotwire / Turbo Streams. I've always thought Rails was good / fast enough but the ActionCable stuff worries me a little because a single low end VPS could happily handle a very solid amount of traffic (tens of thousands of daily page views, etc.) but once you start factoring in websocket connections that changes everything. Suddenly pages that have completed the request / response cycle are still on the hook to keep a ws connection open even if they're not doing anything that causes a state change.