Chapter 0 — Why Architecture Appears
Explains why architecture exists and how it emerges from pressure applied to simple systems.
Systems Start Simple
- Most systems begin as a single feature.
- UI, state, API calls, and business rules often live together.
- Everything works.
- At this stage, architecture is unnecessary.
Pressure Appears
- More users.
- More features.
- More engineers.
- More business rules.
- The system still works, but it becomes harder to evolve.
Responsibilities Collide
- The same code starts rendering UI, managing state, calling APIs, validating rules, and handling errors.
- Large files appear.
- Duplication increases.
- Testing becomes harder.
- Changing code becomes risky.
Boundaries Emerge
- Teams begin separating responsibilities.
- UI becomes separate from state.
- Business logic moves away from components.
- Data access becomes isolated.
- Architecture emerges because the system demands it.
Mental Model
- Pressure creates responsibility.
- Responsibility requires boundaries.
- Boundaries create architecture.
Why This Matters
- Most architectural discussions start with solutions.
- This project starts with pressure.
- Understanding why a boundary appears is more important than memorizing a pattern.
Key Takeaway
Architecture is not the process of adding layers. Architecture is the process of managing responsibilities under pressure.