Skip to content

Study path: from first chapter to senior ​

This page is the reading order for the whole site: every section and every group, in sequence, with what to make sure you can do after each chapter, so you can work through all 286 chapters and come out at senior level.

How to use this page. Follow the stages top to bottom and the group tables inside each stage row by row; tick a chapter only after its self-check. On a first pass read only the Must-know rows, then come back for Important and Good to know. Use the weekly plan to pace yourself and the milestones to know when a stage has really landed.

The method for one chapter ​

Every chapter has the same shape (page map, one-minute summary, why, history, concept blocks, mechanics, Go and Laravel solutions, decision table, lab, misconceptions, cheat sheet, glossary, self-check, sources), so one routine works everywhere. Budget 60–90 minutes for a Must-know chapter:

StepWhat you doTime
1. OrientRead the page map and Everything in one minute; write down the three ideas you expect to learn5 min
2. ConceptsRead Why, then the concept blocks; stop at each "common misunderstanding" and say in your own words why it is wrong30 min
3. MechanicsRead the knobs, error codes and the Go or Laravel solution for your stack; skim the other one15 min
4. LabRun the lab when it needs only a terminal, psql or go run; Docker-only labs go into one weekend lab session per stage20 min
5. ConsolidateRead the misconceptions and the cheat sheet; copy the cheat-sheet row you would forget into your log5 min
6. Self-checkPress open all, answer every question aloud before reading its answer, then mark the ones you missed15 min

Failing the self-check. If you miss more than three questions, do not move on: reread the sections the answers link to, redo the self-check the next day, and only then start the next chapter in the group.

Skipping on the first pass. Skip a Good-to-know chapter when nothing in your current job or next interview touches it; never skip a Must-know chapter, and never skip a chapter that a later Must-know chapter names as a prerequisite in its page map.

Spaced repetition. Every question on the site is also in the interview hub, tagged by level. Once a week, filter the hub by level and re-answer the questions of the groups you finished two weeks ago; questions you miss go back into next week's list. After a month, repeat the same groups once more with the Must-know filter only.

The order ​

Hours use one rule: 1.5 h per Must-know chapter, 1 h per Important chapter, 0.5 h per Good-to-know chapter, and 0.5 h per cheatsheet. The last column gives Must-know only / everything.

StageLearning pathWhy herePrerequisiteHours (Must-know / all)
1FoundationsEncoding, crypto and networking show up as bugs everywhere laterNone15 / 23
2Software DesignClass-level design is the vocabulary every architecture argument usesStage 1 (helpful, not required)21 / 33.5
3ArchitectureStyles, trade-offs and estimates frame every later system choiceStage 218 / 25.5
4DDD & MicroservicesBoundaries decide where data, events and services splitStages 2–312 / 19
5DatabasesMost production incidents and senior interviews end at the data layerStage 1; Stage 4 for the design groups28.5 / 50.5
6MessagingAsync integration builds on transactions and on DDD eventsStages 4–521 / 37
7System DesignPulls every earlier stage into whole-system designs and case studiesStages 3–651 / 84
8GoImplements the earlier ideas in one production language; can run in parallel from stage 5Stage 1; stage 5 for the data chapters36 / 54
9Cheatsheets + interview drillsQuick reference and recall practice once the concepts are knownThe chapter each cheatsheet follows; runs continuously2.5 / 4.5
Total205 / 331

Go in parallel. If you write Go at work, start stage 8 alongside stage 5 and split each week roughly half and half; the Go data and messaging chapters then land right after their database and messaging counterparts.

Coming from PHP/Laravel. Skip nothing in Go: read every chapter, but open its For PHP/Laravel developers section first, because it maps the Go idea onto the Laravel feature you already know and saves most of the orientation step.

Stage 1 — Foundations ​

A senior reads a hex dump, a TLS error and a tcpdump without guessing. Read Data Representation & Integrity first, then Networking for Developers in order; do every lab here; most are short terminal exercises. On a first pass, Kubernetes networking and VPNs can wait until stage 7.

Data Representation & Integrity ​

#ChapterLevelStudy note
1Bits, Bytes & Text Encoding: ASCII, Unicode, UTF-8/16, Normalization, EndiannessMust-knowExplain code point vs byte, UTF-8 widths and normalization bugs
2Binary-to-Text Encoding: Base64, Base32, Hex, Percent-Encoding, Data URIsImportantPick Base64, Base64URL, hex or percent-encoding and know the overhead
3Serialization Formats: JSON, Protobuf, MessagePack, Avro, CBOR, XMLMust-knowChoose JSON, Protobuf or Avro by schema-evolution needs
4Compression: Entropy, Huffman, LZ77, gzip/zlib/deflate, Brotli, zstd, lz4, snappyImportantTrade ratio against speed with gzip, zstd and lz4
5Checksums & Hashing: Parity, CRC32/CRC32C, xxHash, Murmur, SHA-2/3, BLAKE3, Content AddressingImportantSeparate integrity checksums from cryptographic hashes and use each correctly
6Cryptography Fundamentals: AES-GCM, ChaCha20, RSA/ECC/Ed25519, ECDH, KDFs, HMAC, Signatures, RandomnessImportantExplain AEAD, key exchange, signatures and why nonces never repeat
7Password Hashing & Signed Tokens: bcrypt, Argon2, Salts & Peppers, HMAC-Signed URLs, JWT/PASETO SigningMust-knowStore passwords with Argon2 or bcrypt; sign URLs with HMAC
8TLS in Practice: Handshake on the Wire, Certificates & Chains, SNI/ALPN, mkcert, openssl s_client, Certs in Docker & KubernetesMust-knowRead a TLS handshake and debug certificate chains with openssl

Networking for Developers ​

