3 ms·
Thanks. Are you no longer concerned because memory usage dropped significantly? How's the overall latency? I remember seeing some benchmarks where ActionCabl
by nickjj 6y ago
Thanks.
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.