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.
|
|