#ChapterLevelStudy note
1Network Models: OSI vs TCP/IP, Encapsulation, What Happens When You Open a URLMust-knowNarrate every layer that runs when a browser opens a URL
2IP Addressing: IPv4/IPv6, Private Ranges, CIDR & Subnet Math, Gateways, Routing Tables, ARP/NDPMust-knowDo CIDR subnet math and read a routing table
3NAT, PAT & Port Forwarding; DHCP Lease Flow; CGNAT; Hairpin NATImportantTrace a packet through NAT and port forwarding; explain CGNAT
4DNS Resolution for Developers: Resolvers, Records, TTL & Caching, /etc/hosts, resolv.conf, Split DNS, DNS in ContainersMust-knowTrace a lookup from resolv.conf to the authoritative server
5Ports, Sockets & Connections: Ephemeral Ports, TIME_WAIT, Keepalive, Backlog, conntrack; ss, lsof, tcpdump, nc, curl, digMust-knowDiagnose TIME_WAIT and backlog problems with ss, lsof and tcpdump
6Firewalls: iptables/nftables, Security Groups, Network ACLs, Egress ControlImportantWrite an nftables rule; explain security groups versus network ACLs
7Docker Networking: bridge, host, none, overlay, macvlan; Port Publishing, Embedded DNS, Compose Networks, the iptables Rules Docker Writes, MTUMust-knowExplain bridge networks, port publishing and Docker's embedded DNS
8Kubernetes Networking: Pod Network & CNI, ClusterIP/NodePort/LoadBalancer, kube-proxy (iptables/IPVS), CoreDNS, Ingress & Gateway API, NetworkPolicy, Egress NATImportantFollow one request from Ingress through a Service to a Pod
9VPNs & Tunnels: SSH Port Forwarding, Bastions, WireGuard, Site-to-Site vs Client VPN, Zero-Trust AccessImportantSet up SSH local forwarding and a WireGuard peer
10Network Troubleshooting Playbook: Connection Refused vs Timeout, DNS Failures, MTU/Fragmentation, conntrack & Ephemeral Port Exhaustion, Packet CaptureMust-knowTell refused from timeout and find MTU or conntrack faults

Stage 2 — Software Design ​

This stage gives you the words for every review comment you will ever write. Read the groups in order: Foundations, Design Quality, SOLID, Design Patterns; practise by refactoring one class from your own codebase per SOLID chapter. Key Design Issues can be deferred until after stage 3, except error handling, which is Must-know.

Foundations ​

#ChapterLevelStudy note
1Software Architecture vs Software Design: Goals, History & RolesMust-knowSay where architecture ends and design begins, with examples
2The Design Process: Conceptual Design, CRC Cards, Technical Design & CompromiseImportantRun a conceptual design with CRC cards, then a technical design
3Quality Attributes, Functional & Non-Functional RequirementsMust-knowTurn vague requirements into measurable quality-attribute scenarios
4Object-Oriented Modeling: Abstraction, Encapsulation, Decomposition, Generalization, PolymorphismMust-knowApply abstraction, encapsulation and decomposition to a real domain
5UML in Practice: Class, Sequence, State, Activity, Component, Package & Deployment DiagramsImportantDraw class, sequence and state diagrams a teammate can read

Design Quality ​

#ChapterLevelStudy note
1Design Quality: Complexity, Coupling & Cohesion, Information Hiding, Separation of Concerns, Conceptual IntegrityMust-knowJudge coupling and cohesion and argue for information hiding
2Composing Objects & the Law of DemeterImportantPrefer composition over inheritance; spot Law of Demeter violations
3Code Smells, Anti-Patterns & Refactoring (the 14 smells and their moves)Must-knowName each smell and the refactoring move that removes it
4Low-Level Design: Classes, Responsibilities, Relationships, Structured vs OO DesignImportantDesign classes and relationships for a small LLD interview problem

SOLID ​

#ChapterLevelStudy note
1SOLID — five principles for code that survives changeMust-knowExplain what SOLID protects you from when requirements change
2Single Responsibility Principle (SRP)Must-knowSplit a class by its sources of change, not size
3Open–Closed Principle (OCP)Must-knowAdd behaviour through a stable abstraction without editing working code
4Liskov Substitution Principle (LSP)ImportantSpot subtypes that break caller expectations, like Square and Rectangle
5Interface Segregation Principle (ISP)ImportantSplit fat interfaces so each client depends only on what it uses
6Dependency Inversion Principle (DIP)Must-knowInvert a dependency so the domain code owns the interface

Design Patterns ​

#ChapterLevelStudy note
1Design Patterns: Origin, Why They Matter, the Three FamiliesMust-knowExplain the three GoF families and when a pattern hurts
2Creational Patterns: Singleton, Simple Factory, Factory Method, Abstract Factory, Builder, PrototypeMust-knowChoose Factory Method, Abstract Factory or Builder for a case
3Structural Patterns: Facade, Adapter, Composite, Proxy, Decorator, Bridge, FlyweightMust-knowTell Adapter, Decorator, Proxy and Facade apart by intent
4Behavioral Patterns: Template Method, Chain of Responsibility, State, Command, Observer, Strategy, Iterator, Mediator, Memento, VisitorMust-knowReplace conditionals with Strategy or State; wire Observer safely
5Applying Patterns in Real Systems: Selection, Combination & Anti-PatternsImportantCombine patterns in a real codebase and recognise pattern overuse

Key Design Issues ​

#ChapterLevelStudy note
1Designing for ConcurrencyImportantDesign shared state with immutability, confinement or locks deliberately
2Control Flow & Event Handling in DesignGood to knowCompare procedural, event-driven and callback-based control flow
3Data Persistence in Design: Repositories, Mapping & BoundariesImportantKeep persistence behind repositories and map rows to objects cleanly
4Distribution of Components: Local vs Remote, Latency & Failure as Design InputsImportantTreat latency and partial failure as inputs before splitting components
5Error & Exception Handling and Fault Tolerance in DesignMust-knowDecide where each layer catches, retries or fails fast
6Interaction & Presentation: MVC, MVP, MVVM and Data FlowImportantCompare MVC, MVP and MVVM data flow on one screen
7Security by DesignImportantApply least privilege and secure defaults at design time

Stage 3 — Architecture ​

Here you learn to decide and to write the decision down. Read Foundations first and do the capacity-estimation and SLO exercises on paper; then Architecture Styles, where microkernel, pipe-and-filter and big-data styles can be deferred; finish with Microservices in Practice, which stage 4 builds on directly. Write one ADR for a real system you know before moving on.

Foundations ​

