Introduction to Software Architecture
What software architecture actually is, why it matters, and the quality attributes every architect trades off.
What is software architecture?
Software architecture is the set of significant design decisions that are expensive to change later: how a system is divided into parts, how those parts communicate, where data lives, and how the system is deployed and operated.
Martin Fowler describes architecture as 'the important stuff — whatever that is.' In practice, the important stuff is anything that constrains future change: module boundaries, protocols, data ownership, and infrastructure topology.
Quality attributes drive architecture
Functional requirements tell you what a system does. Architecture is mostly shaped by non-functional requirements — the quality attributes, often called the '-ilities'.
Every architectural style is a trade-off between these attributes. Microservices, for example, trade simplicity and consistency for scalability, deployability, and team autonomy.
- Scalability — can the system handle growth in traffic and data?
- Availability — what percentage of the time does it respond correctly?
- Deployability — how quickly and safely can you ship a change?
- Modifiability — how expensive is it to change behavior?
- Testability — can parts be verified in isolation?
- Resilience — does the system degrade gracefully under failure?
Architecture styles at a glance
Over the decades the industry has converged on a handful of recurring styles. Each solves a specific class of problem, and none is universally superior.
- Layered (n-tier) — organize code by technical concern: presentation, business, persistence.
- Monolithic — a single deployable unit containing all features.
- Event-driven — components react to events instead of calling each other directly.
- Service-oriented (SOA) — coarse-grained business services sharing an enterprise bus.
- Microservices — many small, independently deployable services, each owning its data.
- Serverless — functions triggered on demand, with infrastructure fully managed.
The architect's real job
Architects don't pick 'the best' architecture — they pick the least-worst set of trade-offs for the business context. A two-person startup shipping an MVP has radically different constraints than a bank processing millions of transactions.
Throughout this course you'll see one theme repeated: microservices are a solution to an organizational scaling problem as much as a technical one. Understanding when NOT to use them is as important as knowing how.
Key takeaways
- Architecture is the set of decisions that are expensive to change later.
- Quality attributes (scalability, availability, deployability) shape architecture more than features do.
- Every style is a trade-off; there is no universally best architecture.
- Microservices solve organizational scaling as much as technical scaling.
Knowledge check
Which statement best describes software architecture?
A startup with 3 engineers needs to ship an MVP in 6 weeks. Which architecture is most appropriate?
Which of these is a quality attribute (non-functional requirement)?