What is the client-server architecture?
The client-server architecture is a widespread architecture used by almost every web application. Very few web apps use a different kind of architecture called Peer to Peer.
The client-server architecture is the very fundamental building block of the web. The whole architecture works based on a request-response model.
Let us explain the architecture with the essential part: what is a client?
Think about it. When you are loading youtube, you become the client (The device you are using to access youtube becomes the client, Example: Mobile, Ipad, MacBook Pro with Apple M1 Chip [13-inch, 8GB RAM, 256GB SSD]) requesting some videos from the server used by youtube (they use many servers). This becomes the client-server architecture! To make it easier, let us summarize the same.
- You load youtube (your device becomes the client).
- When you load youtube, a request is sent to youtube’s server.
- The server accepts your request and sends you a response.
- The request and response are completed.
Websites use the client-server architecture where the client sends the request to the server for information & the server responds with it. The server hosts, delivers and, manages most of the resources and services to be consumed by the client.
This is the client-server architecture!