Client Server Architecture (AWS Day 1)

Client Server Architecture (AWS Day 1)

What is client?

A client which request resource from the server.

What is Server?

Server which respond to the resource.

1 - Tier Architecture

In 1-Tier Architecture Client and server are in same machine. If any person want to access the website from other machine they do not access it.

So, 1-Tier Architecture is Dead.

Example:-

If Manish built a website i.e. maxmani:8080 and host it on their local machine, If Rahul want to access the website in his machine, Then he is not able to access website. So it is not suitable for production.

2- Tier Architecture

It has two layer, Client layer and Server layer.

In server layer Application and Database are kept in same machine, So it is not recommended to have the application and database in the same machine.

If we kept in same machine we will get performance issue.

It is not recommended for production environment.

3 - Tier Architecture

Application Server:- The server which has application hosted is called app server.

Database server:- The server which has database installed or the server which store the data.

Webserver:- Which takes request and redirect to the application server is called webserver.

IP:- Internet Protocol is a unique identifier from a device in the network.

Hostname = Name of the server

Device communicate with each other in the network with Ip and hostname.

Application server should be always in private network.

Its is good for production.