#ChapterLevelStudy note
1What Software Architecture Is, Why It Exists, What an Architect DoesMust-knowExplain what an architect decides and what teams decide
2Kruchten's 4+1 View Model: Logical, Process, Development, Physical & ScenariosImportantDescribe one system in all five 4+1 views
3Architecture Decisions: Trade-offs, ADRs, Second-Order Effects, 'No Perfect Architecture'Must-knowWrite an ADR with options, trade-offs and second-order effects
4From Requirements to ArchitectureImportantDerive architecture drivers from requirements and quality attributes
5Back-of-the-Envelope Capacity Estimation: Traffic, Storage, BandwidthMust-knowEstimate QPS, storage and bandwidth on paper in minutes
6SLAs, SLOs, SLIs & Error BudgetsMust-knowDefine an SLI, set an SLO and spend the error budget

Architecture Styles ​

#ChapterLevelStudy note
1Architecture Styles vs Architecture PatternsImportantTell an architecture style from an architecture pattern with examples
2Layered Monolithic ArchitectureMust-knowExplain the layer rules and the architecture sinkhole anti-pattern
3Modular MonolithMust-knowEnforce module boundaries inside one deployable unit
4Microkernel / Plugin ArchitectureGood to knowDesign a stable core with plugins and a fixed extension contract
5Client-Server Architecture and Its VariantsImportantCompare thin, thick and multi-tier client-server variants
6Pipe-and-Filter ArchitectureGood to knowModel a processing chain as filters connected by pipes
7Service-Oriented Architecture (SOA)ImportantExplain what SOA got right and why the ESB failed
8Microservices ArchitectureMust-knowList what microservices buy and the operational tax they charge
9Big Data Architectures: 3Vs, Batch vs Stream, Lambda & KappaGood to knowCompare Lambda and Kappa and choose batch or stream

Microservices in Practice ​

#ChapterLevelStudy note
1Monolith vs Microservices vs Modular Monolith: DecidingMust-knowDefend monolith, modular monolith or microservices for a given team
2Service Boundaries: Teams, Conway's Law, the Distributed Monolith and the Hidden TaxMust-knowDraw boundaries with Conway's Law and spot a distributed monolith
3Service Communication: Sync vs Async, Contracts, Retries, IdempotencyMust-knowChoose sync or async per call and make retries idempotent
4API Gateway, Backend-for-Frontend & Service MeshMust-knowSplit gateway, BFF and mesh responsibilities without overlap
5Service Discovery: Client-Side vs Server-Side, DNS, Health ChecksImportantCompare client-side and server-side discovery with health checks
6Data Ownership in Microservices: Database per Service, Shared Database, Brownfield OptionsMust-knowExplain database per service and plan an exit from a shared database

Stage 4 — DDD & Microservices ​

DDD decides where the lines between services, schemas and events go. Read Strategic Design before Tactical Design; run a small Event Storming on a domain you know before the tactical chapters. Data & APIs in Microservices bridges into stages 5 and 6, so read it last.

Strategic Design ​

#ChapterLevelStudy note
1Why DDD: Business & Technical Perspectives of Microservices, Adoption, Business Model CanvasImportantArgue when DDD pays off and when it is overkill
2Domains, Subdomains (Core, Supporting, Generic) & Domain ExpertsMust-knowClassify subdomains as core, supporting or generic and invest accordingly
3Ubiquitous LanguageMust-knowBuild a glossary with domain experts and use it in code
4Bounded Context: Discovering and Drawing the LinesMust-knowDraw a context line where a word changes meaning
5Context Maps & Integration Patterns: Partnership, Shared Kernel, Customer-Supplier, Conformist, ACL, OHS/PL, Separate WaysImportantMap contexts and choose ACL, Conformist or Shared Kernel

Tactical Design ​

#ChapterLevelStudy note
1Entities & Value ObjectsMust-knowDecide identity versus value and make value objects immutable
2Aggregates & FactoriesMust-knowSize an aggregate around one invariant and one transaction
3Anemic vs Rich Domain ModelsImportantMove behaviour from services into the entities that own invariants
4RepositoriesMust-knowDefine one repository per aggregate with collection-like semantics
5Domain, Application & Infrastructure ServicesImportantPlace logic in domain, application or infrastructure services correctly
6Domain Events vs Integration EventsMust-knowSeparate in-process domain events from published integration events
7Event Storming: Elements, Preparing and Running the WorkshopImportantFacilitate an Event Storming session from events to aggregates

Data & APIs in Microservices ​

#ChapterLevelStudy note
1Data Patterns: Shared Database, Database per Service, CQS → CQRS, Read-Side ReplicationMust-knowMove from CQS to CQRS and replicate a read side
2Designing for Failure & Reliable Messaging in MicroservicesImportantCombine outbox, retries and idempotency for reliable service messaging
3API Realization: REST Resources & Constraints, API Management, GraphQL SchemasImportantExpose aggregates as REST resources or a GraphQL schema

Stage 5 — Databases ​

The largest stage and the one interviews probe deepest. Read Foundations (transactions and concurrency) and Indexing & Storage strictly in order, with two psql sessions open for every lab; then Design & Operations; then Partitioning, Sharding & Scale and Replication & Durability. In Engines & Products, read PostgreSQL, NoSQL families and Redis first; the other engines can wait until a project needs them.

Foundations ​

#ChapterLevelStudy note
1Database Internals: Pages, Heap, Tuples & I/OImportantExplain pages, heap tuples, ctid and why I/O is page-sized
2ACID & TransactionsMust-knowExplain each ACID letter and where the transaction boundary belongs
3Isolation Levels: Definitions, Anomalies & Real-World Use CasesMust-knowMap each anomaly to the isolation level that prevents it
4MVCC, VACUUM & Bloat in PostgreSQLMust-knowExplain tuple versions and VACUUM, then diagnose table bloat
5Locks & Concurrency ControlMust-knowRead pg_locks and choose between row and table lock modes
6Deadlocks: Detection & AvoidanceImportantRead a deadlock log and fix the lock ordering
7Optimistic vs Pessimistic LockingMust-knowImplement a version check and SELECT … FOR UPDATE; pick one

Indexing & Storage ​

