DEV Community

Shreya Princy
Shreya Princy

Posted on

How a Request Originates from Client and Reaches the Server

1.Client Side
The process begins when a user performs an action,
such as:
Typing a URL in the browser
Clicking a link
Submitting a form
2.DNS translates the domain name into an IP address.DNS is domain name system.

3.The browser establishes a connection using TCP (Transmission Control Protocol).

4.Secure Communication (HTTPS) If the website uses HTTPS:
A TLS handshake is performed.
Encryption keys are exchanged.
Data becomes secure and encrypted.

5.Now the browser sends an HTTP request to the server.

6.Includes method (GET, POST, etc.)

  1. next Server Processing: Passes it to backend application. Processes logic. Interacts with database if required Prepares a response.

8.Server Response is the server sends back an HTTP response

9.The request doesn’t go directly—it travels through Routers and Switches

10.Server Receives the Request next Once the request reaches the server:
It is received by a web server.
Then forwarded to the application server

11.Fetch user data
Process login
Calculate results

12.Server Sends HTTP Response ,After processing, the server sends back a response.

13.DNS converts a domain name (like google.com) into an IP address (like 142.250.183.14) so that the request can reach the correct server.

14.The journey from client to server involves multiple layers working together networking, protocols, servers, and browsers. Understanding this flow is essential for backend development, system design, and debugging real-world applications.

15.developers build faster, more secure, and scalable applications.

Top comments (0)