I have user facing endpoints like xmpp.host.com. However internally i would like to distribute load between xmpp1.host.com, xmpp2.host.com, ... What is the best possible way for doing this without moving this logic inside the xmpp server itself

BTW i am using ejabberd right now.

link|improve this question
feedback

1 Answer

The best way is to have xmpp.host.com be a VIP on a load balancer and setup some sort of either sticky load balancing or client-ip based hash so that requests from clients go back to the same server they were logged in to before, this way you don't have to transfer state information between XMPP servers.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.