What is the client-server model?
It is a way of dividing work between two kinds of program. A client starts a conversation and asks for something: a web page, a database row, a file, the position of other players. A server waits for those requests, does the work and sends back an answer. The client does not need to know how the server stores data or which disks it uses; it only needs to speak the agreed protocol, such as HTTP, the PostgreSQL wire protocol or SMTP. The server, in turn, can serve thousands of clients it has never met before, as long as they follow the same rules.
"Client" and "server" describe roles, not machines. Your laptop is a client when it loads a site and a server when it shares a folder. A dedicated machine running nginx is a server to browsers and, at the same moment, a client of the database it queries behind the scenes. Most real systems are chains of these roles.
How does one request travel?
Take a browser loading a shop page. The browser resolves the domain through DNS, opens a TCP connection to the server's IP address on port 443, negotiates TLS, and sends an HTTP request. nginx accepts it and passes it to the application. The app queries the database, renders HTML and returns it. nginx sends the response down the same connection, and the browser then fires more requests for images, scripts and styles. Each step is a client talking to a server, and each adds some delay, which is why the physical distance between client and server matters; Latency covers that.
How is it different from peer to peer?
| Aspect | Client-server | Peer to peer |
|---|---|---|
| Who holds the data | Central servers | Spread over participants |
| Control and updates | One place to patch and back up | Each peer updates itself |
| Scaling | Add server capacity | More peers add capacity |
| Typical examples | Web, email, databases, most games | File sharing, some blockchain networks |
Many systems mix both. A blockchain node is a peer to other nodes but a server to the wallets that query it; Blockchain nodes describes that role on our hardware.
Why put the server side on dedicated hardware?
Clients come and go; the server has to be there all the time and handle many of them at once. That asks for predictable resources: CPU cores that are not shared with strangers, memory that is really yours, disks whose speed does not depend on a neighbor's workload, and a network port with enough headroom for peak hours. A single-tenant machine gives exactly that, which is why database servers, game servers and busy APIs end up on bare metal once they outgrow a small virtual server. Bare metal server explains the difference in more depth.
What does a server need from the hardware?
It depends on what each request costs. Serving cached pages is cheap per request but needs many connections and bandwidth. Running database queries needs memory to hold the working set and fast disks for what does not fit. Simulating a game world needs high single-thread speed. A rough guide to matching request type and machine:
- Many light requests (static sites, small APIs): a modest box such as E2 or S1 handles a surprising load.
- Heavier per-request work (dynamic apps, search): more cores, for example S11 with 24 cores.
- Large shared state (databases, caches): more RAM, such as M1 with 512 GB DDR4.
Where does the server's network fit in?
Every reply a server sends counts as outgoing traffic, while requests arriving from clients count as incoming. For most client-server systems replies are far larger than requests, so the outgoing side is what to plan for. Our machines include 15 TB of outgoing traffic a month (5 TB in Singapore) with inbound free, and a port of 1, 10 or 25 Gbps depending on the model. See Outbound traffic allowance and Port speed.
Is client-server old-fashioned now?
No. Containers, microservices and serverless platforms all still run on the same pattern; they just add more servers between the client and the data. Whatever framework sits on top, somewhere a process listens on a port and answers requests, and that process needs a reliable machine under it.
Machines for the Server Side
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| E2 | Intel Xeon E3-1270 v3 | 4 / 8 | 32 GB DDR3 | 1x 480 GB SSD | 2x 1 Gbps | $38.32 | $114.96 (3 months) |
| S1 | Intel Xeon E-2276G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $53.32 | $53.32 (1 month) |
| S11 | Intel Core i9-14900K | 24 / 32 | 128 GB DDR5 | 2x 2 TB NVMe | 2x 10 Gbps | $149.39 | $149.39 (1 month) |
| M1 | 2x Intel Xeon Gold 5315Y | 16 / 32 | 512 GB DDR4 | 2x 4 TB NVMe | 2x 25 Gbps | $414.70 | $414.70 (1 month) |
| D3 | 2x Intel Xeon Gold 6258R | 56 / 112 | 128 GB DDR4 | 2x 1 TB NVMe | 2x 25 Gbps | $275.32 | $275.32 (1 month) |
Keep Reading
Bare metal server
A physical machine rented to one customer, with your operating system running straight on the hardware.
OpenLatency
Why distance sets the floor for ping time, how to estimate round trips between our six cities and how to choose a location.
OpenWeb server
Both meanings of web server, the software that speaks HTTP and the machine that runs it, plus what limits how many visitors one box serves.
OpenAPI server
A server that answers program-to-program requests over HTTP or gRPC, and the CPU, memory and latency factors that shape one.
OpenFAQ
Quick Answers
The program that starts a request, such as a browser, a mobile app or a database driver inside another application.
Yes. A web server is a server to browsers and a client of its database at the same time.
Yes. Browsers are clients, and the web server plus any app and database behind it form the server side.
It answers many clients at once and must stay online all the time, so it needs steady CPU, memory, disk and network capacity.
Outgoing data, which is mostly the responses sent to clients. Inbound requests are free on our machines.