5 Minutes Learn About Client - Server Model
Hello, Today in this article I talk about a little bit of web programming for those who are pursuing and planning to learn about the Web or who like to learn and dabble.
Talking about the Web, you probably already know and use them every day. But to understand how a website works, most people are curious and wondering. For a programmer, it is necessary to know the client - server model. And today, I would like to talk about Client - Server model.
Introduce
The client-server model is a model that helps computers communicate and transmit data to each other. Referring to Client and Server, these are two quite common keywords that everyone knows. And I also reiterate the summary of client - server
Client and server are essentially two computers that communicate and transmit data to each other.
Computers act as clients - Client: As clients, they will not provide resources to other computers, but only use resources provided from the server. A client in one model can be a server for another, depending on the user's needs.
A computer that acts as a server - Server: A computer that is capable of providing resources and services to other clients in the network. The server plays a supporting role in making client operations more efficient.
And this client-server model is the most widely used, so in this article, we will learn about the client-server model.
What is Client Server Model?
The Client Server model is a computer network model in which the child computers act as a client, they are responsible for sending requests to the servers. Let the server process the request and return the result to that client.
Working principle
In the Client Server model, the server accepts all valid requests from anywhere on the Internet, and then returns the results to the computer that sent the request.
Computers are considered as clients when they are responsible for sending requests to servers and waiting for a response to be sent.
In order for the client and the server to communicate with each other, there must be a certain standard between them, and that standard is called a protocol. (What is the protocol, you can refer to it here) Some commonly used protocols today such as HTTPS, TCP/IP, FTP,...
If clients want to get information from a server, they must follow a protocol that the server provides. If the request is accepted, the server collects the information and returns the result to the requesting client. Because the Server - the server is always ready to receive requests from the client, as long as the client sends a signal request and accepts that request, the server will return the results to the client in the shortest time.
Advantages of the model
Helps us to work on any computer that supports communication protocols. This standard protocol also helps manufacturers integrate into many different products without difficulty.
There can be many servers doing the same service, they can be on many computers or a single computer.
Only features software that is not related to hardware, in addition to the only requirement that the server must have a higher configuration than the clients.
Support users with a variety of services and convenience by remote access.
Provides an ideal platform, allowing integration of modern techniques such as object-oriented design models, expert systems, and geographic information systems (GIS).
Defect
The issue of information security is sometimes not very secure. Because of having to exchange data between 2 different computers in 2 geographically distant areas. And this is also the only drawback of this model.
However, there are some protocols that support data security in transmission. Commonly used protocol like HTTPS.
Comments
Post a Comment