Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 950923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:38:47+00:00 2026-05-15T23:38:47+00:00

We are working on a web application that is distributed across 3 load-balanced web

  • 0

We are working on a web application that is distributed across 3 load-balanced web servers. A lot of the data we retreive via NHibernate is stored in System.Web.Caching.Cache.

System.Web.Caching.Cache does a lot to increase the responsiveness of an application, but there are a few issues that we don’t exactly know how to resolve, such as

  1. when a user requests data on server1 that data is cached on server1, but for their next request, the load balancer might direct them to server2. That data they requested on server1 is no longer available, and server2 will have to request it from the database again.

  2. If the user does something on server1 to invalidate the cached data, the cache is flushed on server1. However the original cache is still available on server2 & server3, so when the user submits a subsequent request and they’re directed to either of the other servers, they are going to be presented with invalid data.

  3. We have applications that update data (such as performance data) on a regular basis. When the performance data is updated we want to flush this from the cache so when a user requests the data again, they’re presented with the latest data. How can we get these applications to flush the cache on 3 web servers?

What are the best ways to resolve these issues?

Should we have cache stored on a separate server such as we could to for HttpContext.Session with a SessionState server?

Is there a way for us to set a Cache Dependency on the Cache in the other 2 servers?

Is it possible for us to implement a Cache Dependency on the actual database tables or rows? When these change the cache is flushed? — or could we set up a database trigger to flush the cache somehow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:38:47+00:00Added an answer on May 15, 2026 at 11:38 pm

    You have a few options:

    1) Use a distributed cache (such as distcache, velocity, or ncache)

    2) Use a shared cache instance (something like memcached, for instance) that all of your web servers make use of.

    NHibernate has second-level cache providers for all of these, which can be found here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 489k
  • Answers 489k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Your xml data won't automatically show up on a table… May 16, 2026 at 8:58 am
  • Editorial Team
    Editorial Team added an answer Since you want to persist the www (or lackthereof), you… May 16, 2026 at 8:58 am
  • Editorial Team
    Editorial Team added an answer Responses don't have query strings... requests do, and they're part… May 16, 2026 at 8:58 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am working on a data driven web application that uses a SQL 2005
I am working on a commercial web application that has a separate mobile browser
I am working on an asp.net web application project that has around 7 –
Little context: We are a team of 6 developers working a web application. Since
Is it possible have more than one profile template? I'm working on an internal
I see this time and time again. The UAT test manager wants the new
I am trying to use Dotfuscator (CE) to help protect our ASP.NET MVC .ddl.
I've reviewed the .NET Strong Name process a few times and think I'm comfortable
I'm trying to understand if a DHT can be used to solve a problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.