Lessons¶
Seven phases, in the order that builds on itself. Each lesson ends with check questions and a lab you run locally. Planned lessons are greyed out.
Phase 1 · Working like an engineer¶
The terminal and Unix basics
Files, processes, pipes, environment variables, and the shell habits notebooks hide from you.Git and collaborating
Commits, branches, merges, pull requests, code review; recovering from mistakes.How a program actually runs
Processes, memory, the stack and heap, files and sockets: what the OS does for your Python.Debugging and reading code
Reproduce, isolate, bisect; debuggers, logs, stack traces; reading unfamiliar codebases.Testing: unit, integration and mocking
pytest, test design, fakes vs mocks, testing code that has randomness or models in it.Writing maintainable code
Functions, modules, types, coupling; refactoring notebook code into a package.Data structures and Big-O in practice
Hash maps, trees, heaps, queues; reading complexity; what it means for data pipelines.
Files, processes, pipes, environment variables, and the shell habits notebooks hide from you.Git and collaborating
Commits, branches, merges, pull requests, code review; recovering from mistakes.How a program actually runs
Processes, memory, the stack and heap, files and sockets: what the OS does for your Python.Debugging and reading code
Reproduce, isolate, bisect; debuggers, logs, stack traces; reading unfamiliar codebases.Testing: unit, integration and mocking
pytest, test design, fakes vs mocks, testing code that has randomness or models in it.Writing maintainable code
Functions, modules, types, coupling; refactoring notebook code into a package.Data structures and Big-O in practice
Hash maps, trees, heaps, queues; reading complexity; what it means for data pipelines.
Phase 2 · The web and APIs¶
Networking, DNS and HTTP
What happens when you call an API: DNS, TCP, TLS, HTTP, status codes, timeouts.Designing and building APIs
REST, JSON, pagination, versioning, errors, idempotency; building one with FastAPI.Authentication and authorization
Sessions, tokens, API keys, OAuth at a glance; protecting an endpoint.
What happens when you call an API: DNS, TCP, TLS, HTTP, status codes, timeouts.Designing and building APIs
REST, JSON, pagination, versioning, errors, idempotency; building one with FastAPI.Authentication and authorization
Sessions, tokens, API keys, OAuth at a glance; protecting an endpoint.
Phase 3 · Data and state¶
SQL and relational modeling
Tables, keys, joins, normalization; SQL as a skill that beats pandas for many jobs.Indexes, query plans and transactions
Why queries are slow, EXPLAIN, ACID, isolation levels, race conditions on rows.Choosing a datastore
Relational, document, key-value, cache, object storage, vector database: when each fits.Storage engines: B-tree vs LSM
How databases lay data on disk and why reads and writes trade off.
Tables, keys, joins, normalization; SQL as a skill that beats pandas for many jobs.Indexes, query plans and transactions
Why queries are slow, EXPLAIN, ACID, isolation levels, race conditions on rows.Choosing a datastore
Relational, document, key-value, cache, object storage, vector database: when each fits.Storage engines: B-tree vs LSM
How databases lay data on disk and why reads and writes trade off.
Phase 4 · Concurrency and performance¶
Concurrency: threads, processes and async
Blocking I/O, the GIL, thread pools, asyncio, race conditions and locks.Latency, throughput and queueing
Percentiles, utilization, why busy servers slow down before they are full.Profiling and performance
Measure first: profilers, flame graphs, memory, batching, and when to stop optimizing.
Blocking I/O, the GIL, thread pools, asyncio, race conditions and locks.Latency, throughput and queueing
Percentiles, utilization, why busy servers slow down before they are full.Profiling and performance
Measure first: profilers, flame graphs, memory, batching, and when to stop optimizing.
Phase 5 · Shipping and operating¶
Containers and Docker
Images, layers, build cache and reproducible environments; containerizing a small Python API and operating it safely.CI/CD and release safety
Pipelines, automated checks, blue-green and canary releases, rollback.Config, secrets and cloud basics
Environments, secrets handling, IAM, compute/storage/network primitives, infrastructure as code.Observability and SLOs
Logs, metrics, traces; SLI, SLO, error budgets; alert fatigue.Security basics for builders
TLS, secrets, injection, least privilege, dependency risk; the OWASP slice that matters.
Images, layers, build cache and reproducible environments; containerizing a small Python API and operating it safely.CI/CD and release safety
Pipelines, automated checks, blue-green and canary releases, rollback.Config, secrets and cloud basics
Environments, secrets handling, IAM, compute/storage/network primitives, infrastructure as code.Observability and SLOs
Logs, metrics, traces; SLI, SLO, error budgets; alert fatigue.Security basics for builders
TLS, secrets, injection, least privilege, dependency risk; the OWASP slice that matters.
Phase 6 · Distributed systems¶
Scaling: up, out and stateless
Why one server stops being enough, what horizontal scaling requires, and where the bottleneck moves next.Load balancing
L4 vs L7, algorithms, health checks.Caching and CDNs
Cache-aside, write-through, invalidation, stampedes, and caching at the edge.Replication and consistency
Leaders, followers, lag, quorums, and why replication is not a backup.Partitioning and consistent hashing
Range vs hash vs directory, shard keys, hot spots, and the ring.Unique IDs and ordering
Auto-increment vs UUID vs time-sorted IDs (snowflake/ULID style), clocks, and why ordering across machines is hard.Queues, pub/sub and streams
When to go async, three shapes of messaging, delivery guarantees, DLQs.Delivery guarantees and idempotency
Exactly-once myths, idempotency keys, the outbox pattern.Rate limiting and load shedding
Token bucket, sliding window, per-user quotas, protecting a system (and a provider API) from overload.Timeouts, retries and circuit breakers
Retry storms, backoff with jitter, bulkheads.Microservices, gateways and service discovery
When to split a monolith, API gateways, service discovery, and the costs of distribution.Availability, failover and disaster recovery
Nines, failure domains, RTO/RPO, and the four DR strategies.Consensus and leader election
Raft intuition, why 2f+1, split brain.ZooKeeper: coordination from first principles
Znodes, quorum, sessions, watches and fencing, then eight use cases and ten production problems with solutions. Eleven hand-drawn diagrams and three interactive figures.Distributed transactions and sagas
2PC, sagas, compensation.Distributed systems: interview drills
11 topics from scaling to sagas, 64 questions with detailed answers, 23 hand-drawn diagrams, and 7 interactive figures (scalability curve, URL-hash caches, quorums, queue lag, retry storm, failover RPO/RTO, Raft).Sharding infrastructure drills
Seven deep dives: Cassandra LWT and Paxos, node failure in Cassandra versus CockroachDB, range versus hash hot spots, unbounded partitions, Vitess cutover, Redis failover oversell, top-k across shards. Three hand-drawn diagrams and four interactive figures.Figure style preview: hand-drawn vs 3D
The same six ideas drawn twice, as Excalidraw-style diagrams and as interactive 3D figures, with a comparison table.
Why one server stops being enough, what horizontal scaling requires, and where the bottleneck moves next.Load balancing
L4 vs L7, algorithms, health checks.Caching and CDNs
Cache-aside, write-through, invalidation, stampedes, and caching at the edge.Replication and consistency
Leaders, followers, lag, quorums, and why replication is not a backup.Partitioning and consistent hashing
Range vs hash vs directory, shard keys, hot spots, and the ring.Unique IDs and ordering
Auto-increment vs UUID vs time-sorted IDs (snowflake/ULID style), clocks, and why ordering across machines is hard.Queues, pub/sub and streams
When to go async, three shapes of messaging, delivery guarantees, DLQs.Delivery guarantees and idempotency
Exactly-once myths, idempotency keys, the outbox pattern.Rate limiting and load shedding
Token bucket, sliding window, per-user quotas, protecting a system (and a provider API) from overload.Timeouts, retries and circuit breakers
Retry storms, backoff with jitter, bulkheads.Microservices, gateways and service discovery
When to split a monolith, API gateways, service discovery, and the costs of distribution.Availability, failover and disaster recovery
Nines, failure domains, RTO/RPO, and the four DR strategies.Consensus and leader election
Raft intuition, why 2f+1, split brain.ZooKeeper: coordination from first principles
Znodes, quorum, sessions, watches and fencing, then eight use cases and ten production problems with solutions. Eleven hand-drawn diagrams and three interactive figures.Distributed transactions and sagas
2PC, sagas, compensation.Distributed systems: interview drills
11 topics from scaling to sagas, 64 questions with detailed answers, 23 hand-drawn diagrams, and 7 interactive figures (scalability curve, URL-hash caches, quorums, queue lag, retry storm, failover RPO/RTO, Raft).Sharding infrastructure drills
Seven deep dives: Cassandra LWT and Paxos, node failure in Cassandra versus CockroachDB, range versus hash hot spots, unbounded partitions, Vitess cutover, Redis failover oversell, top-k across shards. Three hand-drawn diagrams and four interactive figures.Figure style preview: hand-drawn vs 3D
The same six ideas drawn twice, as Excalidraw-style diagrams and as interactive 3D figures, with a comparison table.
Phase 7 · Designing AI systems¶
Data and ML pipelines
Batch vs stream, lakes and lakehouses, training pipelines, feature consistency.Serving models and LLMs
Latency budgets, batching, GPUs, streaming responses, autoscaling inference.Designing a RAG system
Ingestion, chunking, vector search, freshness, access control, failure modes.LLM apps: reliability, cost and rate limits
Timeouts, retries, fallbacks, caching, token budgets, provider outages.Evals as tests for AI systems
Regression suites for non-deterministic systems, offline vs online evaluation, CI for prompts and models.Agents and tool use as distributed systems
Idempotent tools, sandboxing, state, retries, observability of multi-step runs.Capstone: three design walkthroughs
Design and critique a RAG service, a model-serving platform and an event-driven pipeline end to end.
Batch vs stream, lakes and lakehouses, training pipelines, feature consistency.Serving models and LLMs
Latency budgets, batching, GPUs, streaming responses, autoscaling inference.Designing a RAG system
Ingestion, chunking, vector search, freshness, access control, failure modes.LLM apps: reliability, cost and rate limits
Timeouts, retries, fallbacks, caching, token budgets, provider outages.Evals as tests for AI systems
Regression suites for non-deterministic systems, offline vs online evaluation, CI for prompts and models.Agents and tool use as distributed systems
Idempotent tools, sandboxing, state, retries, observability of multi-step runs.Capstone: three design walkthroughs
Design and critique a RAG service, a model-serving platform and an event-driven pipeline end to end.