Skip to content

System Thinking: recap and quiz

  1. Systems, boundaries and architecture. A system is parts, connections and a purpose; its boundary separates what you build and run from what you depend on and who uses you; and its architecture is the structure and the decisions that are costly to change.
  2. Requirements. A functional requirement says what the system does and a non-functional one says how well, as a number with a condition and a share of requests, and the second kind is what usually decides the design.
  3. Constraints and trade-offs. A constraint is fixed from outside the design, a decision is a choice you could make differently, and every decision is a trade-off whose price should be written down.
  4. State. State is what a system remembers between requests; a stateless service has interchangeable instances, and making a service stateless moves its state without removing it.
  5. Dependencies. A request cannot succeed without its hard dependencies, whose availabilities multiply, and a timeout with a fallback turns a hard dependency into a soft one.
Idea What goes wrong What you see What helps
Boundary A dependency is left out of the picture An outage with nothing in the diagram to explain it List what you depend on that someone else runs, including DNS, certificates and the platform
Requirements They are adjectives, or nobody asked An argument after launch about whether it is fast enough A measure, a number, a condition and a share of requests, agreed first
Constraints A decision is treated as a constraint, or the reverse Options ruled out for no reason, or plans that rely on something fixed Ask who says it is fixed, and what happens if it is not
State It is kept in an instance, and the instance goes away Empty carts, logged-out users, instances that cannot be replaced Keep state in a store or the client, and treat that store as a dependency
Dependencies They multiply, or a soft one has no timeout Availability below that of any single component, requests piling up on a slow call Count hard dependencies, add timeouts and fallbacks, make copies where failures are independent

You will not always have a diagram. These questions open any design discussion, in an interview or in a meeting, and each one points back to a lesson.

  1. What is it for, and who uses it? The purpose, and the users outside the boundary. (Systems)
  2. What must it do? The functional requirements, in a short list. (Requirements)
  3. How well must it do it? Latency, availability, durability and capacity, each with a number. If nobody knows, ask, then estimate. (Requirements)
  4. What is fixed? Time, money, people, rules, existing systems. (Constraints)
  5. Where is the state? What the system remembers, and where it lives. (State)
  6. What does it depend on? Everything a request touches, and which are hard. (Dependencies)
  7. What happens to a request when each dependency is down, and when it is slow? (Dependencies)
  8. What is the simplest design that meets all of this, and what does it cost? The decision, written as a trade-off. (Constraints)

These are the first steps of the sequence the course teaches for any design: clarify, requirements, estimate, simple architecture, find the bottleneck, scale, handle failures, choose consistency, discuss trade-offs, defend the design. This module is the first three steps and the groundwork for the fourth. The modules that follow supply the rest.

Seven questions cover the whole module. Every option is explained, whether it is right or wrong.

System Thinking: module quiz

This quiz needs JavaScript to check your answers.

Question 1 of 7

The shop's application and database are healthy. Customers cannot pay, because the payment provider's API is down.

Which statement is correct?

Choose one answer.

Question 2 of 7

Which of these are non-functional requirements that can be tested?

Choose every answer that applies.

Question 3 of 7

A shop expects 2 million active users a day. Each makes about 25 requests a day. Its busiest moment is about three times the average. Count a day as 86,400 seconds.

How many requests per second does it have to handle at the peak?

Enter a number and choose its unit.

requests per second
Question 4 of 7

Light travels in an optical fibre at about 200 kilometres per millisecond. A user is 6,000 kilometres from the server, along a fibre that runs in a straight line.

What is the least time a round trip can take?

Enter a number and choose its unit.

milliseconds
Question 5 of 7

The team stores product data in PostgreSQL. MySQL would also have met every requirement, and nothing outside the team required either.

What kind of statement is “product data is stored in PostgreSQL”?

Choose one answer.

Question 6 of 7

A request needs three components in a row to all work: no copies, no fallbacks. Each is available 99.9% of the time, and they fail independently.

What is the best availability the system can have, as a percentage?

Enter a number and choose its unit.

%
Question 7 of 7

The checkout asks a recommendation service for suggestions, with no timeout. The service normally answers in 20 ms. Today it answers in 5 seconds.

What is the most likely result?

Choose one answer.

The next module, Core Properties, takes the words that appeared as requirements here, such as availability, durability and consistency, and states each one precisely. The one in this module that you will use first is availability: you have seen how a chain of dependencies multiplies it, and the next module shows what each “nine” means.

Your progress

Built by GhaziAlibi.

© ShardCraft. All rights reserved.