AI Hints
Home›System Design Tutorial›Up, Big and Clear
System Design · Lesson 9 of 120

Requirements First

Functional and non-functional.

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

The biggest mistake in system design is to start drawing boxes too early. First, find out what the system must do, and how well it must do it. These are called requirements.

Requirements First
From the video: Requirements First
  • Don't draw boxes too early
  • What must it do?
  • How well?

Two kinds of requirements

Functional requirements are features. Users can upload a photo. Users can follow friends. Non functional requirements are qualities. The feed loads in under two hundred milliseconds. The system is up ninety nine point nine percent of the time. Data is never lost.

Functional: features

  • Upload a photoFollow a friendSee a feed

Non-functional: qualities

  • Fast: under 200 msAvailable: 99.9%Durable: never lose data

Questions to ask

Here are good questions to ask before designing. Who are the users, and how many? What are the most important features? Is it read heavy, or write heavy? And what matters most, speed, consistency, or cost? The answers change the design completely.

Who and how many?users and growth
Top features?pick the core few
Reads or writes?the ratio matters
What matters most?speed, consistency, cost

Summary

Start with requirements. Functional ones are features, and non functional ones are qualities like speed and availability. Next, we meet the shop we'll grow through this course.

Key takeaways
  • Features first
  • Then qualities
  • Ask before you draw
Next up: One Server to Start — Shoply on day one