A server is a system that accepts requests from other computers or devices on a network, called clients, and responds with data, files, or services.
Hardware and Software Servers
The word “server” can refer to hardware or software.
- Hardware server — A physical computer designed to run around the clock and handle requests from many clients at once.
- Software server — A program that listens for incoming requests and responds according to a defined protocol.
How Does a Server Work?
When a client sends a request, the server processes it and retrieves data from a database if needed. It then sends a response back to the client.
Types of Servers
Servers can be classified by function, which describes the service they provide, and by infrastructure, which describes how they are hosted and how resources are allocated.
1. By Function
This classification groups server software by the service it provides over a network.
| Server type | Main function | Example software |
|---|---|---|
| Web Server | Handles HTTP and HTTPS requests and serves HTML, CSS, JavaScript, and other static files. | Nginx, Apache |
| Application Server | Runs business logic and produces dynamic data or API responses. | Node.js, Gunicorn, Tomcat |
| Database Server | Stores, queries, and manages data. | PostgreSQL, MySQL, MongoDB |
| Proxy / Reverse Proxy | Acts as an intermediary between clients and backend servers. Depending on its role and configuration, it can handle load balancing, caching, or security. | Nginx, HAProxy, Envoy |
| File / Storage Server | Stores files centrally and shares them over a network. | SMB/Samba, NFS, MinIO |
| DNS Server | Resolves domain names to IP addresses. | BIND, CoreDNS |
| Mail Server | Sends, receives, and stores email using protocols such as SMTP, IMAP, and POP3. | Postfix, Dovecot |
2. By Hosting and Infrastructure
This classification describes how the underlying hardware resources are allocated and shared.
| Hosting model | Main characteristics | Isolation and control |
|---|---|---|
| Shared Server | Multiple customers share a server’s operating system, CPU, and memory. | Isolation and control are limited, and costs are generally low. |
| Virtual Private Server (VPS) | A hypervisor divides a physical server into multiple virtual machines. | Each VPS has its own operating system and allocated resources. The underlying hardware is shared. |
| Dedicated Server (Bare Metal) | A single customer or system uses the entire physical machine. | Dedicated hardware offers direct control and predictable access to its resources. |
| Cloud Server | Virtual resources can be provisioned and scaled as needed on a cloud provider’s infrastructure. | Cloud platforms offer elasticity and options for high availability. Many services charge based on usage. |
| Containerized Server | Each application and its dependencies run in their own container, sharing the host operating system’s kernel. | Containers are lighter than full virtual machines and help keep deployments consistent. |
How Do These Fit Together in Production?
A production deployment combines the roles each service performs with the infrastructure it runs on. Two common patterns are described below.
- Single Server + Containers — Run the web server, application server, and database server in separate containers on one cloud server or VPS.
- Multi-Server Separation — As traffic and load grow, run the web server, application server, and database server on separate servers connected over a network.

