Skip to content
Discussion options

You must be logged in to vote

You don't need to do anything at the Kamal Proxy level. WebSocket connections are proxied automatically to your app, and having (potentially lots of) long-lived connections is not a very significant burden on the proxy. In the Rails app, Action Cable will serve these without consuming Puma workers, so up to a certain scale you should be fine with the out-of-the-box behaviour. It should all work correctly by default.

If you find that the load of serving WebSocket traffic becomes a problem for your main app at some point, you could also split the cable traffic out to its own deployment, using Kamal's path-based routing to separate that traffic. But that's really an app-level concern; it doe…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by brendon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants