DEV Community

SHAURYA SANYAL
SHAURYA SANYAL

Posted on

The Life of a Single API Request

The Life of a Single API Request

Follow one request from your keyboard to millions of transistors...

You press Enter.

...


Chapter 1 • The Click

Your keyboard generates an interrupt...


Chapter 2 • Finding the Server (DNS)

How does api.example.com become an IP address?

...


Chapter 3 • Can We Even Talk? (TCP)

...


Chapter 4 • Trust Nobody (TLS)

...


Chapter 5 • The Request Leaves Your Device

...


Chapter 6 • The Edge (CDN)

...


Chapter 7 • Traffic Control (Load Balancer)

...


Chapter 8 • The Front Door (Reverse Proxy)

...


Chapter 9 • Who Are You?

...


Chapter 10 • Can We Avoid the Database?

...


Chapter 11 • Talking to the Database

...


Chapter 12 • Business Logic

...


Chapter 13 • The Journey Home

...


Chapter 14 • The Browser Goes Back to Work

...


Chapter 15 • JavaScript Changes Everything

...


Chapter 16 • The GPU Takes Over

...


Chapter 17 • Interactive

...


Final Timeline

Enter Key
↓
DNS
↓
TCP
↓
TLS
↓
Internet
↓
CDN
↓
Load Balancer
↓
Reverse Proxy
↓
Authentication
↓
Cache
↓
Database
↓
Business Logic
↓
Compression
↓
Browser
↓
DOM
↓
CSSOM
↓
Layout
↓
Paint
↓
GPU
↓
First Pixel
↓
Interactive
Enter fullscreen mode Exit fullscreen mode

Closing Thoughts

A single click feels instantaneous because...

Top comments (0)