-->
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.  [ 3 posts ] 
Author Message
 Post subject: JBoss TreeCache - Why
PostPosted: Mon Nov 22, 2004 5:21 pm 
Regular
Regular

Joined: Tue Jun 22, 2004 8:01 pm
Posts: 106
Location: PowderTown, Utah, USA
Howdy. My application requires clustered invalidation, so JBoss TreeCache seems like the obvious choice. The only problem is that there are only two available options for caching strategies on Hibernate objects: read-only and transactional.

"Hibernate In Action" advises one to use transactional caching judiciously and only where needed. My problem is that most of my objects will benefit from clustering, and in an OSCache or EHCache environment, they do. But I get a performance penalty from using "transactional" caching. The only other option is "read only" but only some of my objects are truly read-only. Many of them change infrequently, but they do change.

What is the best approach in this scenario? Lots of objects that can benefit from caching: 20% read-only, 80% write-infrequently. The best model for this would be nonstrict-read-write, but that's not available with JBossCache.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 22, 2004 5:22 pm 
Regular
Regular

Joined: Tue Jun 22, 2004 8:01 pm
Posts: 106
Location: PowderTown, Utah, USA
Not sure what happened to my Subject line (brain deadness on my part, no doubt). Anyway, it should read "JBossCache - Why no read-write mode?"


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 30, 2004 8:04 pm 
Regular
Regular

Joined: Tue Nov 09, 2004 5:15 pm
Posts: 100
Won't there be a performance penaly if i try to use TreeCache or any other cache for that matter, as second-level cache in a CLUSTERED environment?


For example, i've three nodes in the JBoss cluster and assume that the possibility of my primary node coming down is rare. say once in 4-6 months. In that case, if i choose to have TreeCache as second level cache for hibernate and use cache for 20% of my objects in a large scale application, TreeCache will try to replicate the data on the other two stand-by nodes. Won't i pay the performance penalty for this?

Does any one have data on what's the difference in performance WITH and WITHOUT clustering while using TreeCache as second-level cache in Hibernate?

Thanks!


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