#ChapterLevelStudy note
1Indexing: B-tree, Hash, GIN & GiSTMust-knowChoose B-tree, GIN or GiST and order composite index columns
2B-Tree vs B+Tree in Production DatabasesImportantExplain fan-out, page splits and why B+tree leaves are linked
3Storage Engines: B-tree vs LSM-treeImportantCompare write, read and space amplification in B-tree and LSM
4Query Planning, EXPLAIN & Join AlgorithmsMust-knowRead EXPLAIN ANALYZE and find the misestimated plan node
5Bloom Filters & Probabilistic StructuresGood to knowSize a Bloom filter and explain HyperLogLog's error bound
6Pagination: Offset vs KeysetMust-knowReplace OFFSET with keyset pagination on a stable sort order
7Cursors & Streaming ResultsImportantStream a large result set without loading it into memory
8Working with Billion-Row TablesImportantPlan index builds, backfills and VACUUM on billion-row tables

Partitioning, Sharding & Scale ​

#ChapterLevelStudy note
1Partitioning & Sharding in PostgreSQLMust-knowPick a partition key and confirm pruning in the plan
2Consistent HashingImportantExplain the ring, virtual nodes and why few keys move
3Storage & Data Scaling: The Scale LadderMust-knowClimb the scale ladder one measured step at a time
4Distributed SQL, Consensus & 2PCGood to knowExplain why 2PC blocks and how Raft-based SQL avoids it
5OLTP vs OLAP & Columnar StorageImportantExplain why columnar storage wins analytics but loses point writes

Replication & Durability ​

#ChapterLevelStudy note
1Replication, Read Replicas & FailoverMust-knowMeasure replica lag and plan a safe failover
2Durability, WAL & Crash RecoveryImportantExplain WAL, fsync and what crash recovery replays
3Backup, PITR & Disaster RecoveryImportantRestore to a point in time and state your RPO and RTO
4Eventual Consistency in Database SystemsImportantExplain read-your-writes, quorum reads and convergence in practice

Design & Operations ​

#ChapterLevelStudy note
1Database System Design: Requirements to Worked SketchesMust-knowGo from requirements to schema, indexes and a scale plan
2Schema Design, Normalization & Data TypesMust-knowNormalise to 3NF, denormalise on purpose and choose data types
3Zero-Downtime Schema MigrationsMust-knowShip expand-contract migrations without locking hot tables
4Connection PoolingMust-knowSize a pool and explain PgBouncer transaction-mode limits
5ORM Pitfalls: N+1, Lazy Loading & Bulk OperationsMust-knowDetect N+1 queries and fix them with eager loading
6Multi-Tenancy StrategiesImportantCompare shared schema, schema per tenant and database per tenant
7ID Generation at ScaleImportantChoose UUIDv7, Snowflake or sequences and explain index locality
8Database ObservabilityImportantFind top queries with pg_stat_statements and read wait events
9Database Security: Threat Model, Roles, RLS, Injection, AuditImportantApply least-privilege roles, row-level security and parameterised queries
10Encryption at Rest, in Transit & in Use (TDE, Column, Homomorphic)Good to knowTell TDE, column encryption and encryption in use apart

Engines & Products ​

#ChapterLevelStudy note
1PostgreSQL & Database FundamentalsMust-knowFind your way around psql, catalogs, roles and processes
2MySQL Storage Engines: InnoDB vs MyISAM (and the rest)ImportantExplain InnoDB's clustered index and why MyISAM lost
3SQLite in DepthGood to knowKnow when SQLite in WAL mode is enough for production
4NoSQL: Families & Data ModelsMust-knowMatch document, key-value, wide-column and graph stores to access patterns
5Redis: Data Structures, Commands & PatternsMust-knowPick the right Redis structure and set expiry and eviction
6MongoDB in DepthImportantModel embedded versus referenced documents and index them
7Wide-Column & Key-Value at Scale: Cassandra & DynamoDBGood to knowDesign a DynamoDB or Cassandra table from its queries
8Cassandra & ScyllaDB in DepthGood to knowChoose partition and clustering keys and tune consistency levels
9Graph DatabasesGood to knowKnow when a traversal query justifies a graph database
10Full-Text Search: PostgreSQL FTS vs ElasticsearchImportantDecide between PostgreSQL FTS and Elasticsearch for a feature
11Vector Search & pgvectorGood to knowBuild an HNSW index in pgvector and tune recall

Stage 6 — Messaging ​

Messaging is where "it worked in the demo" breaks in production. Read Fundamentals in order, then RabbitMQ and Kafka from Brokers, then Reliability Patterns (outbox, saga, DLQ, retries), which are the core of the stage. Routing & Consumers, Event-Driven & Streams and Operations follow; stream processing and system management patterns can be deferred.

Fundamentals ​

#ChapterLevelStudy note
1Messaging Fundamentals: Queues, Topics & AsyncMust-knowExplain queue versus topic and when async beats a direct call
2Integration Styles & Channels: File, Shared DB, RPC, MessagingImportantCompare file transfer, shared database, RPC and messaging integration
3Delivery Guarantees: At-Most, At-Least & Exactly-OnceMust-knowExplain why exactly-once means at-least-once plus idempotency
4Message AcknowledgmentMust-knowAck after the side effect and explain what redelivery does
5Ordering & PartitioningMust-knowKeep per-key order with partitions and know what breaks it
6Idempotent Consumers & the Inbox PatternMust-knowBuild an inbox table that deduplicates by message ID
7Message Design & Schema EvolutionImportantDesign envelopes and evolve schemas without breaking consumers
8Message Transformation: Translator, Enricher, Normalizer, Canonical ModelGood to knowUse translator, enricher and canonical model only when needed

Brokers ​

#ChapterLevelStudy note
1RabbitMQ in DepthMust-knowConfigure exchanges, bindings, prefetch and quorum queues
2Kafka in DepthMust-knowExplain partitions, consumer groups, offsets and acks=all
3Redis Streams & Pub/SubImportantUse consumer groups and XPENDING; know Pub/Sub drops messages
4Broker Comparison & Decision GuideMust-knowPick RabbitMQ, Kafka or Redis Streams for a given workload
5Other Brokers: NATS, Pulsar, SQS/SNS & Pub/SubGood to knowPlace NATS, Pulsar and SQS/SNS on the same decision map

Routing & Consumers ​

