Back to journalNotes from the craft

System Design

What Is a Server? Types and Practical Deployment Patterns

Learn how servers handle requests, how they are grouped by function and infrastructure, and how those choices combine in production deployments.

Nyi Nyi Zin

Software developer

What Is a Server? Types and Practical Deployment Patterns
On this page

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.

A client sends a request. The server can query a database and then responds to the client.
The request and response flow between a client, server, and database.

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.

Functions of web, database, file, game, mail, backend, DNS, and proxy servers
Server types grouped by function.
Server typeMain functionExample software
Web ServerHandles HTTP and HTTPS requests and serves HTML, CSS, JavaScript, and other static files.Nginx, Apache
Application ServerRuns business logic and produces dynamic data or API responses.Node.js, Gunicorn, Tomcat
Database ServerStores, queries, and manages data.PostgreSQL, MySQL, MongoDB
Proxy / Reverse ProxyActs 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 ServerStores files centrally and shares them over a network.SMB/Samba, NFS, MinIO
DNS ServerResolves domain names to IP addresses.BIND, CoreDNS
Mail ServerSends, 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.

Dedicated servers, shared hosting, virtual private servers, cloud servers, and containerized servers
Examples of server infrastructure.
Hosting modelMain characteristicsIsolation and control
Shared ServerMultiple 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 ServerVirtual 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 ServerEach 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.
Web, application, and database services running in containers on one VPS or on separate networked servers.
Two production deployment patterns. Single Server + Containers and Multi-Server Separation.
System Design

Written by

Nyi Nyi Zin

I build for the web, mobile, and everything behind the scenes. This is where I share what I learn along the way.

More about me