Hello
I have a high traffic site and I use hibernate with ehcache to cache some entities and queries.
The problem is that when a cache region invalidates I'm getting that cache region repopulated many-many times by different threads (because the site is being hit by many users at the same time).
This scenario is described at
http://ehcache.org/documentation/constr ... ocId937608 but on a higher level (web page level).
I managed to convert 1 entity and 1 query cache to a BlockingCache by providing my own implementation at hibernate.cache.provider_class but the semantics of BlockingCache do not seem to work. Even worst sometimes the BlockingCache deadlocks.
How do you solve this in production?
Is anyone else using BlockingCache in entity, query and collection caches?
I use hibernate and ehcache latest.
thanks a lot
Ioannis