Servlet HTTP client requests
-
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?
-
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?
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
-
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?
CsTreval wrote:
- 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.