RajasekharwhY / Build-your-muscle

Learning concepts and sample practice code - C#, MVC, SQL etc..
2 stars 0 forks source link

Load balancing (F5) server, sticky sessions , sql server cache mgmt #13

Open RajasekharwhY opened 5 years ago

RajasekharwhY commented 5 years ago

Architectural considerations like scalable, highly available etc....

RajasekharwhY commented 5 years ago

Sticky session term comes in to picture when we use load balancer to configure multiple servers to take the load. If we use sticky session for the same session the request is always goes to the same server. Lets examine sticky session by examining the implementation of local -in memory cache. (it represents a cache stored in the memory of the web server ). Apps which runs on a server farm of multiple servers should ensure that sessions are sticky when using in-memory cache. sticky sessions ensure that subsequent requests from a client all go to the same server. For example Azure web apps use Application Request Routing to route all subsequent requests to the same server. Similarly Load balancing server has this option to set Sticky sessions.

What is sticky session and why it is useful ? -->https://aws.amazon.com/blogs/aws/new-elastic-load-balancing-feature-sticky-sessions/