The client makes requests (requests, requests, requirements) to the server, which processes this requirement and returns the results to the appropriate client.
In general, clients and servers communicate with each other through a network, but they can also both reside in the same system (the same hardware).
This client/server model follows services such as email exchange, access to websites, access to databases, and many other internet protocols are based on this idea (HTTP , SMTP, Telnet, DNS), etc.
Examples of requests between client and server
Characteristics of the client/server model
The machine that serves as a server (host) is the one that has running server programs that answer the requirements of the clients, usually the clients in ician the communication session, while the servers await the arrival of requests.
The interaction between client and server is generally represented using sequence diagrams (standardized in UML).
In In contrast, the P2P (peer-to-peer) architecture, each host or program instance can be both client and server simultaneously, and each have their own responsibilities and status.
Example of a client-server model, where the client makes an HTTP request to the server, which answers
Advantages and disadvantages of the client/server model
Advantages:
* Centralization of the control of resources, data and access.
* Ease of maintenance and updating of the server side: This is because the server side can be easily maintained or updated.For example , an update is applied to a single server, but the benefits are obtained by multiple clients generally without the need for these update nothing.
* All information is stored on the server side, which is usually more secure than clients.
* There are many client-server tools tested, safe and secure.friendly to use.
Disadvantages:
* If the number of concurrent clients is high, the server may become saturated.This happens less frequently in P2P networks.
* Faced with server-side failures, the service is paralyzed for clients.Something that does not happen in a P2P network.
Related: • Server-side (server-side) • Client-side (client side) • Server
Comments
Post a Comment