Skip to content

Chapter 1: Shared Concepts

The company chapters in this book differ in their coding styles, culture rounds, and pet problems, but their system design rounds keep returning to the same foundations. Whether the prompt is Google’s recommendation system, Netflix’s streaming platform, OpenAI’s API, or NVIDIA’s GPU cluster, you will be asked how data is replicated and partitioned, how the system behaves when a node fails, how a model gets from training to serving, and how you would know when something has gone wrong. This chapter collects that shared material once, so the company chapters can build on it.

Concepts from other sections (6)

This section uses these ideas. Each has a short definition and a link to the section that explains it in full. Tap a dotted term in the text to preview it.

  • Feature store: a system that computes features once and serves them both online, for inference, and offline, for training. Read more: 1.2 Full-stack AI engineering
  • CAP theorem: during a network partition, a distributed store must choose between consistency and availability. Read more: 1.1 Distributed systems fundamentals
  • Quorum: a write acknowledged by WW nodes and a read from RR nodes, with W+R>NW + R > N guaranteeing overlap. Read more: 1.1 Distributed systems fundamentals
  • MLOps maturity: how much of the ML lifecycle, from training to monitoring and retraining, is automated. Read more: 1.3 ML infrastructure patterns
  • Point-in-time correctness: building each training example only from feature values that existed at the example’s timestamp. Read more: 1.2 Full-stack AI engineering
  • Model registry: a versioned store of model artifacts with their metadata, serving configuration, lifecycle stage, and lineage. Read more: 1.3 ML infrastructure patterns

The chapter moves from general to specific. It begins with the distributed systems concepts that underlie any large-scale design, then climbs the AI stack layer by layer from data to the user-facing application, and ends with the production ML infrastructure that automates training, promotion, monitoring, and retraining. Together these are the foundational skills for a full-stack engineer building and scaling AI systems.

Learning objectives

  • Reason about consistency, replication, partitioning, consensus, and failure in a system design conversation.
  • Describe every layer of an AI system, from data pipelines and feature stores to serving and monitoring.
  • Design production ML infrastructure: registries, promotion pipelines, distributed training, drift detection, and retraining.
  • Support design choices with reference latency numbers and cost arithmetic.

These sections assume you can read Python and are comfortable with basic data structures. Some familiarity with a deep learning framework helps for the ML sections; the Deep Learning chapter of AI Engineering covers the background. Read this chapter before the company chapters if you are preparing for several companies, since most of them assume it.