Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7910125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:44:39+00:00 2026-06-03T12:44:39+00:00

I’m miss understanding what is the different between Layer7 or Layer4 applying load balancing.

  • 0

I’m miss understanding what is the different between Layer7 or Layer4 applying load balancing.
Is one of them better ?
How I can decide which more applicative to my system ?

Thanks in advance …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T12:44:42+00:00Added an answer on June 3, 2026 at 12:44 pm

    I guess this could be a very strong discussion and anyway it’s not related to programming but…

    The difference between them is where (which OSI layer) you do the balancing. In my opinion you should never do balancing only on layer 7 (then you should always use the layer 4).

    Why? Layer 7 load balancing is good because you do not need any special hardware for it, it’s done at application level, but you pay this with many many other drawbacks:

    • Performances are not so good: load balancer will have to keep track of cookies and sessions (when needed), for this you will need a more powerful hardware. The right way should be to let the application to manage this properly. To override this you’ll need a more powerful hardware.
    • The load is distributed across servers but it’s not easy to have a true load balancing. Very often it’s simply something injected in the DNS server then it doesn’t have a true knowledge of how much a server is busy (imagine you have one intensive and two lightweight operations to dispatch to two servers, round robin may assign one intensive and one lightweight to the same server when the best could be assign both lightweight to the same server).
    • They are not scalable at all (they have to manage what your application should manage) and it’ll waste a lot of resources.

    Why they are good? They could be a quick, easy, dirty solution to patch a non scalable application (for layer 4 balancing your ASP.NET application should be scalable by itself). They could be a temporary solution to a contingent problem, not The Solution. In the real world the layer 4 load balancing is preferred (and sometimes mixed with layer 7 balancing, Google for example uses a first level round robin dns load balancing).

    Read this very good article about load balancing: http://1wt.eu/articles/2006_lb/index.html

    Something I found funny, here (about advantages of layer 7 load balancing) they say:

    While the use cases are still fairly limited, this functionality of layer 7 load balancing does open up many possibilities for future use. As this technology evolves, we will gain the ability to balance additional types of traffic more intelligently.

    If use cases (of these advantages) are “still fairly limited” and we have to wait that “as this technology evolves” then I do not see any reason to base NOW any load balancing solution only on layer 7 (moreover it’s something really easy to add in any moment in the future).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I'm making a simple page using Google Maps API 3. My first. One marker
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.