Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.Net load balancing

I am working on asp.net (newbie) and I am trying to understand what it means to do "load balancing" for the web site. The website will be used by multiple users and resources (database, web service,..).

If anyone could help me understanding the concept of the load balance for asp.net web site, I would really appreciate it.
Thanks.

like image 979
tony Avatar asked Jul 27 '10 20:07

tony


People also ask

What is load balancing in asp net?

Network Load Balancing can be used to scale applications that manage session state spanning multiple connections. When its client affinity parameter setting is enabled, Network Load Balancing directs all TCP connections from one client IP address to the same cluster host.

What is load balancing in C#?

Load Balancer is the single point for handling requests and is the key that decides which request needs to be forwarded to which server in the Web Farm Environment.

What are the three types of load balancers?

Elastic Load Balancing supports the following types of load balancers: Application Load Balancers, Network Load Balancers, and Classic Load Balancers.

What is sticky session in asp net?

Session stickiness, a.k.a., session persistence, is a process in which a load balancer creates an affinity between a client and a specific network server for the duration of a session, (i.e., the time a specific IP spends on a website).


1 Answers

One load-balancing-related issue you may want to be aware of at development time: where you store your session state. This MSDN article gives a good overview of your options.

If you implement your asp.net system using "out-of-process" or "sql-server-mode" session state management, that will give you some additional flexibliity later, if you decide to introduce a load-balancer to your deployed system:

  1. Your load balancer needn't handle session affinity. As one poster mentioned above, all modern load-balancers handle it anyway, so this is a minor consideration in any case.
  2. Web-gardens (a sort of IIS/server-implemented load-balancer) REQUIRES use of "out-of-process" or "sql-server-mode" session state management. So if your system is already configured that way, you'll be one step closer to being able to use web-gardens.
like image 78
mikemanne Avatar answered Sep 27 '22 17:09

mikemanne