This method is used to achieve server-affinity by sticking user to a particular backend, which allows to work with just one application version. Herewith, on the first visit, customer is routed based on the servers’ weights, while assigned backend is remembered, ensuring that all subsequent requests from this user go to the same environment.
Commonly, this is implemented through remembering IP address, which is not optimal, as there could be a lot of customers behind a proxy, resulting in unfair balancing. Thus, CirrusGrid uses an advanced solution based on the session cookies to make a persistent routing, when each browser becomes an unique “user”, allowing to make balancing more even.
In such a way, Sticky Sessions distribution of a new users is similar to the round robin method and is performed according to the pre-set priority. For example, setting 50% to 50% will make both application versions being visited by the equal amount of unique users, which is useful for performing A/B Testing. But, irrespectively of the server’s weights, the “old” user’s requests will always be redirected to the hosts they are assigned to, until their session is expired or cookie is removed.
Powered by BetterDocs
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.