azuresticky-sessionazure-load-balancer

Azure Load Balancing with sticky session


I have web API service which I planned to host in Azure environment probably in VM. My application is using sticky session and I have to enable the Load Balancer in Azure.

Can you please suggest best approach to load balance the application Or Can I use Azure Loadbalancer with sticky session other than Application gateway.

Regards
Abdul


Solution

  • You can set the sticky session in load balancer rules with setting the session persistence as the client IP. And the steps like this.

    There is some difference between the Application Gateway and Load Balancer.

    enter image description here

    So if you will do some changes in VM, the Load Balancer is better. If not, the application Gateway is better and can be safer for web access.