DEV Community

Saranya R
Saranya R

Posted on

How a request originates from cllient and reaches the server ?

FLOW:
User > DNS > Connection Setup > Secure Connection > Request > Server > Response > Browser

1. User Action
user type a URL or click a link. The browser prepares a request.

2. DNS Lookup
The domain name (google.com) is converted into the IP address of the domain.

3. Connection Setup
A TCP connection is established between client and server for reliable and secure connection.

4. Secure Connection (HTTPS)
If the site uses HTTPS, a secure (encrypted) connection is created.

5. HTTP Request
The browser sends a request (GET, POST, PUT) to the server.

6. Server Processing
The server processes the request and interacts with the database.

7. HTTP Response
The server sends back a response (HTML, JSON, etc.) for the request sent.

8. Browser Rendering
The browser displays the result as a webpage.

Top comments (0)