Server Architecture Explained: Types of Servers, Client Requests, and Host Information
🖥️ Server
A server is a software application that receives requests from clients and responds with existing resources available on the server.
A server does not create new resources dynamically for every request; instead, it processes client requests and provides access to existing resources stored on it.
🧩 Types of Servers
Servers can be classified into three main types:
🔹 1. Database Server
Used to run database applications
Stores and manages data
Resources include:
- Databases
- Tables
- Columns
- Records (data)
📌 Examples: MySQL, Oracle, PostgreSQL
🔹 2. Web Server
Used to run web applications
Handles HTTP requests
Serves static content like:
- HTML
- CSS
- JavaScript
- Images
📌 Examples: Apache HTTP Server, Nginx
🔹 3. Application Server
- Used to run business logic of web applications
- Handles dynamic content
- Acts as a bridge between web server and database server
👤 Client
A client is a lightweight web application or software used to send requests to a server.
A client can connect to:
- Local server
- Remote server
The client sends requests using HTTP methods such as:
- GET
- POST
📌 The POST method is commonly used to send data from client to server.
🌐 Host Information
To communicate with a server, the client must provide host information, which includes:
- IP Address of the server
- Port Number of the server
- Username
- Password
This information allows secure and accurate communication between the client and the server.
⭐ Key Points
- Server responds to client requests
- Resources already exist on the server
- Client-server communication uses HTTP
- Host information is mandatory for connectivity
Comments
Post a Comment