
In this lecture, you explain who the course is for, what you'll be able to do, and the idea the whole course is built on: every architecture decision has a price.
In this lecture, you describe the course map, the running example, the labs and the best path through the course for your experience.
In this lecture, you install the lab kit, run the first experiment, and explain why many reliable parts make a less reliable whole. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Download: Lab kit (labs.zip).
In this lecture, you tell architectural decisions apart from design and implementation by the cost of reversing them, and record them in a lightweight decision record.
In this lecture, you separate functional requirements, quality attributes and constraints, and rewrite vague quality goals as measurable scenarios.
In this lecture, you recognise architecture debt and protect the qualities you care about with automated fitness functions. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Lab: run labs/s01_fitness from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you trace how the same product needs different architectures as it grows, name the trigger for each step, and avoid starting at the end. It's a case study, worked end to end from stated assumptions, with the options that were rejected and why.
In this lecture, you break a short business request into actors, capabilities, data with owners and flows before choosing any technology, and surface the business definitions nobody wrote down.
In this lecture, you use twenty questions in eight groups to surface hidden constraints, and trace each design decision back to an answer. Download: Handout 2, The Architect's 20 Questions (PDF).
In this lecture, you read a proposed design for bottlenecks, failure domains and coupling, and turn the findings into a short risk register ranked by likelihood times impact. It's a case study, worked end to end from stated assumptions, with the options that were rejected and why.
In this lecture, you draw a system at the right level of the C4 model for each audience, add sequence or deployment views when structure isn't enough, and avoid the common diagram mistakes.
In this lecture, you turn a user count into average and peak requests per second, with reads and writes apart, using round numbers, a few sizes and latencies, and assumptions said out loud.
In this lecture, you estimate TicketForge's daily traffic, on-sale peak, seat-hold write rate and yearly storage with the capacity calculator, cross-check it from a second direction, and name what breaks first. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Download: Handout 1, Capacity Estimation Worksheet (PDF).
In this lecture, you turn an estimate into bandwidth, egress cost and database connections, read a design as a monthly bill, and size connection pools from the database's budget.
In this lecture, you use Little's Law to size workers and connections, explain with a simulation why waiting explodes past about 80% utilisation, size a queue backlog, and defend against a slow dependency. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Lab: run labs/s03_estimation/queue_sim.py from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you explain what makes a monolith modular, why each module owning its own tables keeps future options open, and when a single deployable stops fitting.
In this lecture, you use ports and adapters to keep business logic independent of vendors and frameworks, and judge where that abstraction is worth its cost.
In this lecture, you name what microservices buy and what they cost, recognise a distributed monolith, and decide when TicketForge should split out its first service.
In this lecture, you decide when components should publish events instead of calling each other, tell events from commands, and name the price of events: duplicates, ordering and delay.
In this lecture, you judge where serverless fits and where it hurts, and choose a style for each part of a system from its team, scale and budget. It's a decision lecture: you compare the options by what each one costs, then choose and defend it.
In this lecture, you explain partial failure, recognise the fallacies of distributed computing in a design, and handle a call whose outcome is unknown with a reused request ID, a pending state and reconciliation.
In this lecture, you explain why clocks on different machines disagree, show how last-write-wins silently loses updates, and order changes with version numbers, conditional writes, per-source sequence numbers and logical clocks.
In this lecture, you explain leader-follower replication, synchronous and asynchronous copies, replication lag and failover, and fix read-your-writes problems with measured trade-offs. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Lab: run labs/s05_distributed/replication_lag.py from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you choose a partition key, compare hash mod N with consistent hashing by how much data moves when a node is added, and handle a hot spot that hashing can't spread. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Lab: run labs/s05_distributed/consistent_hashing.py from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you describe the main consistency models by what a fan sees, state CAP correctly as a choice made during a network partition, and use PACELC to name the everyday latency price, per operation.
In this lecture, you use R + W > N to reason about quorum reads and writes, explain why majorities of 2F + 1 nodes survive F failures, describe leader election and Raft at a conceptual level, and protect shared resources with fencing tokens.
In this lecture, you match an API style to each boundary by asking who the client is, what they control and how the data moves, and name the price and failure mode of each style.
In this lecture, you evolve a public API without breaking old clients, page through large lists with cursors, and return errors clients can act on.
In this lecture, you explain why timeouts make retries ambiguous, design an idempotency key scheme for payments and seat holds, and show with a lab what each design choice prevents. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Lab: run labs/s06_api/idempotency_lab.py from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you choose load balancing layers and algorithms, design health checks that catch sick servers, and explain how DNS and anycast steer fans to the right region, including how slowly DNS fails over.
In this lecture, you decide what belongs in an API gateway, protect a shared service with token-bucket rate limits sized from real capacity, and use backpressure to push back instead of drowning. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Lab: run labs/s06_api/token_bucket.py from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you choose a data store by listing access patterns and what each one demands, and recognise when relational is the right default. It's a decision lecture: you compare the options by what each one costs, then choose and defend it.
In this lecture, you predict which anomalies each isolation level allows, fix a double-sold seat with a conditional update, a row lock or a unique constraint, and use indexes deliberately. Lab: run labs/s07_data/double_sold_seat.py from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you sort reads by how much lag they tolerate, give fans read-your-writes after a purchase, and keep lag and connections under control. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Lab: run labs/s07_data/read_your_writes.py from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you choose a shard key from access patterns and load, handle a mega-event without a hot shard, plan resharding, and serve cross-shard queries. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Lab: run labs/s07_data/shard_hotspots.py from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you match key-value, document, wide-column and graph stores to the access patterns they serve, and name what each costs in flexibility and operations. It's a decision lecture: you compare the options by what each one costs, then choose and defend it.
In this lecture, you feed search and analytics from a system of record without dual writes, monitor derived copies, and decide when an extra store is worth its operational price. It's a decision lecture: you compare the options by what each one costs, then choose and defend it.
In this lecture, you place caches at the right layer, and choose between cache-aside, read-through, write-through, write-behind and refresh-ahead from how stale each piece of data may be and whether a lost write matters.
In this lecture, you protect a cache against stampedes, synchronised expiry, hot keys, stale data and a cold start, and explain what each defence costs. Lab: run labs/s08_caching/stampede_sim.py from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you explain how a CDN cuts latency and cost, control what it caches with Cache-Control headers, versioned file names, cache keys and purges, and keep personal data out of shared edge caches.
In this lecture, you layer CDN, local and distributed caches for TicketForge's busiest event page, size each layer from stated assumptions, and design what happens when a layer fails. It's a case study, worked end to end from stated assumptions, with the options that were rejected and why.
In this lecture, you tell a queue, a pub/sub topic and a log apart by who receives each message and whether it can be read again, and match each TicketForge flow to the right one.
In this lecture, you explain at-most-once, at-least-once and exactly-once delivery by where the acknowledgement happens, show why exactly once stops at the broker's edge, and choose a guarantee per consumer.
In this lecture, you make consumers safe against duplicates with natural idempotency and a processed-events table, keep per-key order with a partition key and sequence numbers, and avoid hot partitions.
In this lecture, you show with a lab why writing to a database and a broker separately loses or invents events, fix it with a transactional outbox and an idempotent consumer, and decide when change data capture should feed the outbox. It's a hands-on lecture: you do the work yourself, then compare it with the worked answer. Lab: run labs/s09_messaging/outbox_lab.py from the lab kit (downloaded in the lab-kit setup lecture in the Welcome section). Plain Python, no cloud account; results are labelled as simulated.
In this lecture, you separate transient from permanent failures, design retries with backoff and a watched dead-letter queue, protect consumers with backpressure, and replay events safely after a fix.
This course contains the use of artificial intelligence.
Architecture isn't about drawing boxes and arrows. It's about making decisions under constraints, and every one of those decisions has a price: money, latency, data that's briefly out of date, risk, or work for the people on call. This course teaches you to see that price, name it and defend it.
You'll follow one running example, TicketForge, an event-ticketing platform that grows from 1,000 to 100 million users across the course. Ticketing has the hard problems in one place: on-sale spikes, seats that must never be sold twice, payments that must never charge twice, and fans all over the world.
From requirements and estimates through distributed systems, data, caching, messaging, resilience, cloud-native design and security, you'll design nine real systems end to end and push each one to ten times its load. Then you'll review a flawed design with one rubric and defend your own in a capstone.
You'll practise as you go: 29 runnable labs in plain Python (no cloud account, no paid tools, every result labelled as simulated), a quiz in every section after the welcome, "your turn" challenges with real pauses, and six downloadable handouts.
How this course was made
The architecture, the examples and every design decision in this course come from my own experience: 27 years in IT, across full-stack development, middleware, cloud and enterprise architecture, in telecom, airport operations, government platforms, payments and e-commerce.
To produce the course and keep it up to date, I use AI tools:
If you spot a mispronounced word or an error, please message me. I fix and re-upload lectures quickly.