Understanding What a Web and Application server is ?
A web server is a server that hosts the code and data of a website. When you type a URL into your browser, you're essentially providing the location of the web server. Examples: (Apache, Nginx).
Here's how your browser and web server interact:
1. The browser utilizes the URL to locate the IP address of the server.
2. The browser transmits an HTTP request to request information.
3. The web server connects with a server to retrieve the relevant data.
4. The web server returns static content like HTML pages, images, videos, or files within an HTTP response to the browser.
5. The browser then presents this information to you.
On the other hand, An application server's fundamental job is to provide its clients with access to what is commonly called business logic, which generates dynamic content. Examples: (Apache Tomcat, WildFly).
When you try to access with dynamic content on a website, the process unfolds as follows:
1. The browser employs the URL to discover the server's IP address.
2. The browser dispatches an HTTP request to seek information.
3. The web server conveys the request to the application server.
4. The application server applies its business logic and communicates with other third-party systems to fulfill the request.
5. The application server generates a fresh HTML page and provides it as a response to the web server.
6. The web server conveys the response back to the browser.
7. The browser then showcases the information to you.
Thanks for reading! ??