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 595251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:02:29+00:00 2026-05-13T16:02:29+00:00

Our current project at work is a new MVC web site that will use

  • 0

Our current project at work is a new MVC web site that will use a WCF service primarily to access a 3rd party billing system via a web service as well as a small SQL database for user personalization. The WCF service uses nHibernate for the SQL database.

We’d like to implement some sort of web farm for load balancing as well as failover and maintenance. I’m trying to decide the best way to handle nHibernate’s caching and database concurrency if there are multiple WCF services running.

Some scenarios I’ve been thinking about…

1) Multiple IIS servers, one WCF server. With this setup, the WCF server would be a single point of failure, but there would be no issues with nHibernate caching or database concurrency.

2) Multiple IIS servers, each with it’s own WCF service. This removes a single point of failure, but now nHibernate on one machine would not know about database changes done by another machine.

Some solutions to number 2 would be to use an IStatelessSession so we’re not doing any caching and nHibernate is always fetching directly from the database. This might be the most feasible as our personalization database has very few objects in it. I’m also considering a 2nd-level cache such as memcached or Velocity, but it may be overkill for this system.

I’m putting this out there to see if anyone has experience doing this sort of architecture and to get some ideas for a solution. Thanks!

  • 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-13T16:02:30+00:00Added an answer on May 13, 2026 at 4:02 pm

    am i missing something here, i don’t see a problem with nhibernate on the webservers.
    application cache would not be a problem as each nhibernate box would keep it’s own cache which would be populate from the datastore. look at creating a table that can be monitored for reasons to do a cache refresh. we used to do this using using CacheDependency class in .net 2.0 that would detect changes to a column and then remove the relevant item from the cache. so if a user inserts a new product, the cache would be dropped and the next call to get the products would load the cache again. it’s old but check out: http://msdn.microsoft.com/en-us/magazine/cc163955.aspx#S2 for the concept. cheers

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

Sidebar

Related Questions

In our current project we are providing a PDF download that can be customized
We're about to start a new project, and our client's current application is .NET
In my current project we are testing our ASP.NET GUI using WatiN and Mbunit
On my current project, I came across our master DB script. Taking a closer
As part of our current database work, we are looking at a dealing with
Our current automated build consists of 1 master box and 4 core-2-duo pizza boxed
In our current database development evironment we have automated build procceses check all the
The situation: I need to convert our current development environment from Windows XP 32-bit to
Is it a deliberate design decision or a problem with our current day browsers
I have been asked to provide information on available techniques for assessing our current,

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.