AI Hints
Home›System Design Tutorial›The Big Picture
System Design · Lesson 3 of 120

What Happens When You Visit a Website

One click, many steps.

⏱ 2 min read▶ Video at 2:11🎓 Free
Watch this lesson in the System Design courseWatch on YouTube ↗Full System Design course

You type a shop's address and press enter. Less than a second later, the page appears. In that second, at least five different systems worked together. Let's walk through them.

What Happens When You Visit a Website
From the video: What Happens When You Visit a Website
  • You press enter
  • Under a second later
  • Many systems worked together

From address to page

First, DNS turns the name, like shop dot com, into an IP address, the server's number on the internet. Then your browser opens a connection to that address. It sends an HTTP request. The server builds the page, often asking a database. And the response comes back, and the browser draws it.

  1. DNS lookup
  2. Connect
  3. HTTP request
  4. Server + DB
  5. Draw page
From address to page
From the video: From address to page

The words to remember

Let's pin down the words. DNS is the internet's phone book. An IP address is a machine's number. HTTP is the language browsers and servers speak. And latency is the time each step takes. Every design in this course speeds up, or protects, one of these steps.

keyvalue
DNSname to address
IP addressa machine's number
HTTPrequest and response
Latencytime each step takes

Summary

One click goes through DNS, a connection, an HTTP request, the server, and the database. Next, two numbers that describe how fast a system is. Latency and throughput.

Key takeaways
  • DNS finds the server
  • HTTP carries the request
  • Each step adds latency
Next up: Latency and Throughput — fast vs much