By Azhar

2011-09-16 19:54:31 8 Comments

We have a website that runs on two load balanced servers. We used the ASP.Net Application variable to make application state "online/ offline", or for some important messages across the application, So when i try update a application variable its available on one server but not on other. How i can manage a application variable across load balanced servers. What may I use? Of course keeping it as simple as possible.


@Kris Krause 2011-09-16 20:01:58

Are you using sticky sessions? How often does the data change? Is application cache even necessary?

One option: You can have each webserver store (and manage, refresh, invalidate) its own application cache. But then you run the chance of storing different copies.

Another option: distributed cache such as memcached or ncache or something else.

Another option: read/write the data out to a shared disk.

@TheGeekYouNeed 2011-09-16 19:56:46

Store that information in a database that all servers have access to and access information from.

Related Questions

Sponsored Content

25 Answered Questions

[SOLVED] ASP.NET Web Site or ASP.NET Web Application?

1 Answered Questions Load Balancing Server Error

6 Answered Questions

[SOLVED] Does MVC have Application variables?

5 Answered Questions

[SOLVED] How to add ASP.NET 4.0 as Application Pool on IIS 7, Windows 7

  • 2011-02-03 18:39:07
  • Burferd
  • 429373 View
  • 196 Score
  • 5 Answer
  • Tags: iis

2 Answered Questions

dropping servers in a load balanced environment

  • 2014-01-28 16:18:44
  • Julien
  • 99 View
  • 3 Score
  • 2 Answer
  • Tags:   c# signalr

1 Answered Questions

[SOLVED] Use application-wide variable on load balanced servers

2 Answered Questions

[SOLVED] How to handle ASP.NET Application variables in a load-balanced web farm

2 Answered Questions

[SOLVED] How to eliminate ASP.NET application reload delay using load balancer?

1 Answered Questions

[SOLVED] Determine if application support load balancing environment

2 Answered Questions

Sponsored Content