locked
Application server vs Web server RRS feed

  • Question

  • User-782041127 posted

    In a situation with a web server, application server and database server....and the web server is exposed to the internet, would the asp.net code and business logic be on the web or application server? If on the application server, how is the request from the client routed to the application server thru the web server? Is IP routing used? Can someone clear this up for me?

    Tuesday, September 25, 2012 9:25 PM

Answers

  • User-869952975 posted

    Your security related concern is valid, thats where SOA style development comes into picture. make your bussiness logic as a secured WCF service or Web Services which should be referenced inside your application (presenattion layer). WCF settings would take care of all security issues.

    hope this helps.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 3, 2012 3:35 AM

All replies

  • User354071898 posted

    Webserver:

    A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page. To process a request, a Web server may respond with a static HTML page or image, send a redirect, or delegate the dynamic response generation to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or some other server-side technology. Whatever their purpose, such server-side programs generate a response, most often in HTML, for viewing in a Web browser.

    Application Server:

    As for the application server, according to our definition, an application server exposes business logic to client applications through various protocols, possibly including HTTP. While a Web server mainly deals with sending HTML for display in a Web browser, an application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object

    For more help refer below link

    http://www.codeproject.com/Articles/121096/Web-Server-and-ASP-NET-Application-Life-Cycle-in-D

    http://www.diffen.com/difference/Application_Server_vs_Web_Server

    Wednesday, September 26, 2012 2:55 AM
  • User-869952975 posted

    The bussiness logic should be deployed in App Server and application should be hosted in Web Server by creating Virtual directory. so that when user request a page, request would be reached to App server through web server.

    If I understand correctly, you need not to worry about routing anything. Hope this clarfies.

    Monday, October 1, 2012 7:32 AM
  • User-782041127 posted

    Thank you. I wondered if that was possible. It would make sense to put the code behind the firewall so it isn't exposed to someone hacking the web server. I've used virtual directories before...just never considered pointing it to another server.

    Monday, October 1, 2012 8:34 PM
  • User-869952975 posted

    Your security related concern is valid, thats where SOA style development comes into picture. make your bussiness logic as a secured WCF service or Web Services which should be referenced inside your application (presenattion layer). WCF settings would take care of all security issues.

    hope this helps.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 3, 2012 3:35 AM
  • User-1632567504 posted

    Here is an another example..

    In a SOA environment, all the web related deployment is made in the web server while all the services are deployed in the Application server and Database is deployed in the DB server.

    Web -> Web server

    WCF Services, business logic etc --> Application Server

    Db --> Db server

    For eg. Suppose WCF service needs to be called from web server, then web server's IP is configured in such a way that only web server can connect the application server not anyone can.

    Hope this helps your understanding!

    Vivek

    Monday, October 8, 2012 2:47 AM