Course map

Part 01

Foundations of Computer and Software Systems

Explain how a program uses CPU, memory, storage and threads.

Prerequisites Before you start
Part context

These are supporting foundations, not system design topics in themselves.

Reading track

1.1 Programming, Data Structures, and Complexity

Chapter outcomes and context

Topics covered: 1 Programming fundamentals (Core) · 2 Data structures and algorithms: hash maps, trees, tries, heaps, queues (Core) · 3 Time and space complexity (Core)

Learning outcomes

  • Implement and choose among arrays, hash maps, trees, tries, heaps, and queues.
  • Analyze time and space complexity with Big-O and explain why it matters at scale: an O(n²) operation on a hot path breaks under production load.
  • Recognize the structures underlying system components: hash maps → caches and indexes, trees → database indexes (→ 64), tries → autocomplete and routing tables, heaps → schedulers and priority queues, queues → messaging (→ 106).

Key concepts: hashing and collisions, binary search trees, balanced trees, heaps, amortized analysis, sorting and searching.

001Programming fundamentalsCore002Data structures and algorithms: hash maps, trees, tries, heaps, queuesCore003Time and space complexityCore

1.2 The Operating System and the Machine

Chapter outcomes and context

Topics covered: 4 Operating system fundamentals (Core) · 5 Processes and threads (Core) · 8 Memory management (Advanced) · 9 CPU, RAM, storage and I/O (Core)

Learning outcomes

  • Explain what the OS provides: process isolation, scheduling, virtual memory, file systems, networking.
  • Distinguish processes (isolated address spaces) from threads (shared memory within a process) and state the cost of a context switch.
  • Describe the memory hierarchy (CPU cache → RAM → SSD → network) and its latency gaps — the physical reason caching (→ 82) exists.
  • Distinguish blocking from non-blocking I/O and explain why most backend services are I/O-bound rather than CPU-bound.
  • (Advanced) Reason about virtual memory, paging, stack vs. heap, and garbage collection pauses as a source of tail latency (→ 100).

Key concepts: kernel vs. user space, system calls, scheduling, file descriptors, disk vs. memory access cost.

004Operating system fundamentalsCore005Processes and threadsCore008Memory managementAdvanced009CPU, RAM, storage and I/OCore

1.3 Concurrency and Thread Safety

Chapter outcomes and context

Topics covered: 6 Concurrency and parallelism (Core) · 7 Race conditions, deadlocks and thread safety (Core)

Learning outcomes

  • Distinguish concurrency (dealing with many things at once) from parallelism (doing many things at once).
  • Identify race conditions and fix them with mutual exclusion or atomic operations.
  • Explain the four deadlock conditions and the standard avoidance strategies (lock ordering, timeouts).
  • Compare threading models: thread-per-request, thread pools, event loops, async/await.

Key concepts: critical sections, mutexes, atomic operations, compare-and-swap, condition variables, deadlock vs. livelock vs. starvation.

Why this matters later: a single-node race condition and a distributed race condition are the same problem at different scales. Database concurrency control (→ 71) and distributed locks (→ 137) generalize everything in this chapter.

006Concurrency and parallelismCore007Race conditions, deadlocks and thread safetyCore

1.4 Client–Server Architecture

Chapter outcomes and context

Topics covered: 10 Client–server architecture (Core)

Learning outcomes

  • Describe the request/response model and the full lifecycle of a client request.
  • Explain what a server is at the socket level: listen, accept, handle — and how the threading models of Chapter 1.3 apply to handling many connections.
  • Trace an end-to-end flow: client → network → server process → storage → response.

Key concepts: clients, servers, sockets, ports, statelessness (introduced here, formalized → 91), two-tier and three-tier architecture.

010Client–server architectureCore

Done when you can

  • Explain why a hash index gives O(1) lookups and what that costs in memory.
  • Explain, at the OS level, what happens when a server handles 10,000 concurrent connections.
  • Find and fix a race condition in multi-threaded code.
  • Diagram the full path of a request from client to database and back.
Open revision sheet and self-quiz

Search the guide