Track 03 · Core
Software Architecture
Reason about structure and trade-offs: architecture styles and patterns, distributed systems (replication, consensus, consistency), integration and event-driven design, documenting decisions, and architecting LLM-based systems.
- Last updated
- Total effort
- 840 h · ≈ 84 weeks
Overview
Software architecture is the set of decisions that are expensive to change later: how a system is split into parts, how those parts talk, where data lives, and which qualities (latency, availability, cost, security, evolvability) win when they conflict. It isn't about drawing boxes. It's about trade-off reasoning: knowing that every choice buys one quality by spending another, and making that bargain on purpose and in writing. The track moves from modular design inside one service, through the patterns and failure modes of distributed systems, to integration and event-driven architecture, and finally to how LLM-based systems change the picture.
Why it matters heading into 2027
AI hasn't removed the need for architecture; it has raised the stakes. Coding agents generate code quickly, and the scarce skill is deciding what to build and how the pieces fit. AI products are themselves distributed systems: model providers, vector stores, tool servers (MCP), queues and evaluation pipelines, each with its own latency, cost and failure modes. Teams increasingly need engineers who can reason about those trade-offs and write them down clearly, which is also how you progress from junior to senior.
- The "Agentic AI" skill cluster grew ≈280% in US postings in one year; agents are distributed systems of models, tools and state. — Lightcast for the Stanford AI Index 2026
- 66% of AI users now use coding agents, which shifts human effort toward design, review and verification. — Stack Overflow Developer Survey 2026
Prerequisites
- Software Engineering Intermediate stage: you've built and deployed a backend with a database and tests.
- Basic SQL and HTTP APIs; you know what a transaction and a status code are.
- Some exposure to Docker and a cloud platform (Cloud & IAM Beginner).
Learning path
How the stages build on each other, and where this track hands off to others.
flowchart TB
P["Prereqs: a deployed backend · SQL · HTTP"] --> B
subgraph B["1 · Beginner — design inside one service"]
direction LR
B1["modularity · coupling"] --> B2["layered / hexagonal"] --> B3["design patterns"]
end
subgraph I["2 · Intermediate — systems & trade-offs"]
direction LR
I1["quality attributes"] --> I2["caching · queues · LBs"] --> I3["ADRs · C4"]
end
subgraph A["3 · Advanced — distributed systems"]
direction LR
A1["replication · partitioning"] --> A2["consistency · CAP/PACELC"] --> A3["Raft consensus"] --> A4["event-driven · sagas"]
end
subgraph E["4 · Expert — architecture at scale"]
direction LR
E1["evolutionary architecture"] --> E2["platform & integration"] --> E3["LLM system design"] --> E4["lead reviews"]
end
B --> I --> A --> E
A -.-> CLOUD["Cloud & IAM"]
A -.-> DATA["Data Engineering"]
E -.-> AIE["AI Engineering"]
Stages
Tick items as you go — progress is saved in this browser only. Times are focused hours (reading + building); the week estimates follow the study time you pick above.
01Beginner100 h · ≈ 10 weeksLearn to structure code inside one service so it stays easy to change: modules, boundaries, dependencies and the classic design patterns.
Key concepts
Build these
Ready for the next stage when…
02Intermediate180 h · ≈ 18 weeksThink in systems: quality attributes, the standard building blocks (caches, queues, load balancers, databases), and writing decisions down.
Key concepts
Build these
Ready for the next stage when…
03Advanced240 h · ≈ 24 weeksUnderstand distributed systems properly: replication, partitioning, consistency models, consensus, and the event-driven and integration patterns built on them.
Key concepts
Build these
Ready for the next stage when…
04Expert320 h · ≈ 32 weeksShape architecture over time across teams: evolutionary architecture, platforms and integration at scale, and LLM-based systems; lead design reviews.
Key concepts
Build these
Ready for the next stage when…
Field guide
The ideas behind the checklist, with diagrams and the math where it helps.
Architecture is trade-offs, written down
Every architecture decision trades one quality for another. A cache buys latency and costs consistency. Microservices buy independent deployment and cost operational complexity. Async messaging buys resilience and costs debuggability. The work is to name the trade and record it.
An ADR is a short Markdown file in the repo:
# ADR 007: Use a transactional outbox for order events
## Status
Accepted — 2026-11-07
## Context
Order service writes to Postgres and must publish OrderPlaced to Kafka.
Dual writes can lose or duplicate events when one side fails.
## Decision
Write events to an `outbox` table in the same transaction; a relay publishes them.
## Consequences
+ No lost events; consumers must be idempotent (at-least-once delivery).
− One more table and a relay process to operate; small publish delay.
Draw at the right zoom level
The C4 model gives four zoom levels: Context (the system and its users), Container (deployable units and data stores), Component (modules inside a container) and Code. Most conversations need only the first two. Here is a container view of a typical AI-enabled service:
flowchart TB
user["Customer (web / mobile)"] --> gw["API gateway<br/>auth · rate limits"]
subgraph sys["Support assistant system"]
direction LR
api["Assistant API<br/>(Java / Ballerina)"] --> orch["Agent orchestrator"]
orch --> rag["Retrieval service"]
rag --> vec[("vector index")]
orch --> tools["MCP tool servers<br/>orders · tickets"]
api --> db[("Postgres<br/>conversations")]
end
gw --> api
orch --> llm["LLM provider(s)<br/>via model gateway"]
tools --> erp["Existing ERP / CRM<br/>(integration layer)"]
orch --> evals["traces · evals · cost"]
Numbers you should be able to estimate
Rough estimation beats guessing. Two tools cover most cases.
Little’s law, where is concurrent requests in the system, the arrival rate and the time each spends inside:
At 200 requests/s and 1.5 s per LLM-backed request, you have about 300 requests in flight. That sizes your connection pools, worker counts and provider rate limits.
Quorums in leaderless replication (Dynamo-style), with replicas, write acknowledgements and replicas read:
With , choosing tolerates one slow or failed node on both paths. is faster but can return stale data.
CAP, and why PACELC is more useful
CAP says: during a network Partition you must choose Consistency or Availability. True, but partitions are rare. PACELC adds what matters day to day: Else (no partition), you trade Latency against Consistency.
| System style | During a partition | Normal operation | Example |
|---|---|---|---|
| PA/EL | stay available | favour low latency | Dynamo-style stores |
| PC/EC | stay consistent | pay latency for consistency | Spanner-style databases |
| PC/EL | consistent when it matters | fast reads from replicas | many leader-follower SQL setups |
Ask of any datastore: what will my users see during a partition, and what does a normal read cost?
Consensus in one picture
Raft keeps a replicated log consistent across servers. A leader takes writes, replicates entries, and commits once a majority acknowledges. If the leader fails, followers time out and elect a new one, which must have every committed entry.
sequenceDiagram
participant C as Client
participant L as Leader
participant F1 as Follower 1
participant F2 as Follower 2
C->>L: write x=5
L->>F1: AppendEntries(term 3, x=5)
L->>F2: AppendEntries(term 3, x=5)
F1-->>L: ack
Note over L: majority (2 of 3) → commit
L-->>C: ok
F2-->>L: ack (late)
With servers, Raft tolerates failures. That’s why clusters come in sizes 3 and 5.
Integration and event-driven design
Most enterprise work is integration: connecting systems that were never designed to talk. That’s the world of WSO2 Micro Integrator, Ballerina and API managers. The core patterns:
- API-led layers: system APIs wrap backends, process APIs combine them, experience APIs serve each client.
- Messaging patterns: content-based router, message translator, aggregator, dead-letter channel.
- Events vs commands: an event says this happened (many consumers); a command says do this (one owner).
- Sagas: a long business transaction as local steps plus compensations, coordinated by orchestration or choreography.
- Outbox + idempotent consumers: the practical way to get exactly-once effects on top of at-least-once delivery.
What changes with LLM systems
LLM components are slow, costly, non-deterministic and sometimes wrong. Architecture absorbs that:
- Model gateway: one place for provider keys, routing, fallbacks, caching, rate limits and cost tracking.
- Evals as fitness functions: run evaluation suites in CI, just as you run tests, and block regressions.
- Budgets per request: latency, tokens and tool calls are part of the contract.
- Trust boundaries: retrieved documents and tool outputs are untrusted input. See AI Security & Safety.
- Workflows before agents: prefer a fixed pipeline when the steps are known; reach for autonomous agents only where flexibility pays for the added risk.
How this track connects
- Software Eng.Architecture is only as good as the code and tests that implement it; deep modules start at the function level.
- Cloud & IAMWell-Architected reviews, networking and IAM are where architecture decisions meet real infrastructure and cost.
- Data Eng.Replication, partitioning and event logs are the shared foundation of databases, streams and lakehouses.
- AI Eng.RAG pipelines, model gateways and agents are distributed systems with non-deterministic components.
- Harness Eng.Agent harnesses apply architecture ideas: isolation, retries, state management and clear tool contracts.
References
Original sources first: arXiv, official docs, university courses and lab blogs. Every link was checked on 7 Nov 2026.
Foundational & seminal papers(8)
- Time, Clocks, and the Ordering of Events in a Distributed System
Leslie Lamport · 1978 · lamport.azurewebsites.net
Logical clocks and causality, the foundation of distributed-systems thinking.
- The Google File System
Ghemawat, Gobioff & Leung · 2003 · research.google
Designing storage around failure as the normal case.
- MapReduce: Simplified Data Processing on Large Clusters
Dean & Ghemawat · 2004 · research.google
A simple programming model that hides distribution.
- Bigtable: A Distributed Storage System for Structured Data
Chang et al. · 2006 · research.google
The wide-column store design behind HBase and Cassandra-style systems.
- Dynamo: Amazon's Highly Available Key-value Store
DeCandia et al. · 2007 · allthingsdistributed.com
Leaderless replication, quorums and choosing availability on purpose.
- Spanner: Google's Globally-Distributed Database
Corbett et al. · 2012 · research.google
Global consistency using TrueTime; the other side of the CAP trade-off.
- CAP Twelve Years Later: How the "Rules" Have Changed
Eric Brewer · 2012 · infoq.com
The CAP theorem's author on what it really means in practice.
- In Search of an Understandable Consensus Algorithm (Raft)
Ongaro & Ousterhout · 2014 · raft.github.io
Consensus designed for understandability; the one to implement.
Courses & videos(2)
- MIT 6.5840: Distributed Systems
MIT PDOS · pdos.csail.mit.edu
Paper-driven lectures with the famous Raft labs.
- The System Design Primer
Donne Martin · github.com
Free study guide with worked system-design problems.
Books(6)
- Designing Data-Intensive Applications (2nd ed.)
Martin Kleppmann & Chris Riccomini · 2026 · dataintensive.net
The single best book on replication, partitioning, consistency and streams.
- Fundamentals of Software Architecture (2nd ed.)
Mark Richards & Neal Ford · 2025 · oreilly.com
Architecture styles, characteristics and the architect's role.
- Software Architecture: The Hard Parts
Ford, Richards, Sadalage & Dehghani · 2021 · oreilly.com
Trade-off analysis for distributed architectures and data.
- Building Microservices (2nd ed.)
Sam Newman · 2021 · samnewman.io
When microservices help, when they hurt, and how to split well.
- Release It! (2nd ed.)
Michael Nygard · 2018 · pragprog.com
Stability patterns from production war stories.
- A Philosophy of Software Design (2nd ed.)
John Ousterhout · 2021 · web.stanford.edu
Deep modules and managing complexity: architecture in the small.
Articles, blogs & official docs(10)
- Microservices
James Lewis & Martin Fowler · 2014 · martinfowler.com
The article that defined the style; read its caveats too.
- Documenting Architecture Decisions
Michael Nygard · 2011 · cognitect.com
The origin of ADRs, in one short post.
- The C4 model
Simon Brown · c4model.com
A simple, consistent way to draw architecture at four zoom levels.
- Cloud Design Patterns
Azure Architecture Center · learn.microsoft.com
Catalogue of patterns (Saga, CQRS, Strangler Fig, Circuit Breaker) with trade-offs.
- AWS Well-Architected Framework
AWS · docs.aws.amazon.com
Six-pillar lens for reviewing any cloud architecture.
- Google Cloud Well-Architected Framework
Google Cloud · cloud.google.com
Google's equivalent, with AI/ML-specific guidance.
- Jepsen analyses
Kyle Kingsbury · jepsen.io
Real databases tested under partitions, showing which consistency claims hold.
- Building effective agents
Anthropic · 2024 · anthropic.com
Workflow vs agent architectures for LLM systems; start simple.
- Patterns for Building LLM-based Systems & Products
Eugene Yan · 2023 · eugeneyan.com
Evals, RAG, caching, guardrails and feedback as architectural patterns.
- WSO2 API Manager documentation
WSO2 · apim.docs.wso2.com
API-led integration and gateway patterns in an enterprise product.