Results 1 to 2 of 2

Thread: Load balancing at http layer in Spring

  1. #1
    Join Date
    Aug 2004
    Posts
    9

    Default Load balancing at http layer in Spring

    Hi everyone,

    I have 2 app servers, namely A, B and 1 db server. I will also do away
    with ejb and apply load balancing to A and B. Lets say if an insert
    operation is being performed and at the same time A is heavily loaded,
    B takes in this request and do the insert operation into the database.

    Qn:
    Will spring be able to detect this and informs A to ignore about this
    request since B has already done the insert operation?

    Thanks,
    Meng Soon

  2. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    I would personally stick to doing load balancing at the HTTP level. Basically new users come in, and get directed to either A or B, where they get a new Servlet Session, and from then on the Session affinity keeps them coming back to the same box.

    While it's true this will not load balance for a user on every request, it's quite simple, and ensures that you don't have performance issues with transferring session data across a cluster for every request.

    You can easily do this type of setup with Apache http server, sitting in front of an app server or servlet engine like TomCat, using an apache connector appropriate for the app server or servlet engine.
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 6
    Last Post: Dec 7th, 2010, 06:57 AM
  3. Spring-based architectural approach
    By diegum in forum Architecture
    Replies: 9
    Last Post: May 10th, 2007, 04:09 PM
  4. Spring HTTP Invoker and HTTP Forwarding Proxy
    By dkar77 in forum Remoting
    Replies: 3
    Last Post: Sep 21st, 2005, 08:59 PM
  5. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •