System Thinking: recap and quiz
The module in five sentences
Section titled “The module in five sentences”- 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.
- 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.
- 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.
- 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.
- 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.
How each one goes wrong
Section titled “How each one goes wrong”| 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 |
Questions to ask of any system
Section titled “Questions to ask of any system”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.
- What is it for, and who uses it? The purpose, and the users outside the boundary. (Systems)
- What must it do? The functional requirements, in a short list. (Requirements)
- How well must it do it? Latency, availability, durability and capacity, each with a number. If nobody knows, ask, then estimate. (Requirements)
- What is fixed? Time, money, people, rules, existing systems. (Constraints)
- Where is the state? What the system remembers, and where it lives. (State)
- What does it depend on? Everything a request touches, and which are hard. (Dependencies)
- What happens to a request when each dependency is down, and when it is slow? (Dependencies)
- 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.
Check your understanding
Section titled “Check your understanding”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.
Where this goes next
Section titled “Where this goes next”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.