Tuesday, 14 March 2017

How should I build a chat client that works in multiple instances of a server?

so I'm building a chat client in nodejs and trying to figure this out. I'm using heroku to deploy my server, which means there will be multiple instances of my server running. To solve the problem of a user connecting to a server where its socket is not initialized, I'm using sticky sessions. Now my problem is, when one of my instances gets a message, how should I send it to another user that may be initialized on another instance?



via Duxducis

No comments:

Post a Comment