Questions

what's difference between load balancing layer 4 and layer 7?

Tags:
+
1 Votes
Locked

what's difference between load balancing layer 4 and layer 7?

chickenbro
Hi.
I'm learning about load balancing. But i don't known difference between load balancing layer 4 and layer 7. Who could tell me the difference that. Thanks!
  • +
    1 Votes

    anyhow better than I can explain...
    www.conexim.com.au/documents/loadbalancing.html

    +
    2 Votes
    robo_dev

    L4 load balancing is fairly simple, two servers sharing the same IP address. You get redirected to the less-busy server.

    L7 is much more complex, you're redirecting the traffic by application. In a web-based scenario, that could mean one server is doing only PHP, another only JAVA, and third one is serving up the graphics.

    So, for example, if you goto a web site and you view a video or place an order, those specific intensive and/or critical web services are handed off to different servers.

    "Layer 7 load balancing also allows for increased efficiency of the application infrastructure. For example, only two highly tuned image servers may be required to meet application performance and user concurrency needs, while three or four optimized servers may be necessary to meet the same requirements for PHP or ASP scripting services. Being able to separate out content based on type, URI, or data allows for better allocation of physical resources in the application infrastructure."

    https://devcentral.f5.com/weblogs/macvittie/archive/2008/08/12/3529.aspx

  • +
    1 Votes

    anyhow better than I can explain...
    www.conexim.com.au/documents/loadbalancing.html

    +
    2 Votes
    robo_dev

    L4 load balancing is fairly simple, two servers sharing the same IP address. You get redirected to the less-busy server.

    L7 is much more complex, you're redirecting the traffic by application. In a web-based scenario, that could mean one server is doing only PHP, another only JAVA, and third one is serving up the graphics.

    So, for example, if you goto a web site and you view a video or place an order, those specific intensive and/or critical web services are handed off to different servers.

    "Layer 7 load balancing also allows for increased efficiency of the application infrastructure. For example, only two highly tuned image servers may be required to meet application performance and user concurrency needs, while three or four optimized servers may be necessary to meet the same requirements for PHP or ASP scripting services. Being able to separate out content based on type, URI, or data allows for better allocation of physical resources in the application infrastructure."

    https://devcentral.f5.com/weblogs/macvittie/archive/2008/08/12/3529.aspx