Tuesday, March 17, 2020

Client Server Model

Client-Server Model

Two remote application processes can communicate mainly in two different fashions:
  • Peer-to-peer: Both remote processes are executing at same level and they exchange data using some shared resource.
  • Client-Server: One remote process acts as a Client and requests some resource from another application process acting as Server.
In client-server model, any process can act as Server or Client. It is not the type of machine, size of the machine, or its computing power which makes it server; it is the ability of serving request that makes a machine a server.
A system can act as Server and Client simultaneously. That is, one process is acting as Server and another is acting as a client. This may also happen that both client and server processes reside on the same machine.

Sockets

In this paradigm, the process acting as Server opens a socket using a well-known (or known by client) port and waits until some client request comes. The second process acting as a Client also opens a socket but instead of waiting for an incoming request, the client processes ‘requests first’.

No comments:

Post a Comment

Software Engineering Professional Associations

There are numerous professional associations where Software Engineers can network and share information. One of the largest and oldest is th...