Understanding What a Web and Application server is ?

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! ??

要查看或添加评论,请登录

Ajithkumar P S的更多文章

  • Use constants instead of "magic numbers"

    Use constants instead of "magic numbers"

    It can make your code more readable, maintainable, and less error-prone. Here's an example in Ruby: If there's a need…

  • Rails with_options method

    Rails with_options method

    DRY up your rails code with this cool method named with_options. To avoid repetition of code in model definitions.

  • SQL Joins:

    SQL Joins:

    1. The INNER JOIN selects records that have matching values in both tables.

  • What is SaaS?

    What is SaaS?

    In simple terms, SaaS, or software-as-a-service, is a application software hosted on the cloud infrastructure and used…

    2 条评论
  • Background Jobs - The what?, Why? & How ?

    Background Jobs - The what?, Why? & How ?

    What? Background jobs, also known as asynchronous jobs, tasks or workers are a common efficient way in web development…

  • The pluck method in rails

    The pluck method in rails

    In the world of fast based web, performance really matters a lot. In ruby on rails, sometimes we need to fetch specific…

    3 条评论
  • What are session and cookies ?

    What are session and cookies ?

    In a web application, sessions and cookies are two major concepts that helps us to store and retrieve information about…

    2 条评论
  • Some useful string functions in PHP

    Some useful string functions in PHP

    strlen() - returns length of the string echo strlen("Hello, World!") strrev() - return the reversed string of the given…

    2 条评论
  • Cloud Hosting vs Shared Hosting know the key difference

    Cloud Hosting vs Shared Hosting know the key difference

    In short, cloud hosting provides a high level of reliability which means that it incorporates the use of multiple…

  • implode() and explode() in PHP

    implode() and explode() in PHP

    In simple terms, implode() function returns a string from the elements of an array. for example: result: Good Morning!…

社区洞察

其他会员也浏览了