hub.gazar.dev · course · 4 weeks

From Senior to Staff

The four-week cut of the architecture course. Eight live sessions and four artifacts between Nov 2 and Nov 26, 2026, Tuesdays and Thursdays 7:30 – 8:45 PM (GMT). Every Tuesday teaches the decision; every Thursday is a workshop where you apply it to a system you actually own. One thread runs through all four weeks: what changes when part of the system is probabilistic.

Week 1 · The six trade-offs, and the numbers that bound them

Nov 2 – 8

Week 2 · Where data lives, and where the boundary goes

Nov 9 – 15 · the double week: the store and the boundary in two sessions

Tue Nov 10

S3 · Choosing where data lives, and what changes at scale

Picking a store from access patterns and invariants, not familiarity: the four questions and the six families. Then what changes when one node stops being enough, sharding, replication and caching, and which lever you pull for reads versus writes. 7:30 – 8:45 PM (GMT).

/senior-to-staff-4-weeks/s3-data
Thu Nov 12

S4 · Workshop: draw boundaries that do not leak

Bounded contexts found from the domain rather than the org chart, then the contract that carries them: REST vs gRPC vs GraphQL, idempotency, versioning, and the failure the network guarantees you. Where a monolith is still right, and what a service actually costs. You leave with your own boundary drawn and defended. 7:30 – 8:45 PM (GMT).

/senior-to-staff-4-weeks/s4-boundaries
artifact Project 2 · due Sun Nov 15

P2 · ADR: Data Store + Service Boundary

One ADR covering both of this week's calls: the store you chose and where the boundary goes, each justified by a real seam and a named trade-off, not by preference.

/senior-to-staff-4-weeks/p2-adr-boundary
cheat sheet Reference · cheat sheet

Data Stores Cheat Sheet

The four questions, six families side by side, a card per database, ERD design and normal forms.

/cheatsheets/data-stores
cheat sheet Reference · cheat sheet

Data at Scale Cheat Sheet

How to scale each database for reads vs writes, the lever you pull, and the trade-off you take. Sharding, replication and caching side by side.

/cheatsheets/data-at-scale
cheat sheet Reference · cheat sheet

Caching Strategies Cheat Sheet

The first lever for scaling reads, in full: hit-ratio math, read and write strategies, eviction, invalidation, the stampede and hot-key failures, and the layers from browser to CDN to Redis.

/cheatsheets/caching-strategies
cheat sheet Reference · cheat sheet

PostgreSQL vs MongoDB Cheat Sheet

SQL vs NoSQL side by side: the two data shapes, how each handles ACID, what only one can do, and when to choose which.

/cheatsheets/postgres-vs-mongodb
cheat sheet Reference · cheat sheet

API Design & Networking Cheat Sheet

The contract and the network on one page: REST vs gRPC vs GraphQL, idempotency, pagination, versioning, error shapes, rate limiting, HTTP/1.1 vs 2 vs 3, and the load-balancing edge.

/cheatsheets/api-design
cheat sheet Reference · cheat sheet

Security & Auth Cheat Sheet

Authn vs authz, sessions and JWTs, OAuth 2.1 with PKCE, OIDC, SAML, passkeys, service-to-service mTLS, the authorization models, and the common web attacks with their defences.

/cheatsheets/security-auth
case study Case study · real app

Event Storming, for Club Control Panel

A real club-management system taken through a full event-storming session, every sticky traced from the actual code, until its bounded contexts emerge. The Thursday workshop, worked at full length on real stakes.

/system-designs/event-storming-club-control-panel

Week 3 · Systems you cannot fully predict

Nov 16 – 22 · distributed behaviour, probabilistic components, and failure

Tue Nov 17

S5 · What changes when part of your system is probabilistic

Distributed systems were never deterministic: there is no global clock, messages arrive twice or never, and agreement costs latency. Consensus, idempotency, sagas and the failures behind them. Then the sharper case, a component whose output varies for the same input, and which of your guarantees now have to be enforced in code around it rather than assumed inside it. 7:30 – 8:45 PM (GMT).

/senior-to-staff-4-weeks/s5-probabilistic
Thu Nov 19

S6 · Workshop: design for failure you cannot fully predict

