Client Server Model
Client Server Model
CONTENT:
• Definition
• Components
• Characteristics of client server model
• Types of client server model
• Its advantages and disadvantages
Definition
•Client/server architecture is a computing model in which the server hosts, delivers
and manages most of the resources and services to be consumed by the client. This
type of architecture has one or more client computers connected to a central server
over a network or internet connection.
In client server computing, the clients requests a resource and the server provides that resource. A server
may serve multiple clients at the same time while a client is in contact with only one server. Both the
client and server usually communicate via a computer network but sometimes they may reside in the same
system.
WORKING OF CLIENT/SERVER MODEL
Here's an example of how client/server communications work. In an average use of a
browser to access a server-side website, the user or client enters the URL. The DNS server
looks up the web server's IP address, and gives it to the browser. The browser generates an
HTTP or HTTPS request, and the server, as the producer, sends the files. The client, as the
consumer, receives them, and then, typically, sends follow-up requests.
Although this model technically works for any number of similar processes, it does have
some drawbacks. Over time, an alternative called peer-to-peer or P2P modeling has
emerged, which many feel is in some ways superior to traditional client/server models,
especially in terms of handing handling specific challenges where communications are
more evolved.
Advantages
The above figure shows the architecture of two-tier. Here the communication is one to one.
Let us see the concept of two tier with real time application. For example now we have a need
to save the employee details in database. The two tiers of two-tier architecture is
1.Database (Data tier)
2.Client Application (Client tier)
So, in client application the client writes the program for saving the record in SQL Server and
thereby saving the data in the database.
THREE TIER ARCHITECTURE