DEV Community

Discussion on: Why you should never use sticky sessions

Collapse
 
gkoniaris profile image
George Koniaris

Hey John,

Thanks for commenting. I would not rewrite a piece of my application if it was already relying on the server's internal state, but I would make sure that I have some kind of rate limit on these endpoints to avoid server overloading. Now, for race conditions, you can use session storage like Redis and perform atomic operations on the values of the session. Have you ever found any case where it's not possible to use an async service, like Redis, for this job?

Collapse
 
moaxcp profile image
John Mercier

No I think something like that would make sense.