Blast radius, fail-open vs fail-closed per path, timeouts, retries with jitter, circuit breakers, bulkheads and graceful degradation. Then the half that proves it: SLIs, SLOs and error budgets, the three pillars, and what "ready to run" means. You leave with your own failure map and the number you would page on. 7:30 – 8:45 PM (GMT).

/senior-to-staff-4-weeks/s6-failure
artifact Project 3 · due Sun Nov 22

P3 · ADR: Capstone Decision

Your hardest call, reasoned end to end: the number that bounds it, the trade-off you took, how it fails, and how you would know. The decision your capstone is built around.

/senior-to-staff-4-weeks/p3-adr-capstone
cheat sheet Reference · cheat sheet

Consistency & Consensus Cheat Sheet

CAP and PACELC, the consistency spectrum, quorums, replication topologies, Raft, and cross-service transactions (2PC vs saga).

/cheatsheets/consistency-consensus
cheat sheet Reference · cheat sheet

Resilience Patterns Cheat Sheet

The four bounding patterns, fallback and degradation, load shedding, correctness under retry, fail-open vs fail-closed, and a symptom-to-pattern decision table.

/cheatsheets/resilience
cheat sheet Reference · cheat sheet

Observability & SLO Cheat Sheet

Reliability as a number: SLI, SLO and error budget, the three pillars, RED and USE, burn-rate alerting, and an operational-readiness checklist.

/cheatsheets/observability
cheat sheet Reference · cheat sheet

Backend Clocks & Time Cheat Sheet

The "no global clock" problem unpacked: NTP and PTP, wall vs monotonic, Lamport and vector clocks, HLC and TrueTime, time-based IDs, and the backend rules.

/cheatsheets/clocks-and-time
cheat sheet Reference · cheat sheet

Kafka vs RabbitMQ Cheat Sheet

The log-vs-broker distinction, core concepts for each, delivery semantics, ordering, when to use which, and the common patterns.

/cheatsheets/kafka-vs-rabbitmq
The rest of this week's decks: S6, second half · observability & SLOs

Week 4 · Write it down, then defend it

Nov 23 – 26 · the short week: Tuesday writes, Thursday presents

Also this week: the presentation brief

Worked system designs

Reference · the classic prompts worked end to end with the course method, yours for the whole four weeks

worked design Reference · worked system design

Design Twitter / X: the home timeline

Requirements, estimation, API, data model, architecture, the fan-out deep dives (write vs read, the celebrity hot key, ranking), reliability and observability, and the trade-offs along the six axes.

/system-designs/twitter
worked design Reference · worked system design

Design WhatsApp: chat & messaging

Connections as the deciding number, the persistent-socket protocol, delivery and ordering semantics, and store-and-forward for offline.

/system-designs/whatsapp
worked design Reference · worked system design

Design Stripe: payments

The correctness-first design: idempotency keys, a double-entry ledger, exactly-once accounting, reconciliation, and fail-closed by default. The deliberate counterpoint to Twitter and WhatsApp.

/system-designs/stripe
worked design Reference · worked system design

Design Uber: ride-sharing

Geospatial indexing with cells, geohash, S2 and H3, the real-time location firehose, and matching without double-booking.

/system-designs/uber
worked design Reference · worked system design

Design YouTube: video streaming

Egress bandwidth as the deciding constraint, the async upload and transcode pipeline, the rendition ladder, CDN delivery with adaptive bitrate, and read scale across the long tail.

/system-designs/youtube
worked design Reference · worked system design

Design Dropbox: file sync

Edit-size to file-size as the deciding ratio, content-defined chunking and dedup, the cursor-based sync protocol, and conflict resolution.

/system-designs/dropbox
worked design Reference · worked system design

Design Google Search: web search

The crawler frontier, the inverted index with document-partitioned scatter-gather, two-phase ranking and typeahead, and dropping slow shards on a deadline.

/system-designs/google-search
worked design Reference · worked system design

Design Ticketmaster: event ticketing

The high-contention design: atomic conditional updates with no double-booking, the onsale spike and virtual waiting room, and seat holds that expire without a race.

/system-designs/ticketmaster

Each project page carries the whole brief in detail, with a fill-in template, the rubric, and a collapsible instructor talk-track. Bonus (async): The Least-Wrong Decision Model · The Architecture Communication Ladder · Interview Mode: System Design Rounds.