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.
Related Questions
Sponsored Content
25 Answered Questions
[SOLVED] ASP.NET Web Site or ASP.NET Web Application?
- 2008-12-29 16:24:13
- Robert S.
- 238207 View
- 833 Score
- 25 Answer
- Tags: asp.net .net visual-studio projects-and-solutions
1 Answered Questions
Asp.net Load Balancing Server Error
- 2017-10-30 20:05:53
- Micah Armantrout
- 93 View
- 0 Score
- 1 Answer
- Tags: c# asp.net azure load-balancing
6 Answered Questions
[SOLVED] Does asp.net MVC have Application variables?
- 2010-02-15 14:28:04
- Mark Redman
- 55773 View
- 43 Score
- 6 Answer
- Tags: c# asp.net-mvc application-state
5 Answered Questions
2 Answered Questions
1 Answered Questions
[SOLVED] Use application-wide variable on load balanced servers
- 2013-12-04 11:00:14
- Sen Jacob
- 1056 View
- 2 Score
- 1 Answer
- Tags: c# asp.net static load-balancing stateserver
2 Answered Questions
[SOLVED] How to handle ASP.NET Application variables in a load-balanced web farm
- 2012-03-14 16:22:02
- Mark Brittingham
- 2039 View
- 4 Score
- 2 Answer
- Tags: asp.net load-balancing
2 Answered Questions
[SOLVED] How to eliminate ASP.NET application reload delay using load balancer?
- 2010-12-21 17:10:26
- frankadelic
- 462 View
- 5 Score
- 2 Answer
- Tags: asp.net load-balancing
1 Answered Questions
[SOLVED] Determine if asp.net application support load balancing environment
- 2010-01-12 03:08:01
- ilovetolearn
- 361 View
- 0 Score
- 1 Answer
- Tags: asp.net load-balancing
2 Answered Questions
[SOLVED] Selective Cache clearing across load balanced servers (ASP.Net)
- 2009-04-21 21:26:34
- James
- 5881 View
- 8 Score
- 2 Answer
- Tags: .net asp.net architecture caching load-balancing
2 comments
@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.