Client-Server Architecture
- It is a Request-Response structure.
- The client sends a request to the server and waits for a response.
- The server generates a result for the request and responds.
- The client operates by opening the response result.
In the past, clients and servers were integrated, but now they are separated. Business logic and data are pushed to the server, while the client focuses on UI, usability, and so on. This allows the client and server to evolve independently.
Client-Server Components #
Client #
- A system that requests services.
- Includes desktops, laptops, smartphones, tablets, etc.
Server #
- A system that provides services.
- Includes database servers, web application servers, file servers, DNS, etc.
Networking Devices #
- Connects clients and servers.
- Includes switches, routers, gateways, modems, etc.
How the Client-Server Model Works #
- The client submits a request to a networking device.
- The network server receives and processes the request.
- The server delivers a response to the client.
Clients use a LAN (Local Area Network) or WAN (Wide Area Network) to connect to servers.