CrazyEngineers
  • Web server vs. Application server

    komputergeek

    komputergeek

    @komputergeek-Yf5hJ4
    Updated: Oct 21, 2024
    Views: 1.4K
    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?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • shalini_goel14

    MemberJan 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".
    Are you sure? This action cannot be undone.
    Cancel
  • komputergeek

    MemberFeb 11, 2009

    Thanx a lot for help shalini.
    Are you sure? This action cannot be undone.
    Cancel
  • shalini_goel14

    MemberFeb 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.😉
    Are you sure? This action cannot be undone.
    Cancel
  • komputergeek

    MemberFeb 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?
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register