-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Load Balancing and caching
PostPosted: Mon Nov 20, 2006 10:21 am 
Beginner
Beginner

Joined: Wed Nov 01, 2006 5:33 pm
Posts: 22
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 1.2

Name and version of the database you are using: SQL Server 2000

Hi,

Does the in-memory caching of NHibernate objects have any issue in a load-balanced web farm or are objects only cached for the life of a sesssion (e.g. Page Request).

Kind regards,

Stuart Jones


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 9:28 am 
Beginner
Beginner

Joined: Wed Nov 01, 2006 5:33 pm
Posts: 22
I'm sure this is an easy question....

However, I've found after much searching the first level cache survives the length of the session but second level cache is process wide.

NHibernate, according to at least one 3rd party vendor, does not support distributed second level caching meaning it should effectively be disabled in this scenario (e.g. when using Windows load-balanced web servers).

Would this be the consensus or are there any distributed second level cache projects out there aside from commercial implementations?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 12:44 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
There is a commercial distributed cache implementation (search this forum), you could try the memcache client cache provider in 1.2, and I've been slowly trying to write a distributed cache for NH for a long time.

It's not that NH doesn't support it, but that distributed caching is rare in .NET so there are few options.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 12:51 pm 
Beginner
Beginner

Joined: Wed Nov 01, 2006 5:33 pm
Posts: 22
To be honest, I am not bothered about second level caching at present but I do work with load balanced web servers - hence I'd much rather not risk integrity issues and just disable 2nd Level caching for now.

I guess all I am asking now is is that a common policy?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.