0

We have web sockets + rest, stateful socket sessions, multiple clients accessing the same stateful session, and AWS ELB.

What is the best way to allow multiple clients to access the same session(s) through AWS ELB while also being able to horizontally scale our servers.

It would be great if we could do a custom "User ID" rather than a cookie or via IP, through the ELB, but afaik that isn't possible.

I realize this is horribly open ended but I'm not sure yet how to be more specific.

2
  • 1
    ELBs have "sticky sessions" as an option, which will keep a particular user (using a cookie) on a particular backend instance for the duration of their session. You can let them assign servers, or you can use application-controlled sticky sessions for more control. Is this the sort of thing you're looking for?
    – ceejayoz
    Jul 7, 2018 at 0:13
  • Thanks for the link and the response! Sorry maybe I'm missing something obvious in there - but how does this take care of multiple clients accessing the same session? Wouldn't a new login (if on the same account, but a different computer) get a new cookie and therefore have a new session? Is there a way to say "hey server, if this user logs in on another machine, make sure to route them to the right server and hand them the right cookie? Jul 7, 2018 at 22:19

0

You must log in to answer this question.

Browse other questions tagged .