<aside>

This section is part of the 5-hour System Design Foundations course by Mukul Raina

System Design Foundations


SLIDE 15: What is a Server

Section 3: Servers and Application Architecture

A server is a computer that listens for incoming requests, processes them, and sends back responses. There is nothing special about the hardware. Any laptop can be a server. What makes a machine a “server” is the software running on it and the role it plays in the architecture.

What We’ll Cover:

  1. Single server architecture
  2. Stateful vs stateless servers
  3. Server types (web, application, database)
  4. Reverse proxies
  5. API gateways
  6. Monolith vs microservices

Physical vs Cloud Servers:

Type Description Example
Bare metal Physical machine in a data center, you own the hardware Dell PowerEdge, HP ProLiant
Virtual machine (VM) Software-defined server running on shared hardware AWS EC2, Azure VM, Google Compute Engine
Container Lightweight, isolated process sharing the host OS kernel Docker container running on Kubernetes
Serverless No server to manage, cloud provider runs your code on demand AWS Lambda, Azure Functions

Typical Production Server Specs:

A mid-range cloud server (e.g., AWS m5.2xlarge):
- CPU: 8 vCPUs
- RAM: 32 GB
- Storage: 500 GB SSD (EBS)
- Network: Up to 10 Gbps
- Cost: ~$280/month (on-demand), ~$170/month (reserved 1-year)

This single machine can handle:
- 1,000-5,000 concurrent connections
- 500-2,000 HTTP requests per second (depending on complexity)
- 10-50 database queries per request

At YouTube’s scale (500,000+ requests per second), you need hundreds to thousands of these machines working together. The rest of this section covers how to organize them.

<aside>

Mukul Raina | youtube.com/@mukulraina | slides.mukulraina.com | LinkedIn

</aside>