Software Architecture

How should I structure a software system, and why? Not a tour of buzzwords: every architecture here is explained by the problem that caused it, the moment it stops paying for itself, and the way it fails in production.

Your path through Software Architecture

In progress

Fewer lessons than most domains. Each lesson is long and complete, but the curriculum still has gaps.

0 of 13 Foundation lessons done
0 of 37 lessons done overall
Start: What Is Software Architecture? →

Then follow the stages in order

Each stage builds on the ones before it. Labs and simulators sit right after the lessons they exercise. Open a stage to see its lessons. Full roadmap with goals →

  1. Software FundamentalsData Structures & Algorithms →
  2. HTTP / NetworkingComputer Networking roadmap →
  3. APIs0 of 1 lessons done
    1. API Architecture: REST, GraphQL, RPC, gRPC, WebSockets, WebhooksFoundation≈ 10 min
  4. Application Architecture0 of 8 lessons done
    1. What Is Software Architecture?Foundation≈ 10 min
    2. From a Simple App to a Scaled SystemFoundation≈ 10 min
    3. Monolithic ArchitectureFoundation≈ 10 min
    4. Modular MonolithFoundation≈ 15 min
    5. Layered ArchitectureFoundation≈ 10 min
    6. MVC, MVP and MVVMFoundation≈ 10 min
    7. Clean ArchitectureFoundation≈ 10 min
    8. Hexagonal Architecture (Ports & Adapters)Foundation≈ 10 min
  5. DatabasesDatabase Engineering roadmap →
  6. Caching0 of 2 lessons done
    1. Caching ArchitectureFoundation≈ 10 min
    2. CDN ArchitectureFoundation≈ 10 min
  7. Queues0 of 2 lessons done
    1. Message QueuesFoundation≈ 10 min
    2. Kafka-Style Logs: Topics, Partitions, OffsetsFoundation≈ 10 min
  8. Async Processing0 of 3 lessons done
    1. Background Jobs and WorkersIntermediate≈ 10 min
    2. IdempotencyIntermediate≈ 10 min
    3. BackpressureIntermediate≈ 10 min
  9. Scaling0 of 3 lessons done
    1. Horizontal vs Vertical ScalingIntermediate≈ 10 min
    2. Stateless vs Stateful ServicesIntermediate≈ 10 min
    3. Scale This SystemIntermediate≈ 15 min
  10. Load Balancing0 of 1 lessons done
    1. Load BalancingIntermediate≈ 10 min
  11. Distributed Systems0 of 4 lessons done
    1. CAP and Distributed SystemsIntermediate≈ 15 min
    2. Consistent HashingIntermediate≈ 15 min
    3. Service DiscoveryIntermediate≈ 15 min
    4. Distributed TransactionsIntermediate≈ 10 min
  12. Microservices0 of 2 lessons done
    1. MicroservicesAdvanced≈ 15 min
    2. API GatewayAdvanced≈ 10 min
  13. Events0 of 5 lessons done
    1. Event-Driven ArchitectureAdvanced≈ 10 min
    2. Request/Response vs Event-DrivenAdvanced≈ 10 min
    3. Saga PatternAdvanced≈ 15 min
    4. CQRSAdvanced≈ 10 min
    5. Event SourcingAdvanced≈ 10 min
  14. Reliability0 of 4 lessons done
    1. Reliability PatternsAdvanced≈ 15 min
    2. Circuit BreakerAdvanced≈ 15 min
    3. Rate LimitingAdvanced≈ 15 min
    4. Availability, SLOs and Error BudgetsAdvanced≈ 15 min
  15. Observability0 of 2 lessons done
    1. Logs, Metrics and TracesAdvanced≈ 10 min
    2. Distributed TracingAdvanced≈ 10 min
  16. System DesignSystem design exercises →
  17. Production ArchitectureFailure simulator →

The judgment we teach

Architecture is a sequence of decisions under measured constraints. The skill is knowing which problem you actually have.

  1. Learn→
  2. Visualize→
  3. Compare→
  4. Design→
  5. Simulate→
  6. Debug→
  7. Practice→
  8. Interview
Every topic answers eight questions
  1. What problem does it solve?
  2. When should I use it?
  3. When should I avoid it?
  4. What are the tradeoffs?
  5. How does it fail?
  6. How does it scale?
  7. How does data move through it?
  8. How does it talk to databases, queues, caches, APIs and external systems?
The rules that matter most
A monolith is not automatically bad architecture. Microservices must solve a real organisational or scaling problem. Every rung of the scaling ladder buys capacity by adding a problem. Retries can make an outage worse. “Exactly-once” is at-least-once plus idempotency. The simplest architecture that meets a measured requirement wins.

Start here

Modules

0/37 lessons mastered
Architecture Fundamentals0/2
What architecture is — components, boundaries, dependencies, data flow, failure domains — and how a system evolves from browser → backend → database.
Application Architecture0/3
Monolith, modular monolith, microservices: what each solves, what each costs, and the decision between them.
Code Architecture0/4
Layered, Clean and Hexagonal: dependency direction, domain isolation, and when the abstraction stops paying for itself.
Events & Messaging0/4
Event-driven architecture, queues, Kafka-style logs, and the sync-vs-async decision — with duplicates, ordering and replay taken seriously.
APIs & Gateways0/2
REST, GraphQL, RPC/gRPC, WebSockets, webhooks — which to expose to whom — and what belongs in an API gateway.
Scaling & Caching0/6
Load balancing, stateless services, cache layers, CDNs, horizontal vs vertical — and scaling a system one real problem at a time.
Async Processing0/3
Background jobs, workers, idempotency under retries, and backpressure when producers outrun consumers.
Distributed Data0/4
Why one transaction cannot span services: sagas, compensation, CQRS and event sourcing — and why most apps need none of them.
Reliability0/4
Retry, backoff, timeouts, circuit breakers, bulkheads, rate limiting, graceful degradation, and the arithmetic of nines.
Distributed Systems0/3
Consistent hashing, service discovery, partitions and CAP without slogans.
Observability0/2
Logs, metrics and traces; following one request across services and finding where the time went.

From fundamentals to production

The defining feature of Engineer Atlas: how a computer-science concept becomes a real system. Each journey crosses domains.

Hash Tables → Database Hash Join → Consistent Hashing → Distributed Cache
One idea — hash a key to find where it lives — from an array of buckets to a ring of servers.
  1. DSAHash Tables→
  2. DatabaseHash Join→
  3. ArchitectureConsistent Hashing→
  4. ArchitectureDistributed Cache
Queues → Message Queues → Sync vs Async → Event-Driven Architecture
From FIFO in memory to a broker between processes to a system that announces facts instead of making calls.
  1. DSAQueues→
  2. ArchitectureMessage Queues→
  3. ArchitectureSync vs Async→
  4. ArchitectureEvent-Driven
Vector Search → Vector Storage → RAG → Agent + RAG
Similarity over embeddings becomes retrieval infrastructure, then the memory an agent reasons over.
  1. DatabaseVector Search→
  2. Agentic AIVector Storage→
  3. Agentic AIRAG→
  4. Agentic AIAgent + RAG
ACID → Distributed Consistency → Distributed Transactions → Sagas
What one database guarantees, what replication weakens, what services lose, and how a saga gets part of it back.
  1. DatabaseACID→
  2. DatabaseDistributed Consistency→
  3. ArchitectureDistributed Transactions→
  4. ArchitectureSagas

Connected to the other domains

The same mechanisms, seen from the system side.