Computers and the Internet · Clients and servers
What is a server?
A server is a computer whose job is to stay on, wait for requests from other computers, and answer them.
- Time14 min
- LevelBeginner
- Experiments1 live
- Check5 questions
Computers and the Internet · Clients and servers
A server is a computer whose job is to stay on, wait for requests from other computers, and answer them.
Your goal: Explain what a server is, why it is just an ordinary computer with a particular job, and why websites run on servers in data centers instead of on anyone's laptop.
Your balance must look the same on your phone, your laptop and the bank's screens. It cannot live on any one of them: each can be switched off.
Everyday view
A server works like a restaurant kitchen. The kitchen never goes out to see who is hungry: it waits for an order slip, makes that dish, sends it out, and waits for the next slip.
The kitchen waits for order slips
Why it exists
Websites need servers because their information is shared. Your bank balance is not stored in your browser; it lives in one central place, so the same number shows on your phone, your laptop and the bank's own branch screens.
One shared place that checks who is asking
How it works
A server is an ordinary computer, with the same processor, memory, storage and network card as your laptop. What makes it a server is its job: it stays on, has a known address, listens for requests and answers many clients at once.
One machine, one address, several server programs
See it
A server spends its life in a loop: wait for a request, read it, build the answer, send it back, and wait again, while hundreds of other requests are handled at the same time.
Experiment
Every server has a limit, and the simulation below shows a single server receiving traffic. As you increase the number of requests per second, watch three things: the queue of waiting requests, the (how long each request takes to be answered), and the failed requests.
Served
0/s
Errors
0%
p50 latency
0 ms
p95 latency
0 ms
Avg busy
0%
Cost / hour
$0.00
illustrative
Serve 50,000 requests per second
Keep errors under 1% and p95 latency under 150 ms for 20 seconds at 50,000 req/s or more.
One server can finish 10,000 requests per second. 50,000 are arriving. Watch the queue, the latency and the failures — then fix it.
Illustrative model: rates, queues and latency follow simple queueing rules, not a production benchmark.
Trade-offs
You can run server software on a laptop, and developers do it every day to test their work before it goes live. But serving real visitors from a laptop goes wrong quickly, and a server in a data center fixes that at a monthly cost.
Why a laptop makes a poor server
Knowledge check
5 questions. Pass with 70% to complete the lesson. Answers are explained after you submit.
Explain it yourself
Revision card
Key points
Recall — answer in your head first
In one sentence, what makes a computer a server?
Why doesn't a popular website run on its owner's laptop?
What happens, in order, when more requests arrive than a server can handle?
Create a free account to keep it across devices. Nothing you have done so far will be lost.