Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will this work behind load balancer? #39

Open
codingmaven opened this issue Feb 10, 2017 · 3 comments
Open

Will this work behind load balancer? #39

codingmaven opened this issue Feb 10, 2017 · 3 comments

Comments

@codingmaven
Copy link

If we run multiple server instance under load balancer, will it work in this case?

@codingmaven codingmaven changed the title Will this work under load balancer? Will this work behind load balancer? Feb 10, 2017
@alaa-eddine
Copy link
Contributor

it all depend on how the load balancer handle the servers.
you need to configure your load balancer to keep each session attached to the server to which it connected first.

if you are using eureca.io in the context of a multi-player game, you can use an approach we used.
we don't used a load balancer, instead, the authentication server plays the role of a pseudo-load-balancer.

when a player open the game, he need to enter his login/password, we decide then to send it to a specific server (it's up to you to determin the logic here : depending on the country, let the player select ....etc)

when the player is affected to a server, we initialize the client connection : new Eureca.Client(uri_of_affected_server, {...options...}) ;

@codingmaven
Copy link
Author

codingmaven commented Feb 10, 2017

The Eureca client is also nodejs server not the browser.
What I can use for load balancer? and how I can configure my load balancer to keep session attached to the server?
And can you send me sample code for the pseudo-load-balancer integration?

@codingmaven
Copy link
Author

@alaa-eddine
Can we chat on skype or google hangout?
I have implemented eureca on one of our production microservice and I need your professional advise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants