J2EE Applications and Clusters
June 19, 2008
Post has been moved to our New Blog. http://blog.webscale.co.in/?p=23
Entry Filed under: performance. Tags: Concurrency, Java.
4 Comments Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed
1.
Darryl Stoflet | June 22, 2008 at 5:20 am
Interesting writeup. On the ’stickiness’ issue; most LB support a ‘least conn’ algorithm that that will help to avoid skewing of the load (to some degree, tho its obviously far from perfect since its a brainless least conn, that is it does not differentiate between load types).
I am curious though why you did not discuss session replication in more detail. Every meaningful appserver offers session replication which ameliorates two problems here, one the skewing due to session sticky, and two, a user does not lose their session if the app server they were on goes down.
As far as caching goes, I assume from your example that you are primarily talking about caching DB data. Ehcache has a very nice distributed replicated syncing cache. Typically most DB acces is done via an ORM or JPA. Hibernate, my favorite ORM/JPA allows ehcache to be plugged in transparently, and enabling the distributes cache is transaparent at the code level. So I’d be interested in understanding why you stated that the usage of ehcache would require to much rework.
2. mrozewski.pl » Blog Archive » Java: Pit Falls in Java Development | July 8, 2008 at 11:24 pm
[...] Java. Podają też swoje propozycje rozwiązań. Mnie w szczególności zainteresował artykuł J2EE Aplications and Clusters. Właśnie z podobnymi problemami walczymy ostatnio w pracy. W pierwszej fazie aplikacja była [...]
3.
Scott | August 6, 2008 at 6:41 am
I found the same as Darryl regarding Hibernate and Ehcache. We used Memcached with Ehcache, and quickly had our Hibernate objects in a distributed cache. We’ve had this running in production for a few months now with no issues.
We noticed a very nice performance increase as well.
The short version of the story is, I love Memcached
4.
Sergio Stateri Jr | August 22, 2008 at 4:35 pm
Hi Scot,
How can you to make hibernate cache use Memcached ? Did you implement a Hibernate cache provider ?
thanks in advance.