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.  [ 5 posts ] 
Author Message
 Post subject: Caching across a web farm
PostPosted: Tue Feb 13, 2007 4:59 am 
Regular
Regular

Joined: Fri May 05, 2006 11:54 am
Posts: 51
Hi all,

We are about to embark on a project and we are starting development using NHibernate 1.2. It is an ASP.NET application that is split across two or more web servers in a web farm.

In the past we have used NHibernate's second level caching capabilities but I have my doubts whether this will work in a web farm scenario. We can use sticky sessions a.k.a. sticky i.p.s.

I just want to double check people's experience with this.

Cheers

Paul


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 13, 2007 5:59 pm 
Senior
Senior

Joined: Sat Sep 10, 2005 3:46 pm
Posts: 178
sticky sessions arent going to help with a second level cache. If one of your web servers updates an object that is in the second level cache, the other servers in the web farm wont be updated. So one server will have the latest data and all the other servers will have stale data. This could go on and on and eventually all your web servers will be out of sync with the database. The SysCache provider will be fine for read-only data but you cant use it in a web farm scenario for 2nd level cache items that are updatable.

Have a look at NHibernate.Caches.MemCache.MemCacheProvider. This is a new cache provider that works in a server environment. I personally haven't used this so I can't comment on how well it works. I'd be interested to hear some feedback about performance. Sounds great though.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 14, 2007 5:28 am 
Regular
Regular

Joined: Fri May 05, 2006 11:54 am
Posts: 51
I will certainly try this approach.

I will keep everyone posted on my findings.

Has anoyne else any experience with this type of caching?

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 04, 2007 12:06 pm 
Beginner
Beginner

Joined: Wed Jul 19, 2006 8:24 am
Posts: 35
Any update on memcache?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 04, 2007 1:29 pm 
Senior
Senior

Joined: Sat Sep 10, 2005 3:46 pm
Posts: 178
Theres also NCache from Alachisoft. They provide a pretty slick caching system for web farms and have an NHibernate provider. I havent tried it but I got a demo and it looked great. The only problem is that it is expensive. I believe I was quoted around 1500 a processor. They require you to license your QA and staging servers as well as get dev licenses. Bummer, but if you got the dough its worth a look.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.