Reputation: 125
I'm making a chat app in Rails and using Node.js. I want to load balance with HAProxy, but it's important that all users in a specific chat room are on the same server. How can I achieve this? I've been searching Google, assuming the intel would be out there because this must be a common issue, but I can't find anything.
Upvotes: 0
Views: 417
Reputation: 192
I think you should use session cookies, it's well described in this documentation : http://blog.haproxy.com/2012/03/29/load-balancing-affinity-persistence-sticky-sessions-what-you-need-to-know/
Upvotes: 2