Brit
Brit

Reputation: 125

Load balancing with HAProxy for chat app by chat room

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

Answers (1)

berthni
berthni

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

Related Questions