DEV Community

Tharunya K R
Tharunya K R

Posted on

How a request originates from client and reaches the server

1.You type a website

Example: google.com

2.Browser finds IP

It asks DNS:
“Where is this website?”

Gets IP address

3.Request is sent

Your browser sends request to server
Like: “Give me the webpage”

4.Server receives request

Server understands what you want

5.Server processes

Fetch data from database
Perform calculations
Check authentication

6.Server sends response

Along with HTML , CSS ,JavaScript

7.Browser shows output

You see the webpage on screen

Top comments (0)