AI Hints
Home›System Design Tutorial›Day One and a Framework
System Design · Lesson 10 of 120

One Server to Start

Shoply on day one.

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

Throughout this course, we'll grow one example. Shoply, a small online shop. On day one, it has a hundred users, and everything runs on a single server.

One Server to Start
From the video: One Server to Start
  • Our example: Shoply
  • A small online shop
  • Day one: one server

Everything on one box

On day one, one machine does everything. It runs the web server that answers requests. It runs the application code. And it runs the database, which stores products, users, and orders. Simple, cheap, and perfectly fine for a hundred users.

One server
Web + app code
Database
Everything on one box
From the video: Everything on one box

Where it will break

But as Shoply grows, this setup will break in predictable ways. The single machine runs out of CPU and memory. The database becomes slow. If the server crashes, the whole shop is down. And users far away wait a long time. Each problem has a standard fix, and we'll add them one by one.

CPU and memoryrun out
Databasegets slow
One crashtakes it all down
Far userswait longer

Summary

Shoply starts on one server, which is the right choice for a small app. As it grows, we'll fix each bottleneck in turn. Next, a framework you can use for any design.

Key takeaways
  • Start simple
  • One server is fine at first
  • Fix bottlenecks as you grow
Next up: A Framework for Any Design — four steps