Monday, January 16, 2006

What Is Clustering About – An answer to Spring is not designed for scalability

I wanted to reply to Diego Parilla post about scalability, but my reply ended up being too long not to post it over here. I don't know if I am the only one here but I don't fully understand his post and arguments.

Clustering the web server and clustering the model are just two parts of clustering, not exclusive.

In a LAMP application, clustering the model is traditionally done by clustering the DB (MySQL) which is a no brainer. Clustering the web server does not always implies sharing the "HTTP session". For example you can limit yourself to use cookies. For many web apps this works well.

For more stateful web apps, there are strategies to avoid clustering the session, you can make one client attack one server only for his whole session duration. Another strategy is to use DB where you would use a session. This is actually reported to work quite well. If my memory is right, this is how Friendster rewrote its app (used to be Java and session based, moved to PHP+DB).

EJBs are not about clustering the model more than Spring, they are about clustering the business logic. And I don't see how EJB3 is more scalable than Hibernate.

1 comment :

  1. Hi Fabien,

    I posted a response:

    http://jroller.com/page/cpurdy?entry=escapismability_correcting_the_corrections

    Peace.

    ReplyDelete