XOJO web app with Load Balance

Hi,
I have a web app, i want to load balance in two server. For this i setup the same domain name in both server and in the domain dns i put the two server ip.

Its working but my question is, when dns send the client to one of the two server, when the client begin using the app is maybe posible the dns send the connection to the other sever during the client opened connection? If is true i think the client lost the connection because he’s own session no exist in the other server.

Thanks

It’s preferable to use a load balancer, you can configure it to inject a cookie and redirect the user always to the same instance of your webapp.

@John Joyce wrote this fantastic tutorial about it with haProxy, you can also read about Xojo load balancing in this thread.