#ChapterLevelStudy note
1Routing Topologies: Fan-out, Topic & Content-BasedImportantRoute correctly with fan-out, topic and header exchanges
2Advanced Routing: Splitter, Aggregator, Resequencer, Scatter-Gather, Routing Slip, Process ManagerGood to knowUse splitter, aggregator and process manager for multi-step flows
3Consumer & Endpoint Patterns: Polling vs Event-Driven, Selective, Durable Subscriber, Transactional ClientImportantChoose polling or event-driven consumers and durable subscribers
4Competing Consumers & Scaling ConsumersMust-knowScale consumers without breaking order or flooding the database
5Request-Reply over Messaging & REST vs AMQPImportantImplement request-reply with correlation IDs; know when REST wins

Reliability Patterns ​

#ChapterLevelStudy note
1Transactional Outbox PatternMust-knowWrite the row and the event in one transaction
2Saga PatternMust-knowDesign a saga with compensations; choose orchestration or choreography
3Dead-Letter Queue (DLQ)Must-knowRoute poison messages to a DLQ and replay them safely
4Retry, Backoff & Delayed DeliveryMust-knowConfigure exponential backoff with jitter and delayed redelivery
5Durable Workflows & JobsImportantKnow when a workflow engine beats a hand-rolled job chain

Event-Driven & Streams ​

#ChapterLevelStudy note
1Event-Driven ArchitectureMust-knowWeigh event notification against event-carried state transfer
2Event Sourcing & CQRSImportantRebuild state from events and project a read model
3Change Data Capture (CDC)ImportantStream WAL changes with Debezium instead of dual writes
4Stream Processing: Windows, Watermarks & StateGood to knowExplain tumbling and sliding windows, watermarks and late events

Operations ​

#ChapterLevelStudy note
1Backpressure & Flow ControlImportantSlow producers down with prefetch limits and bounded queues
2Messaging Observability & TracingImportantTrace a message across services and alert on consumer lag
3System Management Patterns: Control Bus, Wire Tap, Detour, Message Store, Test MessageGood to knowUse wire tap, control bus and test messages in operations
4Laravel Queue InternalsImportantExplain Laravel's job lifecycle, retries, timeouts and afterCommit
5Testing Messaging SystemsImportantTest producers and consumers with contracts and a real broker
6Messaging SecurityGood to knowSecure brokers with TLS, per-service credentials and ACLs

Stage 7 — System Design ​

This stage turns everything before it into whole-system answers. Read Method first and use its 4-step approach for every case study; then Networking & Protocols, Traffic & Scale, Consistency & Distributed Data and Resilience in order. Distributed Systems Primitives and the Good-to-know security chapters can be deferred to a second pass. Practise each Case Study against a 45-minute timer before reading it.

Method ​

#ChapterLevelStudy note
1What System Design Is and How It EvolvedImportantExplain what interviewers grade in a system design round
2The 4-Step Approach: Scope, Estimate, High-Level Design, DecisionsMust-knowRun scope, estimate, high-level design and decisions in 45 minutes
3Latency Budgets, Geography & Tail Latency (p99)Must-knowSplit a latency budget and explain why p99 dominates fan-out

Networking & Protocols ​

#ChapterLevelStudy note
1The Client-Server ModelImportantDescribe request-response, statelessness and where state really lives
2IP, DNS, GeoDNS, TTL & DNS as a Routing WeaponMust-knowSteer traffic between regions with DNS TTLs and GeoDNS
3Forward vs Reverse ProxiesMust-knowTell forward from reverse proxies and place each one
4TCP & UDPMust-knowExplain the handshake, head-of-line blocking and when UDP wins
5HTTP/1.1, HTTP/2, HTTP/3, Keep-Alive & HTTPSMust-knowCompare HTTP/1.1, HTTP/2 multiplexing and QUIC in HTTP/3
6Real-Time Communication: Short/Long Polling, SSE, WebSockets, Scaling Connections, PresenceMust-knowChoose polling, SSE or WebSockets and scale persistent connections
7REST API Design: Constraints, Resources, Idempotency, VersioningMust-knowDesign resources, status codes, idempotent methods and versioning
8GraphQL: Schema, Resolvers, N+1, When It WinsImportantSolve resolver N+1 with DataLoader and know when GraphQL wins
9gRPC & Protocol Buffers; REST vs GraphQL vs gRPCImportantPick REST, GraphQL or gRPC for internal and public APIs
10API Versioning & EvolutionImportantEvolve an API additively and retire old versions safely
11Web Sessions, Cookies, Serialization & CORSMust-knowExplain cookie flags, session storage and a CORS preflight

Traffic & Scale ​

#ChapterLevelStudy note
1Scaling Strategies: Vertical, Horizontal, Diagonal, Stateless Design, AutoscalingMust-knowMake a service stateless and set sensible autoscaling triggers
2Load Balancing: Algorithms, L4 vs L7, DNS & Global, Health Checks, Affinity, TLS TerminationMust-knowChoose L4 or L7, an algorithm and health checks
3Rate Limiting: Token Bucket, Leaky Bucket, Windows, Distributed LimitsMust-knowImplement token bucket and sliding window; share limits across nodes
4CDNs: Push vs Pull, Static vs Dynamic, Video Streaming, Cache HierarchyMust-knowDecide push or pull CDN and set the right cache headers
5Caching: Levels, Cache-Aside, Read/Write-Through, Write-Behind, Invalidation, Stampedes, Eviction, Redis ClusteringMust-knowPick cache-aside or write-through, set invalidation and prevent stampedes
6Object Storage, Distributed File Systems, Presigned URLs & Content-Addressable StorageImportantUpload with presigned URLs and explain content-addressable storage
7Write Buffering, Batching, Coalescing, Sharded Counters & Data LocalityGood to knowAbsorb hot writes with batching and sharded counters

Consistency & Distributed Data ​

#ChapterLevelStudy note
1CAP Under a Real Partition, CP vs AP, PACELC & Tunable ConsistencyMust-knowSay what a CP or AP system does during a partition
2Consistency Models: Linearizability vs Serializability, Causal, Client-Centric, ConvergenceMust-knowDistinguish linearizability from serializability with one example each
3ACID vs BASEImportantContrast ACID and BASE guarantees without slogans
4Replication Topologies: Leader-Follower, Multi-Leader, Leaderless Quorums, Conflict Resolution, FederationMust-knowCompare conflicts in leader-follower, multi-leader and quorum replication
5Sharding at System Level: Partition Keys, Hot Partitions, Rebalancing, Cross-Shard QueriesMust-knowChoose a partition key and handle hot partitions and rebalancing
6Choosing a Database: Model the Queries, SQL vs NoSQL, Redis vs DynamoDB, Polyglot PersistenceMust-knowChoose a database by modelling the queries first

