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.
The different structures for two tier and three tier are given as follows −
The two tier architecture primarily has two parts, a client tier and a server tier.The client tier sends a request to the server tier and the server tier responds with the desired information.
An example of a two tier client/server structure is a web server. It returns the required web pages to the clients that requested them.
An illustration of the two-tier client/server structure is as follows −
Some of the advantages of the two-tier client/server structure are −
A major disadvantage of the two-tier client/server structure is −
The three tier architecture has three layers namely client, application and data layer. The client layer is the one that requests the information. In this case it could be the GUI, web interface etc. The application layer acts as an interface between the client and data layer. It helps in communication and also provides security. The data layer is the one that actually contains the required data.
An illustration of the three-tier client/server structure is as follows −
Some of the advantages of the three-tier client/server structure are −
A major disadvantage of the three-tier client/server structure is −