Sticky sessions refer to the need to redirect the requests of a given user to the same server where their session lives. It is considered an anti-pattern, and in case of a server failure, all users connected to it will lose their sessions.
The association between the user and the server is usually configured via Load Balancer, and simple load balancing strategies like Round‑robin are often not enough to ensure an even distribution of the requests, as heavy users might end up all in the same node. There are many ways in which sticky sessions could be avoided, but if your application stores user’s data in the HTTPSession
, the options without requiring a substantial refactoring are a little bit limited.
from DZone.com Feed http://bit.ly/2Iuj85J
No comments:
Post a Comment