Resilience ​

#ChapterLevelStudy note
1Cascading Failures: How One Service Takes Down EverythingMust-knowTrace how one slow dependency exhausts every caller's threads
2Timeouts, Retries & JitterMust-knowSet timeouts from a budget and add capped, jittered retries
3Circuit BreakerMust-knowExplain closed, open and half-open states and their thresholds
4Bulkheads & Graceful DegradationImportantIsolate a pool per dependency and degrade features gracefully
5Load SheddingImportantReject low-priority work early to protect the core path
6API Idempotency: Keys, Storage, RetriesMust-knowImplement idempotency keys with storage, TTL and concurrent retries
7Distributed Locking: Redis, Redlock, Fencing Tokens, LeasesImportantExplain why a distributed lock needs fencing tokens and leases
8Leader Election: Exactly One Active NodeImportantElect one active node with leases and avoid split brain

Distributed Systems Primitives ​

#ChapterLevelStudy note
1Gossip Protocols, Convergence & Failure DetectionGood to knowExplain gossip convergence time and phi-accrual failure detection
2Vector Clocks, Lamport Clocks & Distributed CausalityGood to knowOrder events with Lamport and vector clocks; detect concurrent writes
3Merkle Trees, Read Repair, Anti-Entropy & TombstonesGood to knowExplain how Merkle trees find divergent replicas cheaply
4CRDTs: Conflict-Free Replicated Data TypesGood to knowExplain G-Counter and OR-Set merges and where CRDTs stop
5Geospatial Indexing: Geohash, Quadtree, R-TreeImportantChoose geohash, quadtree or R-tree for nearby search
6Top-K & Heavy HittersGood to knowCompute heavy hitters with Count-Min Sketch over time windows
7Strangler Fig: Safe System MigrationImportantPlan a strangler migration with routing and rollback

Security ​

#ChapterLevelStudy note
1Security Foundations: Why Systems Get Hacked, CIA Triad, Defense in Depth, STRIDEMust-knowThreat-model a feature with STRIDE and defense in depth
2Authentication: Passwords & Hashing, MFA, Sessions vs TokensMust-knowStore passwords, add MFA and choose sessions or tokens
3JWT Deep DiveMust-knowValidate a JWT fully and plan revocation and key rotation
4OAuth 2.0, OpenID Connect & Single Sign-OnMust-knowWalk the authorization-code flow with PKCE and OIDC tokens
5Authorization Models: RBAC, ABAC, ReBAC & Zero TrustImportantPick RBAC, ABAC or ReBAC and enforce it in one place
6Cryptography in Practice: Symmetric vs Asymmetric, TLS/HTTPS, PKI, Encryption at Rest, SecretsImportantExplain PKI trust chains and where secrets should live
7OWASP Top 10: Injection, XSS, CSRF and FriendsMust-knowPrevent injection, XSS and CSRF in your own stack
8DDoS Protection, Firewalls, VPCs & Network SegmentationImportantLayer DDoS protection, firewalls and VPC segmentation
9Mutual TLS & Securing Service-to-Service TrafficImportantIssue service certificates and enforce mTLS between services
10Secure SDLC, DevSecOps, Logging, Incident Response, Compliance & BreachesGood to knowPut security scans in CI and run an incident response

Observability & Operations ​

#ChapterLevelStudy note
1Observability: Logs, Metrics, Traces and the StackMust-knowCorrelate logs, metrics and traces for one failing request
2Alerting That Actually WorksImportantAlert on symptoms and SLO burn rate, not on causes
3Chaos Engineering & Game DaysGood to knowPlan a game day with a hypothesis and a blast radius
4Containers & Kubernetes: Fundamentals, Scaling, Self-Healing, Services & IngressMust-knowExplain Deployments, probes, HPA, Services and Ingress
5Service Mesh & the Sidecar PatternImportantExplain what a sidecar adds and what it costs
6Serverless & Event-Driven ComputeImportantKnow cold starts, limits and when functions beat containers
7Capacity Planning, Failure Scenarios & Disaster RecoveryImportantPlan capacity headroom and choose a DR tier from the RPO

Domain Systems ​

#ChapterLevelStudy note
1Payment Processing Architecture: Idempotency, Fraud Detection, PCIImportantDesign payments with an idempotent ledger, reconciliation and PCI scope
2Search Systems: Scoring, Elasticsearch, Typeahead, Personalization & ML RankingImportantDesign indexing, typeahead and ranking behind a search box
3ML Systems: Deployment Patterns, Feature Stores, Model Serving, Vector DatabasesGood to knowExplain feature stores, model serving and online versus batch inference
4Feeds: Fan-Out on Write vs Read, Fan-In AggregationMust-knowChoose fan-out on write or read and handle celebrity accounts

Case Studies ​

#ChapterLevelStudy note
1Case Study: Uber — Location, Driver Tracking, Matching, Pricing, Trip StorageImportantDesign driver location updates, matching and trip storage
2Case Study: NetflixImportantExplain Open Connect, microservices and resilience at Netflix
3Case Study: AmazonImportantExplain service ownership, cell architecture and checkout consistency
4Case Study: WhatsAppMust-knowDesign message delivery, receipts and offline queues end to end
5Case Study: X / TwitterMust-knowDesign the home timeline with hybrid fan-out
6Case Study: YouTube & Video StreamingImportantDesign upload, transcoding and adaptive streaming through CDNs
7Case Study: OpenAIGood to knowExplain GPU scheduling, streamed responses and rate limits for LLM APIs
8Case Study: LinkedInGood to knowExplain the social graph, Kafka's origin and feed ranking
9Case Study: DiscordGood to knowExplain guild fan-out and the move from Cassandra to ScyllaDB
10Case Study: Ticketing System (end-to-end 4-step walkthrough)Must-knowRun the whole 4-step method on seat reservation

Stage 8 — Go ​

