Go back to the blog

AMA: Does an ActionCable subscription keep a Puma thread busy?

ActionCable is a PubSub implementation for Ruby on Rails — it allows asynchronous communication (a'la chat) between the backend and the front-end in the end-user's browser.

No puma thread is kept busy for the WebSocket connection — once the connection is established, it's hijacked and puma will continue using the thread to serve "regular" web requests.

This is a question asked during an AMA (Ask Me Anything) session — follow the blog to keep up with the common engineering questions and answers, or join our free mentoring platform!

Read more articles like this one:

Ruby on Rails 8