komputergeek
komputergeek
Branch Unspecified
11 Feb 2009

Web server vs. Application server

What is difference between web server and application server?

What i know is web server handles HTTP requests.It responds with static pages like HTML pages and can use other programs such as JSP,servlets,CGI,ASP etc to generate dynamic response.And application server handles business logic for use by client applications and supports various protocols including HTTP.
I have read that web server doesn't support multithreading.My other question is if web server doesn's support multithreading then how can it run servlets which are multithreaded programs?
shalini_goel14

shalini_goel14

Branch Unspecified
10 years ago
komputergeek
What i know is web server handles HTTP requests.It responds with static pages like HTML pages and can use other programs such as JSP,servlets,CGI,ASP etc to generate dynamic response.And application server handles business logic for use by client applications and supports various protocols including HTTP.
.
Very true said. 😀

Q1: What is difference between web server and application server?
A: Check the following link, if it can be of any help:

https://www.javaworld.com/javaqa/2002-08/01-qa-0823-appvswebserver.html

Q2: I have read that web server doesn't support multithreading.
A: As to my knowledge a web server can support multithreading through socket programming. Please give the book's reference or link which says so.

Q3: My other question is if web server doesn's support multithreading then how can it run servlets which are multithreaded programs?
A: Hope my second answer have answered your this question. FYI, Servlets are java programs that execute on server side of a web connection. Again,please give the book's reference or link which says "Servers are multi-threaded programs".
komputergeek

komputergeek

Branch Unspecified
10 years ago
Thanx a lot for help shalini.
shalini_goel14

shalini_goel14

Branch Unspecified
10 years ago
komputergeek
Thanx a lot for help shalini.
Hi komputergeek,

Did it all really help you? Anyways, You have not answered my questions which I asked while answering your questions.😉
komputergeek

komputergeek

Branch Unspecified
10 years ago
I read about multithreading here : Application Server vs Web Server - Difference and Comparison - Diffen
Still confused about servlets.If servelets are not multithreaded programs then how can they handle multiple client requests?

Share this content on your social channels -

Only logged in users can reply.