Last post Mar 02, 2018 06:10 AM by Brando ZWZ
Mar 01, 2018 09:15 AM|hardeshis|LINK
We have web application developed in Visual Studio 2015 using c# and .net framework 4.0. We want to deploy on client's production server but client have 2 servers for load balancing. I have neither handled this situation not much familiar with load
balancing. How to make web application enable for load balancing?
Mar 01, 2018 09:33 AM|XIII|LINK
if you're using session or caching in your application make sure that you take it out of process (SQL Server, Redis, cache services).
If they have sticky sessions configured it would land on each request on the same server hence you would not have to do the former step.
Also check the configuration for machineKey and make it the same on both machines.
Mar 02, 2018 06:10 AM|Brando ZWZ|LINK
According to your description, I suggest you could follow below point:
By default, ASP.NET stores session information in the server memory. This configuration is known as in process.
In multi-server architectures, a single user’s request can be sent to a different server. A user may start a session at one server, but later requests are sent to a different in-process server.
One way is enable client affinity feature.
Details, you could refer to below article.
Another way is use ASP.NET State Server service, and Microsoft SQL Server to share the session state.
2.Synchronize Configuration and Content
A Web site’s security, performance, and many other aspects of its behavior are defined by the configuration of the Web server. Multi-server sites must have the configuration synchronized between all the servers to provide a consistent experience to users
whose requests are sent to different Web servers. ASP.NET makes it simple to synchronize configuration between multiple servers because all configuration information is stored in the virtual server’s path as XML files. These files have a .config file name
More details, you could refer to below article.