Client Server Architecture
Now, to understand Client Server Architecture, let us take an example. Suppose, you want to search for something on google. Then what you will do,
-
First of all, you will switch on your PC, Laptop or Mobile and open a web browser like Chrome, Firefox, or Microsoft Edge.
-
Then, you will type www.google.com in your browser search bar and then hit enter.
-
In this case, your browser is called Client.
-
The client is someone or something which generates a web request.
-
Web requests is a data that are transmitted over the Internet by following a certain protocol.
-
In case of web, this protocol is generally called Hypertext Transfer Protocol (HTTP).
-
Therefore, the web requests generated by the client are called HTTP requests.
-
Once, the HTTP request is transmitted over the internet, it reaches the server by using DNS and IP Address.
-
A server is a machine that processes the HTTP requests and sends back an HTTP response.
-
The HTTP response can be of any type like an HTML file, CSS, JavaScript File, Audio, or Video File.
-
Once the HTTP response reaches the client, the browser renders the resource over the screen.
Therefore, in the client-server architecture,
-
the client sends an HTTP request to the server through the internet,
-
the server process the incoming HTTP request and sends back an HTTP response to the client.