Go is where you prove the earlier stages in code. Read Language Fundamentals and Types & Data quickly, then spend real time on Concurrency and Testing & Quality; HTTP & APIs and Data & Messaging in Go pair with stages 6–7. Type every lab instead of reading it, and finish with at least one chapter from Projects; reflect, html/template, GraphQL and MongoDB can be deferred.

Language Fundamentals ​

#ChapterLevelStudy note
1Toolchain, Modules & Packages: go run/build, go.mod, exports, init, mainMust-knowCreate a module, lay out packages and explain exports and init
2Values, Variables, Constants, iota Enums & Zero ValuesMust-knowUse zero values and iota enums on purpose
3Control Flow: if/else, switch, for, labels, break/continueMust-knowUse labelled break, switch without fallthrough and range loops
4Functions: Multiple Returns, Variadics, Closures, Recursion, Function TypesMust-knowReturn errors as values and avoid closure capture bugs
5Errors, Wrapping, Panic, Recover & DeferMust-knowWrap errors with %w, match with errors.Is, order defers
6Pointers & Memory Model BasicsMust-knowChoose value or pointer receivers and explain escape analysis

Types & Data ​

#ChapterLevelStudy note
1Arrays, Slices & Maps: make, append, capacity, aliasing, rangeMust-knowPredict append aliasing and slice capacity growth
2Structs, Methods, Constructors, Embedding & Struct TagsMust-knowUse embedding, constructors and struct tags the Go way
3Interfaces, Type Assertions, Type Switches & anyMust-knowDefine small consumer-side interfaces and explain the nil-interface trap
4Generics: Type Parameters, Constraints, Where They HelpImportantWrite a constrained generic helper only where it pays
5Strings, Runes, fmt Verbs, text/template & regexpImportantIterate runes correctly and format with fmt verbs and templates
6time.Time, Formatting/Parsing, Time Zones, Timers, math/rand & Number ParsingImportantParse times with layouts, handle zones and use monotonic clocks

I/O & Encoding ​

#ChapterLevelStudy note
1Files, Directories, Paths, Temp Files, bufio & embedImportantRead files with bufio and ship assets with embed
2The io Package: Readers, Writers, Pipes & CompositionMust-knowCompose Readers and Writers instead of loading whole payloads
3JSON, XML, Struct Tags, Encoder/Decoder, Base64Must-knowControl JSON with struct tags and stream it with Decoder
4Hashing & Crypto: SHA-256/512, bcrypt, Argon2, crypto/randImportantHash passwords with bcrypt or Argon2 and use crypto/rand
5CLI Flags, Subcommands, Environment Variables & Logging (log/slog)ImportantBuild a CLI with flags, env config and structured slog logs
6OS Processes, Signals & Graceful ShutdownImportantShut down gracefully on SIGTERM using context
7reflect: When and HowGood to knowRead struct tags with reflect and know when to avoid it

Concurrency ​

#ChapterLevelStudy note
1Goroutines & Channels: Unbuffered, Buffered, Directions, Closing, rangeMust-knowChoose buffered or unbuffered channels and close them correctly
2select: Multiplexing, Non-Blocking Ops, Timeouts, for-selectMust-knowCombine select with timeouts and done channels
3context: Cancellation, Deadlines, ValuesMust-knowPropagate cancellation and deadlines through every call
4sync & atomic: WaitGroup, Mutex, RWMutex, Cond, Once, Pool, Atomic CountersMust-knowChoose Mutex, RWMutex, Once or atomic for shared state
5Worker Pools, Pipelines, Fan-Out/Fan-In, errgroup, Bounded ConcurrencyMust-knowBuild a bounded worker pool and pipeline with errgroup
6Race Conditions, the Race Detector, Deadlocks, Concurrency vs ParallelismMust-knowFind races with -race; explain concurrency versus parallelism
7Rate Limiting in Go: Token Bucket, Fixed Window, Leaky Bucket, x/time/rateImportantLimit requests per client with x/time/rate

Testing & Quality ​

#ChapterLevelStudy note
1Testing & Benchmarking: Table-Driven Tests, Subtests, Coverage, httptestMust-knowWrite table-driven tests, httptest handler tests and benchmarks
2Mocking with Interfaces, Dependency Injection for Testability, testifyMust-knowInject dependencies through interfaces and fake them in tests
3Project Layout, golangci-lint, Makefile, Docker & Multi-Binary BuildsImportantLay out cmd and internal, lint, and build images

HTTP & APIs ​

#ChapterLevelStudy note
1net/http: Server, Client, 1.22 Routing, Path & Query ParamsMust-knowUse Go 1.22 routing patterns and always set client timeouts
2Middlewares: Chaining, Security Headers, CORS, Compression, Response Time, Rate Limiter, Logging, RecoverMust-knowChain middlewares for logging, recovery, CORS and rate limits
3A REST API in Go: Planning, CRUD, Validation, Repository Pattern, DI, Pagination, SwaggerMust-knowBuild a CRUD API with validation, a repository and pagination
4Authentication in Go: Argon2/bcrypt, Sessions, JWT, Middleware, CSRF, Sanitization, Password ResetMust-knowImplement JWT and session middleware with CSRF protection
5html/template: Layouts, Caching, Forms, Flash MessagesGood to knowRender layouts and flash messages with html/template
6HTTP/2, HTTPS, TLS & mTLS in Go; Benchmarking with wrk and h2loadImportantServe HTTPS and mTLS in Go and benchmark with h2load
7gRPC & Protobuf in Go: proto files, codegen, streaming, metadata, interceptors, TLS, validation, gRPC-gatewayImportantDefine protos, generate code and add interceptors
8GraphQL in Go with gqlgen: Schema, Resolvers, DI, TestingGood to knowBuild a gqlgen schema with resolvers and tests

Data & Messaging in Go ​

#ChapterLevelStudy note
1database/sql & pgx: Connections, Prepared Statements, Transactions, Repository PatternMust-knowRun transactions with pgx and always close rows
2MongoDB with Go: CRUD, Filters, Generics Helpers, RelationshipsGood to knowQuery MongoDB with filters and typed generic helpers
3Event-Driven Go: Watermill, RabbitMQ Emitters/Consumers, SQS, RPC between ServicesImportantPublish and consume RabbitMQ events with Watermill
4File Uploads, S3 & Serving from a CDNImportantStream uploads to S3 with presigned URLs, serve via CDN

