In: Computer Science
In web programming what is the Client-Server model?
As quoted by Wikipedia "Client–server model is a distributed application structure that partitions tasks or workloads between the providers of a resource or service, called servers, and service requesters, called clients".
definations:
Server-A server is a computer program or device that provides a service to another computer program and its user
Client-A client is a computer that connects to and uses the resources of a remote computer, or server.
LAN-A local-area network (LAN) is a computer network that spans a relatively small area
WAN-A wide area network (WAN) is a telecommunications network that extends over a large geographical area for the primary purpose of computer networking.
TCP/IP-The TCP/IP Model separates networking functions into discrete layers. Network models are used to conceptualize how networks should work, so that hardware and network protocols can inter-operate.
CLIENT-SERVER IN WEB PROGRAMMING;
Widely used client-server model is based on computer transactions in which the server fulfills a request made by a client.In this context, the client establishes a connection to the server over LAN(local area network) or or wide-area network (WAN), such as the Internet.
The client-server model is also a core network computing concept and a building functionality for email exchange and Web/database access. Web technologies and protocols built around the client-server model are:
An important advantage of the client-server model is that its centralized architecture helps make it easier to protect data with access controls that are enforced by security policies. Also, it doesn't matter if the clients and the server are built on the same operating system because data is transferred through client-server protocols that are platform-agnostic. Commonly used data methods includes JSON(java-script object notation), XML( eXtensible Markup Language).
An important disadvantage of the client-server model is that if too many clients simultaneously request data from the server, it may get overloaded. In addition to causing network congestion, too many requests may result in a denial of service.
At last we can simply define client-server model as