5 ms·
Wouldn't fibers work well for ActionCable applications? Lots of connections being kept alive, with sparse activity on them?
by tinco 2y ago
Wouldn't fibers work well for ActionCable applications? Lots of connections being kept alive, with sparse activity on them?
- byroot 2y agoYes. But just for the Action Cable parts, as in you'd deploy Action Cable standalone with falcon, and then keep Puma or whatever for the purely transactional requests. If you don't, you'll notice that your Action Cable latency will be all over the place when a transaction request comes in. It's acceptable for "hobby" use, but if you try to provide a good user experience with reasonable latency, you can't just collocate Action Cable and the rest of Rails in a single process.