Projects ​

#ChapterLevelStudy note
1Project: Broker, Auth, Logger & Mailer Microservices with REST, RPC, gRPC and RabbitMQImportantWire broker, auth, logger and mailer services together
2Project: E-Commerce API — Services, Handlers, Cart, Orders, SMTP, Events, SwaggerImportantBuild cart, orders, mail and events end to end
3Project: An MCP Server in Go (JSON-RPC, stdio, tools, inspector)Good to knowBuild an MCP server over stdio with JSON-RPC tools
4Project: RAG & LLM Apps in Go — Ollama, pgvector, Embeddings, Chunking, Retrieval, Vision, Prompt-Injection DefenseGood to knowBuild pgvector retrieval and defend against prompt injection

Stage 9 — Cheatsheets + interview drills ​

Cheatsheets are reference pages, not lessons: open each one only after the chapter it follows, keep it open while you do that chapter's lab, and use the SQL queries & indexes cheatsheet during every database lab. Interview drills run continuously from stage 1 through the interview hub.

Cheatsheets ​

#ChapterLevelStudy note
1PostgreSQL CheatsheetMust-knowUse after PostgreSQL & Database Fundamentals
2MySQL CheatsheetImportantUse after MySQL Storage Engines: InnoDB vs MyISAM (and the rest)
3SQLite CheatsheetGood to knowUse after SQLite in Depth
4Redis CheatsheetMust-knowUse after Redis: Data Structures, Commands & Patterns
5MongoDB CheatsheetImportantUse after MongoDB in Depth
6Cassandra & ScyllaDB CheatsheetGood to knowUse after Cassandra & ScyllaDB in Depth
7RabbitMQ CheatsheetMust-knowUse after RabbitMQ in Depth
8Kafka CheatsheetMust-knowUse after Kafka in Depth
9SQL Queries & Indexes CheatsheetMust-knowUse after Query Planning, EXPLAIN & Join Algorithms

Planned stages ​

Five sections were added on 2026-11-29 and are being written; their chapters show a Todo badge until done. Slot them in as follows once written.

StageSectionChaptersWhere it fits
8bPython & FastAPI19Parallel to stage 8 for Python developers; the Rooms & Bookings project is the Python twin of the Go REST project
10Platform25After stage 7; Linux, containers, Kubernetes and delivery for the systems you designed
11AI Engineering26After stages 5 and 8; builds on the Go RAG and MCP chapters and on vector search
12Product28Any time after stage 4; for leads, managers and anyone who writes PRDs or runs a team
13SEO & Digital Marketing24Independent; read with the networking and HTTP chapters of stages 1 and 7

Milestones: how you know you are senior ​

Each checkpoint is something you can do without the page open. If you cannot, reread the chapters on the right.

#You can…Taught by
1Tell "connection refused" from a timeout and debug a broken TLS chain inside a containerTroubleshooting playbook, TLS in practice, Docker networking
2Refactor a tangled class with SOLID and name the pattern you usedSOLID, Code smells, Behavioral patterns
3Write an ADR that defends monolith vs microservices with estimates and SLOsArchitecture decisions, Capacity estimation, Deciding
4Split a domain into bounded contexts and size its aggregatesBounded context, Context maps, Aggregates
5Explain an isolation anomaly and fix it with the right level or lockIsolation levels, Locks, Optimistic vs pessimistic
6Design a schema with partitioning and explain the index choice from EXPLAINSchema design, Indexing, Query planning, Partitioning
7Draw the outbox + idempotent consumer flow and name its failure modesOutbox, Idempotent consumer, Delivery guarantees, DLQ
8Keep a service up when a dependency slows downCascading failures, Timeouts & retries, Circuit breaker, API idempotency
9Run a 45-minute system design interview end to end4-step approach, Ticketing case study, Case Studies
10Ship a Go service with HTTP, context, pgx, tests and graceful shutdownnet/http, context, database/sql & pgx, Testing, Signals

Interview readiness. In the interview hub, filter by Must-know and answer a random 20 questions per section aloud; when you get at least 17 right in every section, then do the same with the Important filter, you are ready for senior interviews.

Weekly plan template ​

For a learner with 10 hours a week: 8 hours of new chapters and a fixed 2-hour review slot. Weeks come from the hour rule in The order divided by 8, rounded to half a week. Track A reads only the 135 Must-know chapters and the Must-know cheatsheets; Track B reads everything.

StagePathTrack A: weeks (chapters/week)Track B: weeks (chapters/week)Review slot (2 h)
1Foundations2 (5/wk)3 (6/wk)Redo the troubleshooting lab; re-answer last week's self-checks
2Software Design2.5 (6/wk)4 (7/wk)Hub: Foundations questions; refactor one class from work
3Architecture2.5 (5/wk)3 (7/wk)Hub: Design groups from two weeks ago; write one ADR
4DDD & Microservices1.5 (5/wk)2.5 (6/wk)Hub: Architecture questions; redraw a context map
5Databases3.5 (5/wk)6.5 (7/wk)Hub: DDD and earlier Database groups; redo one EXPLAIN lab
6Messaging2.5 (6/wk)4.5 (7/wk)Hub: Database groups from two weeks ago
7System Design6.5 (5/wk)10.5 (7/wk)One timed case study per week plus hub review
8Go4.5 (5/wk)7 (6/wk)Hub: Go groups from two weeks ago; rerun tests with -race
9Cheatsheets + interview drills0.5 (10/wk)0.5 (18/wk)Read alongside stages 5–6; whole-site hub review
Total2641.5

Track A takes about 26 weeks (≈ 6 months, 205 h of new material) and Track B about 41.5 weeks (≈ 9.5 months, 331 h). A 12-week Must-know sprint is possible only at about 19 hours a week (17 h of new chapters plus the 2 h review); at 10 h a week, plan for Track A.

Tracking ​

Each section overview page (Databases, System Design and the others) lists every chapter with its level, so you can see what is left in a group at a glance. The interview hub filters questions by level and section; use it for the weekly review and the final readiness check. Keep a personal log with one line per chapter: date finished, questions missed in the self-check, and the date of its two-week review.

Last updated:

Built by Morteza Negahi