Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Servlet HTTP client requests

Servlet HTTP client requests

Scheduled Pinned Locked Moved Web Development
questionsysadminperformancelearning
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Neo10101
    wrote on last edited by
    #1

    Concerning Servlets (spec 2.0): 1) What is the ideal methodology for handling client HTTP requests coming in for a servlet? - Using Threads? a) -> Is it not resource-heavy to have a million clients do a million requests at a time? b) -> Does this only lightly affect the CPU/memory/stability on the server? c) -> What methodology is used in real-world applications?

    L A 2 Replies Last reply
    0
    • N Neo10101

      Concerning Servlets (spec 2.0): 1) What is the ideal methodology for handling client HTTP requests coming in for a servlet? - Using Threads? a) -> Is it not resource-heavy to have a million clients do a million requests at a time? b) -> Does this only lightly affect the CPU/memory/stability on the server? c) -> What methodology is used in real-world applications?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Its quite tricky, but try to post this question at likeplum. I always get good answers there to my computer/programming issues and questions. They have programmers online to help you now. You can get a great answer to your question so fast. https://www.likeplum.com/help/programming?aid=3321

      1 Reply Last reply
      0
      • N Neo10101

        Concerning Servlets (spec 2.0): 1) What is the ideal methodology for handling client HTTP requests coming in for a servlet? - Using Threads? a) -> Is it not resource-heavy to have a million clients do a million requests at a time? b) -> Does this only lightly affect the CPU/memory/stability on the server? c) -> What methodology is used in real-world applications?

        A Offline
        A Offline
        AlphaDeltaTheta
        wrote on last edited by
        #3

        CsTreval wrote:

        1. What is the ideal methodology for handling client HTTP requests coming in for a servlet?

        Depends. While classing HTTP servers fork for every requests, modern servers don't.

        CsTreval wrote:

        a) -> Is it not resource-heavy to have a million clients do a million requests at a time?

        Of course, even some thousand clients will bring your server to it's knees. And forking and creating a new process is more bloated that a small thread

        CsTreval wrote:

        b) -> Does this only lightly affect the CPU/memory/stability on the server?

        Are you doing huge computation?

        CsTreval wrote:

        c) -> What methodology is used in real-world applications?

        We use threading on an assumption that our server is capable enough to handle the request. When we find we are unable to serve one, we either, refuse connections or send an HTTP 5xxx

        Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.

        ~ Carl von Clausewitz ~

        Source

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups