Web server vs. Application server

komputergeek

komputergeek

@komputergeek-Yf5hJ4 Oct 21, 2024
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?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • shalini_goel14

    shalini_goel14

    @shalini-goel14-ASmC2J Jan 27, 2009

    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:

    #-Link-Snipped-#

    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

    @komputergeek-Yf5hJ4 Feb 11, 2009

    Thanx a lot for help shalini.
  • shalini_goel14

    shalini_goel14

    @shalini-goel14-ASmC2J Feb 11, 2009

    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

    @komputergeek-Yf5hJ4 Feb 11, 2009

    I read about multithreading here : <a href="https://www.diffen.com/difference/Application_Server_vs_Web_Server#Multi_Threading" target="_blank" rel="nofollow noopener noreferrer">Application Server vs Web Server - Difference and Comparison | Diffen</a>
    Still confused about servlets.If servelets are not multithreaded programs then how can they handle multiple client requests?