Skip to main content

How ActionCable Uses Redis Discussion

General • Asked by Chris Oliver

Nice! I d like to see an episode on ActionCable & Redis tuning and optimisation to allow massive number of subscribers (100+) with frequent updates. Im currently pushing matrix with data of size 800*50 each few seconds and struggling to have more than 100 subscribers, as it starts lagging

Yeah that's going to be an interesting one. Presumably you'll end up needing to build a cluster of dedicated actioncable servers and maybe you connect 100 users to each at a maximum. At some point as well, you'll probably run into Redis pubsub scaling problems, but that hopefully isn't a bottleneck right away.


Chris, I'm currently using RedisCloud $10 plan on my Heroku app.

From the pricing page (https://elements.heroku.com..., this plan has 256 connections.

Does it mean my app can only serve 256 concurrent (ActionCable chat) users at one time?

What will happen to 257th user? He will not subscribed to Redis Pub/Sub and his message won't get broadcasted?

That's a great question. I'll try to find the answer.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.