Notes / tag / book

#book

2130 notes across 28 topics

1. Tool Calling Architecture

Covers the mechanics of function/tool calling in modern LLM APIs -- schema definition, the model's structured-call output, execution, and result injection back into the conversation -- as the foundational primitive every agent framework builds on.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

2. APIs as Tools

Covers wrapping arbitrary external APIs as agent tools -- authentication handling, request/response schema translation, and error surfacing patterns so API failures degrade gracefully instead of confusing the agent's reasoning.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

3. REST & GraphQL Integration

Covers integrating REST and GraphQL services as agent tools specifically, including schema introspection for GraphQL, pagination handling, and rate-limit-aware retry design distinct from generic API wrapping.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

4. Database Tools

Covers giving an agent direct database access as a tool -- text-to-SQL generation, read-only scoping, query validation before execution, and the injection-attack surface unique to letting an LLM generate queries against production data.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

5. Search Tools

Covers search as an agent tool -- web search APIs, retrieval-augmented search over internal corpora, and result-ranking/summarization strategies that keep search results from overwhelming the agent's context budget.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

6. Browser Automation

Covers browser automation as an agent tool -- headless browser control, DOM parsing and accessibility-tree extraction for the agent to reason over, and the reliability challenges of dynamic, JavaScript-heavy pages.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

7. Computer Use Agents

Covers computer-use agents that operate a full desktop GUI via screenshots and coordinate-based actions rather than structured APIs, and the accuracy, latency, and safety tradeoffs versus API-based or browser-DOM-based tool access.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

8. Code Execution

Covers sandboxed code execution as an agent tool -- isolation boundaries, resource limits, and output capture -- for tasks better solved by generating and running code than by reasoning about the answer directly.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

9. Model Context Protocol (MCP)

Covers the Model Context Protocol as a standardized interface between agents and external tools/data sources, why it emerged to replace bespoke per-framework tool integrations, and its client-server architecture for tool discovery and invocation.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

10. Tool Discovery

Covers how agents discover which tools are available and applicable at runtime -- static registration versus dynamic discovery, tool metadata/schema design, and scaling tool catalogs beyond what fits in a single prompt.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

11. Tool Selection Strategies

Covers strategies for selecting the right tool among many candidates -- embedding-based tool retrieval, hierarchical tool routing, and the accuracy degradation observed as the number of available tools grows past what a single LLM call can reliably discriminate.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

12. Tool Security

Covers the security model for agent tool use -- least-privilege scoping, output sanitization against prompt injection carried in tool results, approval gates for destructive actions, and audit logging for what an agent actually executed.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

13. Agents in CI/CD & SDLC Workflows

Covers how coding agents establish execution context, get scoped to a single repository and branch, get triggered by CI/SDLC events, and act autonomously via branch/PR creation while merge stays gated -- using GitHub Copilot's coding agent as the reference implementation.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

14. Safe Execution Paths & Error Handling

Covers the error-handling taxonomy, retry design, rollback mechanics, escalation paths, and traceability record that let an agent operate safely when a tool call fails -- grounded in GitHub Copilot coding agent's CI-driven retry loop and git-native audit trail.

agentic-ai-engineering tools-and-environment-interaction book
Aug 8, 2026

1. What is Agentic AI?

What makes a system 'agentic' rather than a chatbot or a script, the recurring design patterns, real-world use cases, and the engineering mindset this book assumes.

agentic-ai-engineering introduction-to-agentic-ai book
Jul 25, 2026

2. Agent vs Workflow vs Automation

Draws the architectural line between a fixed automation script, a deterministic workflow or DAG, and a true agent with dynamic control flow — the distinction interviewers probe first when evaluating whether agent is the right word.

agentic-ai-engineering introduction-to-agentic-ai book
Jul 25, 2026

3. Characteristics of Intelligent Agents

Defines the properties that qualify a system as agentic — autonomy, goal-directedness, environment perception, and adaptive planning — as a checklist for distinguishing genuine agentic behavior from a chatbot with extra steps.

agentic-ai-engineering introduction-to-agentic-ai book
Jul 25, 2026

4. Agent Lifecycle

Covers an agent's full lifecycle from initialization and context loading through the perceive-plan-act-reflect loop to termination or handoff, and where state must persist versus reset between invocations.

agentic-ai-engineering introduction-to-agentic-ai book
Jul 25, 2026

5. Agent Taxonomy

Classifies agent architectures — reactive, deliberative, hybrid, and multi-agent — and maps each classification to the production use cases and reliability tradeoffs it's best suited for.

agentic-ai-engineering introduction-to-agentic-ai book
Jul 25, 2026

6. Agent Design Principles

When a deterministic system beats an agentic one, how to choose and scope tools, prompt engineering, error handling, guardrails, and security considerations that apply before any code is written.

agentic-ai-engineering introduction-to-agentic-ai book
Jul 25, 2026

7. When NOT to Build an Agent

Covers the decision criteria for rejecting an agentic architecture in favor of a simpler deterministic pipeline — bounded task scope, latency and cost sensitivity, and auditability requirements that agents make harder to satisfy.

agentic-ai-engineering introduction-to-agentic-ai book
Jul 25, 2026

8. AI Agent Use Cases

Surveys production-proven agent use cases — customer support triage, code review, incident investigation, and research synthesis — with the common architectural shape each one shares underneath the domain-specific framing.

agentic-ai-engineering introduction-to-agentic-ai book
Jul 25, 2026

9. Enterprise Adoption Patterns

Covers how enterprises roll out agentic systems safely — human-in-the-loop gating, phased autonomy levels, audit logging, and the org-level governance structures that precede a full-autonomy deployment.

agentic-ai-engineering introduction-to-agentic-ai book
Jul 25, 2026

1. Perception

Covers how an agent ingests and represents its environment — structured tool outputs, unstructured text, multimodal inputs — and the encoding choices that determine what the planning stage can reason over.

agentic-ai-engineering agent-cognition book
Jul 25, 2026

2. Decision Making

Covers the decision-making layer that selects the next action from the perceived state — utility scoring, rule-based gating, and LLM-driven choice — and how confidence and risk thresholds shape when an agent should act versus escalate.

agentic-ai-engineering agent-cognition book
Jul 25, 2026

3. Planning

Covers agent planning strategies — task decomposition, hierarchical planning, and plan-and-execute versus ReAct-style interleaved planning — and the tradeoffs between upfront planning cost and adaptive replanning.

agentic-ai-engineering agent-cognition book
Jul 25, 2026

4. Reasoning

Covers the reasoning strategies an agent applies mid-execution — chain-of-thought, tree-of-thought, and tool-augmented reasoning — and how reasoning depth trades off against latency and token cost in a production loop.

agentic-ai-engineering agent-cognition book
Jul 25, 2026

5. Reflection

Covers self-evaluation loops where an agent critiques its own intermediate output before acting on it, the prompting patterns that implement reflection, and the measurable quality gains versus the added round-trip cost.

agentic-ai-engineering agent-cognition book
Jul 25, 2026

6. Self-Correction

Covers how an agent detects and repairs its own errors mid-task — retry-with-feedback loops, validator-driven correction, and the failure boundary where self-correction should hand off to a human instead of looping indefinitely.

agentic-ai-engineering agent-cognition book
Jul 25, 2026

7. Learning Loops

Covers how agents improve across invocations without full retraining — memory-based few-shot adaptation, prompt or policy updates from feedback signals, and the online-eval loop that turns production traces into improvement signal.

agentic-ai-engineering agent-cognition book
Jul 25, 2026

8. Agent State Machines

Covers modeling an agent's execution as an explicit state machine — states, transitions, and guards — as the pattern that makes agent behavior debuggable, testable, and resumable compared to an implicit prompt-driven loop.

agentic-ai-engineering agent-cognition book
Jul 25, 2026

9. Goal-Oriented Behavior

Covers how an agent maintains and decomposes a top-level goal across multi-step execution, tracks partial progress, and resolves conflicts between sub-goals without losing sight of the original objective.

agentic-ai-engineering agent-cognition book
Jul 25, 2026

10. Autonomous Execution

Covers the execution layer that carries a planned action through to completion without human intervention — action validation, rollback and compensation on failure, and the autonomy-level gating that determines how much an agent is trusted to do unsupervised.

agentic-ai-engineering agent-cognition book
Jul 25, 2026

1. Why Agents Need Memory

Frames the stateless-by-default nature of LLM inference and why an agent operating across multiple tool calls, sessions, or users needs an explicit memory subsystem rather than relying on the context window alone.

agentic-ai-engineering memory-systems book

2. Context Windows

Covers context window mechanics -- token budgets, attention cost scaling, and the tradeoffs between stuffing history into the prompt versus offloading it to external memory as conversations grow beyond a model's context limit.

agentic-ai-engineering memory-systems book

3. Working Memory

Covers the agent's working memory -- the mutable scratchpad of current task state, intermediate reasoning, and tool outputs that lives only for the duration of a single execution loop.

agentic-ai-engineering memory-systems book

4. Short-Term Memory

Covers short-term memory as bounded, session-scoped conversation history -- sliding windows, summarization-on-overflow, and the tradeoffs of truncation versus compression when a session outlives the context budget.

agentic-ai-engineering memory-systems book

5. Long-Term Memory

Covers persistent long-term memory that survives across sessions and restarts -- durable storage backends, write/consolidation policies, and how an agent decides what's worth remembering permanently versus discarding.

agentic-ai-engineering memory-systems book

6. Semantic Memory

Covers semantic memory as structured factual and conceptual knowledge decoupled from any specific conversation, and how agents store and query general world/domain knowledge distinct from episodic event history.

agentic-ai-engineering memory-systems book

7. Episodic Memory

Covers episodic memory as a log of specific past events and interactions -- what happened, when, and in what context -- and how agents use it for recall of prior incidents, user preferences, and precedent-based reasoning.

agentic-ai-engineering memory-systems book

8. Memory Storage Architectures

Compares the storage architectures underpinning agent memory -- relational stores, key-value stores, document stores, and hybrid designs -- and the read/write access patterns that should drive the choice for a given memory type.

agentic-ai-engineering memory-systems book

9. Vector Databases

Covers vector database fundamentals for agent memory -- embedding generation, ANN indexing such as HNSW and IVF, similarity metrics, and the recall/latency/cost tradeoffs relevant to a MAANG-level system design conversation.

agentic-ai-engineering memory-systems book

10. Knowledge Graphs

Covers knowledge graphs as a structured alternative to vector similarity search -- entity-relationship modeling, graph traversal for multi-hop reasoning, and when graph-based retrieval outperforms embedding-based retrieval for agent memory.

agentic-ai-engineering memory-systems book

11. Memory Retrieval

Covers retrieval strategies for pulling relevant memory back into an agent's context -- similarity search, recency/relevance/importance scoring, hybrid retrieval, and re-ranking before injection into the prompt.

agentic-ai-engineering memory-systems book

12. Memory Compression

Covers techniques for compressing accumulated memory before it consumes context budget -- summarization hierarchies, reflection-based consolidation, and lossy versus lossless tradeoffs as an agent's history grows unbounded.

agentic-ai-engineering memory-systems book

13. Memory Versioning

Covers versioning and conflict resolution for agent memory that changes over time -- handling contradictory updates, temporal validity windows, and rollback when a memory write turns out to be wrong.

agentic-ai-engineering memory-systems book

1. Chain of Thought

Covers Chain-of-Thought prompting -- eliciting intermediate reasoning steps before a final answer -- why it improves multi-step task performance, and its limits on tasks requiring backtracking or exploration.

agentic-ai-engineering planning-and-reasoning-algorithms book

2. ReAct

Covers the ReAct pattern -- interleaving reasoning traces with tool-invoking actions in a single loop -- and why it became the default architecture for tool-using agents over pure chain-of-thought or plan-then-execute approaches.

agentic-ai-engineering planning-and-reasoning-algorithms book

3. Self-Consistency

Covers self-consistency decoding -- sampling multiple independent reasoning paths and taking a majority vote over final answers -- as a test-time technique for improving reliability without additional training.

agentic-ai-engineering planning-and-reasoning-algorithms book

4. Tree of Thoughts

Covers Tree-of-Thoughts search -- exploring multiple reasoning branches with lookahead and backtracking -- and when the added inference cost is justified over a single linear chain-of-thought pass.

agentic-ai-engineering planning-and-reasoning-algorithms book

5. Graph of Thoughts

Covers Graph-of-Thoughts reasoning, where intermediate thoughts can merge, refine, and feed back into each other as a DAG rather than a tree, and the problem classes where this generalization pays off over Tree-of-Thoughts.

agentic-ai-engineering planning-and-reasoning-algorithms book

6. Reflexion

Covers the Reflexion pattern -- an agent critiquing its own failed attempt in natural language and feeding that self-reflection back into the next attempt -- as a lightweight alternative to gradient-based learning from mistakes.

agentic-ai-engineering planning-and-reasoning-algorithms book

7. Plan-and-Execute

Covers Plan-and-Execute as a reasoning strategy -- front-loading a full plan in one reasoning pass before any tool result exists, versus ReAct's step-by-step interleaving of reasoning and observation -- and the stale-plan failure mode that ordering creates.

agentic-ai-engineering planning-and-reasoning-algorithms book

8. Program-Aided Language Models

Covers Program-Aided Language Models (PAL) -- offloading deterministic computation to generated code executed by an interpreter instead of having the LLM compute the answer directly -- and why this eliminates a specific class of arithmetic and logic errors.

agentic-ai-engineering planning-and-reasoning-algorithms book

9. LLM Compiler

Covers the LLM Compiler pattern -- planning a DAG of tool calls upfront and executing independent branches in parallel -- and the latency and cost wins over sequential ReAct-style execution for tasks with parallelizable sub-steps.

agentic-ai-engineering planning-and-reasoning-algorithms book

10. Debate & Critic Agents

Covers multi-agent debate and critic architectures, where separate agent roles argue opposing positions or critique a proposer's output, and the evidence for when this improves answer quality over single-agent self-reflection.

agentic-ai-engineering planning-and-reasoning-algorithms book

11. Hierarchical Planning

Covers hierarchical planning -- decomposing a goal into subgoals handled by higher- and lower-level planners at different abstraction levels -- and how this scales agent reasoning to long-horizon tasks that flat planning approaches struggle with.

agentic-ai-engineering planning-and-reasoning-algorithms book

1. Retrieval-Augmented Generation (RAG)

Covers the core RAG pipeline of indexing, retrieval, and generation, and why retrieval quality bounds answer quality regardless of how large the LLM's context window is.

agentic-ai-engineering retrieval-and-knowledge-systems book

2. Embeddings

Explains how embedding models turn text into dense vectors and the dimensionality, cost, and quality tradeoffs an architect weighs when picking a commercial versus open-source embedding model.

agentic-ai-engineering retrieval-and-knowledge-systems book

3. Chunking Strategies

Compares fixed-size, recursive, and semantic chunking strategies and how chunk boundary choices determine whether retrieved passages preserve the meaning needed to answer a query.

agentic-ai-engineering retrieval-and-knowledge-systems book

4. Vector Search

Covers the approximate nearest neighbor algorithms (HNSW, IVF) behind vector databases and the recall, latency, and memory tradeoffs involved in choosing an index type at scale.

agentic-ai-engineering retrieval-and-knowledge-systems book

5. Hybrid Search

Explains why combining dense vector similarity with sparse keyword search (BM25) outperforms either alone, and how to fuse and weight the two result sets.

agentic-ai-engineering retrieval-and-knowledge-systems book

6. Reranking

Covers cross-encoder reranking models that reorder an initial retrieval candidate set for precision, and when the added latency cost is justified in a production pipeline.

agentic-ai-engineering retrieval-and-knowledge-systems book

8. Agentic RAG

Covers RAG architectures where an agent decides when and what to retrieve, iteratively refining queries and evaluating retrieved evidence rather than retrieving once up front.

agentic-ai-engineering retrieval-and-knowledge-systems book

9. GraphRAG

Explains how knowledge-graph-structured retrieval captures entity relationships and multi-hop reasoning that pure vector similarity search misses.

agentic-ai-engineering retrieval-and-knowledge-systems book

10. Multi-Stage Retrieval

Covers pipelines that chain coarse-to-fine retrieval stages, from candidate generation through filtering to reranking, to balance recall and precision at scale.

agentic-ai-engineering retrieval-and-knowledge-systems book

1. Context Assembly

How the final prompt an agent actually sends gets built from disparate sources — system instructions, retrieved chunks, memory, tool schemas, and conversation history — and why where a piece sits changes how much the model attends to it.

agentic-ai-engineering context-engineering book

2. Context Ranking

Covers scoring and ordering already-selected context fragments -- retrieved chunks, memory items, tool output, and prior turns -- by semantic similarity, recency, source authority, and prior usefulness before they compete for a fixed token budget, and the near-duplicate crowding failure mode that ranking by similarity alone produces.

agentic-ai-engineering context-engineering book

3. Memory Selection

The policy layer between memory retrieval and context assembly -- deciding which of the memories retrieval surfaced are actually worth spending tokens on for this specific turn, and why over-including memory is its own failure mode, not just a cost line item.

agentic-ai-engineering context-engineering book

4. Prompt Budgets

Allocating a fixed token budget across system prompt, tool schemas, conversation history, retrieved context, and memory -- concrete allocation math, what happens when the budget is exceeded, and why percentage-based budgets break the moment you swap context-window sizes.

agentic-ai-engineering context-engineering book

5. Retrieval Policies

The decision layer that sits in front of Part 05's retrieval mechanics — whether to retrieve at all, how much to pull for a given query, and from which knowledge source, what over- and under-retrieving each cost you, and how Agentic RAG relocates the whole policy into the model's own reasoning loop.

agentic-ai-engineering context-engineering book

6. Context Compression

Summarization, extractive pruning, and structured compression for fitting more signal into less context — and the risk every one of them shares: silently dropping the one detail the model actually needed this turn.

agentic-ai-engineering context-engineering book

7. Prompt Compilers

Covers the emerging, deliberately-not-yet-standardized idea of treating context assembly as a compilation step -- a declarative spec of what a turn needs compiled through a coherent pass of ranking, budgeting, and compression -- instead of hand-assembled string concatenation that degrades as context sources multiply.

agentic-ai-engineering context-engineering book

Agentic AI Engineering

A book-shaped table of contents for Agentic AI Engineering: where 'LLM application' becomes 'agent' — introduction to agentic AI, agent cognition, memory systems, planning & reasoning algorithms, tools & environment interaction, retrieval & knowledge systems, and context engineering. Book 2 of the AI Systems Engineering series.

agentic-ai-engineering book reference maang-prep

# Building Agentic Systems

All Building Agentic Systems notes →

1. Why Multi-Agent Systems

Covers the concrete failure modes of single-agent systems, such as context overload, tool sprawl, and conflicting objectives, that motivate splitting work across multiple specialized agents.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

2. Collaboration Models

Splitting one investigation agent into metrics, logs, and traces specialists — tool isolation and prompt specialization as the design levers that make each one reliable.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

3. Communication Protocols

Agent-to-agent protocols, shared memory, message passing, coordination patterns, and how a multi-agent system recovers when one agent in the chain fails.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

4. Task Decomposition

Covers strategies for breaking a complex goal into subtasks that can be assigned to different agents, and how decomposition granularity affects coordination overhead.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

5. Agent Negotiation

Covers how agents with different objectives or partial information reach agreement on a shared action, including bidding and argumentation-based negotiation protocols.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

6. Consensus Mechanisms

Covers how multi-agent systems reach agreement on a single output or decision when individual agents disagree, drawing on voting, quorum, and distributed-consensus analogies.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

7. Swarm Intelligence

Covers decentralized multi-agent patterns where global behavior emerges from simple local rules rather than centralized planning, and where that tradeoff pays off for agentic systems.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

8. Distributed Coordination

Covers coordinating agent state and actions across distributed processes, including the partial failure, message loss, and race condition modes borrowed from distributed systems theory.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

9. Supervisor Architectures

A supervisor agent that delegates to the specialist agents, aggregates their results, resolves conflicting conclusions, and generates the final incident report.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

10. Agent Meshes

Covers service-mesh-inspired architectures for agent-to-agent discovery, routing, and observability at the scale of dozens of interacting agents.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

11. Agent Lifecycle Management

Covers how agents are added to, updated or reconfigured within, and retired from an already-running multi-agent workflow -- versioning agent definitions, draining vs. hard-cutting over in-flight runs, and preserving auditability without breaking workflow continuity, using GitHub Copilot's custom agent files as the reference implementation.

building-agentic-systems multi-agent-systems book
Aug 8, 2026

1. Agent Architecture

Covers: LLM, Tools, Memory, Planning, Execution Loop

building-agentic-systems building-single-agent-systems book
Jun 21, 2026

2. Planner–Executor Pattern

How to wire a planner role and an executor role as two distinct LLM-call shapes inside a single agent process, and when that in-process split stops being the right call.

building-agentic-systems building-single-agent-systems book

3. Router Pattern

Shows what the router pattern looks like wired into a single agent process -- one classification call that picks a specialized system prompt and tool set, with no sub-agent spawned and no service boundary crossed.

building-agentic-systems building-single-agent-systems book

4. Workflow Agents

Covers agents that follow a predefined, deterministic sequence of steps rather than freely choosing their own next action, and when that constraint is the right engineering tradeoff.

building-agentic-systems building-single-agent-systems book

5. Autonomous Agents

Covers agents that independently decide their own sequence of actions toward a goal, including the loop-control and stopping-condition problems that make them harder to bound than workflow agents.

building-agentic-systems building-single-agent-systems book

6. Event-Driven Agents

Covers agents triggered by external events such as webhooks, message queues, or alerts rather than direct user prompts, and the design implications for statelessness and idempotency.

building-agentic-systems building-single-agent-systems book

7. Human-in-the-Loop Systems

Covers patterns for pausing an agent to request human input or confirmation mid-task, and how to design the handoff so the agent resumes with full context.

building-agentic-systems building-single-agent-systems book

8. Approval Workflows

Covers how to gate high-risk agent actions behind explicit human approval steps, including timeout handling and audit trail requirements.

building-agentic-systems building-single-agent-systems book

9. Production-Ready Agent Design

Covers the checklist that separates a demo agent from a production one: retries, timeouts, cost controls, observability hooks, and graceful degradation under failure.

building-agentic-systems building-single-agent-systems book

1. AI Evaluation Frameworks

The metrics that actually define a good agent -- task success rate, cost per successful task, groundedness, and tool-call correctness -- why generic LLM benchmarks don't transfer to agent evaluation, and the LLM-as-judge pattern's known failure modes.

building-agentic-systems evaluation book

2. Benchmarks

Building a standing benchmark suite that runs against every model or prompt change, isolating a provider-side regression from one you introduced with a pinned-model control, and the composition, staleness, and cadence tradeoffs that keep the suite discriminating over time.

building-agentic-systems evaluation book

3. Online Evaluation

Continuously scoring live production traffic — LLM-as-judge scoring applied to real conversations, implicit feedback signals as cheaper proxies, shadow-mode comparison, and the sampling strategy that makes any of this affordable at production scale.

building-agentic-systems evaluation book

4. Offline Evaluation

Running a held-out golden dataset through a candidate agent version before deploy as a CI regression gate — golden dataset construction and versioning, hard-threshold versus regression-from-baseline pass criteria, and the coverage limit that makes online evaluation a necessary complement, not a redundant check.

building-agentic-systems evaluation book

1. Evaluation Criteria

Covers the axes, including orchestration model, state management, observability, and ecosystem maturity, used to evaluate and compare agent frameworks before adopting one.

building-agentic-systems agent-frameworks book

2. OpenAI Agents SDK

Covers OpenAI's Agents SDK primitives, agents, handoffs, guardrails, and sessions, and where it fits versus building an orchestration layer from scratch.

building-agentic-systems agent-frameworks book

3. LangGraph

Covers LangGraph's graph-based state machine model for agent orchestration — nodes, edges, and conditional routing — and why that model, not a simple DAG, is what makes cycles, checkpointing, and human-in-the-loop interrupts first-class instead of bolted on.

building-agentic-systems agent-frameworks book

4. CrewAI

CrewAI's role-based multi-agent orchestration model — crews, tasks, and processes — and where its opinionated defaults help you ship fast versus where they become a ceiling on custom control flow.

building-agentic-systems agent-frameworks book

5. AutoGen

Covers Microsoft AutoGen's conversational multi-agent model — agents coordinate through group-chat message exchange and a speaker-selection policy instead of an explicit graph — and where that buys flexibility versus where it costs control.

building-agentic-systems agent-frameworks book

6. Semantic Kernel

Covers Microsoft Semantic Kernel's plugin-and-planner model for embedding agentic behavior into existing enterprise .NET and Python applications, rather than building a new agent-first service from scratch.

building-agentic-systems agent-frameworks book

7. Google ADK

Covers Google's Agent Development Kit — its workflow/dynamic-routing composition model, native tool-integration story, and the deployment path onto Vertex AI Agent Engine that is the actual site of vendor coupling, not the framework code itself.

building-agentic-systems agent-frameworks book

8. LlamaIndex Workflows

Covers LlamaIndex's event-driven Workflows abstraction — steps wired by typed events instead of an explicit graph — and why the framework's RAG-first origins make it the natural home for retrieval-heavy agents.

building-agentic-systems agent-frameworks book

9. Haystack Agents

Covers Haystack's pipeline-based approach to building agents on top of its retrieval and NLP component graph, aimed at production search and RAG use cases.

building-agentic-systems agent-frameworks book

10. Choosing the Right Framework

Covers a decision framework for picking among the agent frameworks surveyed in this part, based on team skillset, orchestration complexity, and production observability needs.

building-agentic-systems agent-frameworks book

Building & Evaluating Agents

A book-shaped table of contents for Building & Evaluating Agents: the architectural core of agent design — building single-agent systems, multi-agent systems, evaluation, and the agent framework landscape. Book 3 of the AI Systems Engineering series.

building-agentic-systems book reference maang-prep

# Production Agent Systems

All Production Agent Systems notes →

1. Guardrails

Input and output validation layers that constrain what an agent can say or do — schema-constrained outputs, content-safety classifiers on both directions, and where guardrail checks sit in the request path so they add acceptable latency without becoming a bypassable afterthought.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

2. Prompt Injection

Authentication, authorization, and secrets management for an agent, plus the genuinely agent-specific threat: prompt injection defense and data privacy in a tool-calling loop.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

3. Jailbreak Prevention

Defending against adversarial prompts designed to override system instructions — prompt-injection-resistant system prompt structuring, delimiter and instruction-hierarchy techniques, and red-teaming the agent against known jailbreak corpora before it ships.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

4. Sandboxing

Isolating code-execution and shell-access tools from the host and from each other — container and VM-level isolation, filesystem and network egress restrictions, and resource limits that stop a single tool call from taking down the runtime it shares with other tenants.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

5. Identity & Authentication

How an agent authenticates itself to downstream systems and how end users authenticate to the agent — service-to-service identity (mTLS, workload identity) versus delegated user identity (OAuth token pass-through) when the agent acts on a user's behalf.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

6. Authorization & Permissions

Scoping what actions an agent is allowed to take on a user's or tenant's behalf — least-privilege tool permissions, per-tool RBAC/ABAC policy, and the distinction between what the LLM is capable of requesting versus what the runtime will actually authorize.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

7. Secrets Management

Keeping API keys, database credentials, and provider tokens out of prompts and tool code — vault-backed secret injection at call time, rotation without redeploying the agent, and why a secret ever appearing in a logged prompt is a sev-1, not a nit.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

8. Human Approval Systems

Human-in-the-loop gates for high-stakes agent actions — designing the approval UI/API contract, timeout and escalation behavior when no human responds, and audit-trail requirements for what was approved and by whom.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

9. Compliance

Mapping agent behavior to regulatory obligations — data residency for prompts and logs, retention and deletion policy for conversation history, and the audit evidence a compliance review will actually ask for (GDPR, SOC 2, industry-specific rules).

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

10. AI Governance

Organizational policy for what agents are allowed to be built, what models they may use, and who signs off before an agent goes to production — model risk review, an internal registry of approved agents and tools, and escalation paths when a team wants an exception.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

11. Failure Recovery

How an agent detects and recovers from failure mid-task — partial-completion checkpointing, retry-with-backoff versus fail-fast policy per failure class, and distinguishing a transient provider error from a genuine task failure that needs human escalation.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

12. Rollback Strategies

Reverting a bad prompt, model, or tool-schema change quickly — versioned prompt and model artifacts as first-class deploy units, canary and shadow rollout patterns for agent changes, and the rollback trigger thresholds tied to online-evaluation regressions.

production-agent-systems reliability-security-and-governance book
Aug 8, 2026

1. Agent Runtime

The execution substrate that hosts an agent's reasoning loop — process model, container vs. serverless tradeoffs, cold-start latency, and how the runtime enforces max-iteration and timeout limits so a stuck agent doesn't run (and bill) forever.

production-agent-systems production-infrastructure book

2. Session Management

How an agent tracks conversation identity across turns and channels — session ID generation, TTL and idle-timeout policy, session affinity in a load-balanced fleet, and the handoff problem when a user resumes a stale session on a different agent instance.

production-agent-systems production-infrastructure book

3. State Persistence

Where agent state lives between turns and after a crash — durable stores for message history and working memory (Redis, Postgres, DynamoDB), write-ahead patterns for mid-tool-call failures, and the tradeoff between snapshotting full state vs. replaying an event log.

production-agent-systems production-infrastructure book

4. Event Streaming

Publishing agent lifecycle events (tool calls, state transitions, token usage) onto a stream like Kafka or Kinesis so downstream consumers — observability, billing, audit — can react without coupling to the agent's request path.

production-agent-systems production-infrastructure book

5. Message Queues

Decoupling long-running agent tasks from the synchronous request path using queues (SQS, RabbitMQ, Celery) — at-least-once delivery semantics, idempotency keys for tool calls, dead-letter queues for tasks that exhaust retries, and backpressure when the LLM provider rate-limits.

production-agent-systems production-infrastructure book

6. Workflow Engines

Orchestrating multi-step, long-running agent workflows with durable execution engines (Temporal, AWS Step Functions, LangGraph persistence) so a workflow survives process restarts and resumes exactly where it left off after a crash.

production-agent-systems production-infrastructure book

7. Distributed Execution

Running agent workloads across multiple nodes — sharding by session or tenant, coordinating shared state without a single point of failure, and the consistency tradeoffs when two agent instances could act on the same conversation concurrently.

production-agent-systems production-infrastructure book

8. Scheduling

Placing agent workloads onto compute — priority queues for interactive vs. batch agent runs, autoscaling triggers tied to queue depth or token throughput rather than CPU, and preemption policy when a high-priority request needs capacity held by a long-running agent.

production-agent-systems production-infrastructure book

9. Scaling Strategies

Stateless vs. stateful agent design, offloading long-running work to queues and background tasks, horizontal scaling, and rate limiting against the LLM provider.

production-agent-systems production-infrastructure book

10. Multi-Tenant Architectures

Isolating tenants sharing an agent platform — per-tenant rate limits and token budgets, noisy-neighbor containment, data isolation for prompts, memory, and logs, and the pool-vs-silo tradeoff for LLM provider capacity.

production-agent-systems production-infrastructure book

11. High Availability

Designing an agent platform to survive component failure — redundant LLM provider routing with failover, health checks that account for degraded (slow but not down) model endpoints, and graceful degradation to a smaller model or cached response under partial outage.

production-agent-systems production-infrastructure book

12. Disaster Recovery

RTO and RPO targets for an agent platform's stateful components — conversation history, vector memory, prompt and model version registry — cross-region failover for the control plane, and the recovery drill that validates a full region loss doesn't silently corrupt in-flight tool calls.

production-agent-systems production-infrastructure book

1. AI Observability Fundamentals

Building the metrics, logs, traces, dashboards, and alerting an agent needs so its own operators can tell when it is misbehaving, not just when it is down.

production-agent-systems observability-and-evaluation book

2. Agent Tracing

What AI observability adds on top of standard OTel instrumentation — spans around LLM calls and tool calls, tracing full agent execution, and capturing token usage as a first-class attribute.

production-agent-systems observability-and-evaluation book

3. Token Metrics

Treating input, output, and cached token counts as first-class SLIs — per-request, per-tenant, and per-model dashboards, the token-to-cost conversion, and alerting on token-count anomalies as an early signal of prompt drift or a runaway loop.

production-agent-systems observability-and-evaluation book

4. Prompt Observability

Capturing and versioning the exact prompt (system, few-shot, and injected context) sent on every call so a regression can be traced to a specific prompt-template change, with redaction rules for what's safe to log versus what must be hashed or dropped.

production-agent-systems observability-and-evaluation book

5. Memory Observability

Instrumenting what an agent actually retrieved from long-term memory on each turn — retrieval hit rate, relevance and similarity score distributions, and staleness of cached embeddings — so memory-driven hallucinations can be traced to a specific bad retrieval instead of guessed at.

production-agent-systems observability-and-evaluation book

6. Tool Invocation Metrics

Per-tool latency, error rate, and call-volume dashboards plus argument-validation failure tracking, so a misbehaving tool integration shows up as a metrics anomaly before it shows up as a user-facing failure.

production-agent-systems observability-and-evaluation book

7. AI Logging

Structured logging conventions for an agent's reasoning trace (thought, action, observation) that balance debuggability against the cost and privacy risk of logging full prompts and completions at high volume.

production-agent-systems observability-and-evaluation book

12. AI SLOs

SLOs, error budgets, incident response, and cost optimization applied to an agent workload — including token cost as a first-class SLI and degrade-to-human-handoff as an error-budget policy.

production-agent-systems observability-and-evaluation book

13. Circuit Breakers & Timeout Strategies

The containment mechanics one level below failure-recovery policy: circuit breakers that stop one failing tool or sub-agent call from cascading through a run, timeout budgets allocated across a multi-hop tool chain, deadlock/oscillation detection between cooperating agents, and the runaway-loop breakers that cap a retry-or-replan cycle before it becomes a cost incident.

production-agent-systems reliability-security-and-governance book

14. Trust & Explainability

The human-factors problem underneath every approval gate — why users either over-trust an agent past its actual competence or route around it entirely, what it takes for an agent's confidence signal to mean something, and the difference between a post-hoc justification and a real causal trace a reviewer can actually evaluate.

production-agent-systems reliability-security-and-governance book

1. Latency Optimization

Reducing end-to-end agent response time — model selection tradeoffs (smaller/faster vs. larger/better), reducing tool-call round trips, and where time-to-first-token versus total completion time matters for perceived responsiveness.

production-agent-systems performance-and-cost-engineering book

2. Parallel Execution

Running independent tool calls and sub-agent tasks concurrently instead of sequentially — fan-out/fan-in patterns, bounding concurrency against provider rate limits, and the correctness hazards of parallel writes to shared agent state.

production-agent-systems performance-and-cost-engineering book

3. Streaming Optimization

Streaming partial LLM output to the user as tokens generate — chunking strategy for tool-call detection mid-stream, and buffering tradeoffs between responsiveness and being able to cancel or rewrite a bad partial response.

production-agent-systems performance-and-cost-engineering book

4. Token Optimization

Reducing token consumption without losing task quality — prompt compression, few-shot example pruning, and choosing when to summarize versus truncate conversation history before it's sent to the model.

production-agent-systems performance-and-cost-engineering book

5. Context Optimization

Deciding what actually belongs in the context window on a given turn — relevance-ranked retrieval over raw dump, context window budget allocation across system prompt, history, and retrieved documents, and the accuracy cost of over-stuffing context versus under-providing it.

production-agent-systems performance-and-cost-engineering book

6. Semantic Caching

Caching LLM responses by semantic similarity of the input rather than exact match — embedding-based cache key generation, similarity threshold tuning to avoid serving a wrong-but-close cached answer, and cache invalidation when underlying data changes.

production-agent-systems performance-and-cost-engineering book

7. Response Caching

Exact-match and prefix caching for repeated agent requests — provider-level prompt caching (e.g., cached system prompts) versus application-level response caching, and TTL policy for cache entries that reference time-sensitive data.

production-agent-systems performance-and-cost-engineering book

8. Cost Engineering

The engineering levers that actually move agent spend — caching strategy, batching, model routing/tiering, and inference optimization — plus cost attribution by tenant/feature and budget alerting as a first-class signal, feeding the executive ROI numbers in Part 01 of Agentic AI: Projects & Engineering Mastery rather than duplicating them.

production-agent-systems performance-and-cost-engineering book

9. Capacity Planning

Forecasting compute and provider-quota needs for an agent platform — translating expected request volume into token throughput requirements, provider rate-limit headroom planning, and scaling lead time for a traffic spike that can't be absorbed instantly.

production-agent-systems performance-and-cost-engineering book

10. Performance Benchmarking

Establishing repeatable load tests for an agent platform — synthetic traffic generation that mimics real tool-call patterns, identifying the actual bottleneck (LLM provider latency vs. tool execution vs. queueing) under load, and regression-testing performance across releases.

production-agent-systems performance-and-cost-engineering book

1. Designing Internal AI Platforms

Covers the reference architecture for an internal AI platform team - shared inference layer, tool/agent registry, and paved-road SDKs - so product teams build agents without re-solving auth, observability, and deployment each time.

production-agent-systems ai-platform-engineering book

2. Agent SDKs

Compares the design trade-offs of building a first-party agent SDK (LangGraph, custom Python/TypeScript wrappers) against adopting a vendor SDK, focused on API stability, versioning, and abstraction leakage at scale.

production-agent-systems ai-platform-engineering book

3. Agent APIs

Defines the contract layer for exposing agents as internal APIs - request/response schemas, streaming vs synchronous invocation, idempotency keys, and versioning strategy for breaking prompt or tool changes.

production-agent-systems ai-platform-engineering book

4. Plugin Ecosystems

Examines how to design a plugin/extension model for agents (tool manifests, capability declarations, sandboxed execution) so third-party or team-owned tools can be registered without a platform team code change.

production-agent-systems ai-platform-engineering book

5. Agent Registries

Covers building a central registry of agents and tools with ownership metadata, capability tags, and discovery APIs, mirroring a service catalog but for autonomous and semi-autonomous agents.

production-agent-systems ai-platform-engineering book

6. AI Gateways

Explains the AI gateway pattern - a single ingress for model routing, rate limiting, cost attribution, and prompt/response logging across multiple LLM providers - and how it differs from a traditional API gateway.

production-agent-systems ai-platform-engineering book

7. Multi-Model Infrastructure

Covers routing and fallback strategy across multiple foundation models (cost tier, latency tier, capability tier), including circuit breakers when a provider degrades and shadow-testing a model swap before cutover.

production-agent-systems ai-platform-engineering book

8. Deployment Strategies

Applies canary, blue-green, and shadow-deployment patterns specifically to agent releases, where a bad deploy can mean bad tool calls or unsafe actions rather than just bad HTTP responses.

production-agent-systems ai-platform-engineering book

9. Platform Operations

Covers the day-2 operating model for an AI platform - on-call ownership boundaries between platform and product teams, cost governance, and the SLOs that keep a shared agent platform reliable.

production-agent-systems ai-platform-engineering book

Production Agent Systems

A book-shaped table of contents for Production Agent Systems: the runtime substrate, observability, reliability/security/governance, performance/cost engineering, and platform engineering underneath every agent in production. Book 4 of the AI Systems Engineering series.

production-agent-systems book reference maang-prep

# Data Structures Algorithms

All Data Structures Algorithms notes →

1 — Pattern Practice & Loops

Why 'print a pyramid of stars' is really row-to-bound translation practice — the same instinct a DP table, a matrix traversal, or any 2D grid problem later in this book needs without ever calling it out by name.

data-structures-algorithms python-foundations book
Jul 31, 2026

10 — Math & Random

Python's math module trades general-purpose float arithmetic for a handful of exact, integer-safe helpers, while random trades true unpredictability for a deterministic, seedable stream that only looks random. This chapter is what each module actually guarantees, where those guarantees quietly break, and the worked examples — a perfect-square check, reservoir sampling, Fisher–Yates — that lean on them.

data-structures-algorithms python-foundations book
Jul 31, 2026

11 — itertools & functools

How two small standard-library modules replace hand-rolled nested loops and memoization boilerplate with composable, lazy building blocks — and where reaching for the library instead of writing the loop yourself stops being free.

data-structures-algorithms python-foundations book
Jul 31, 2026

12 — Python Algorithm Idioms

The sort, search, count, group-by, and filter-map-reduce patterns covered elsewhere in this book, restated as a question of expression, not algorithm: given that you already know which pattern a problem wants, what's the Python-idiomatic way to write it, and which hand-rolled version is quietly hiding a bug the standard library already closed.

data-structures-algorithms python-foundations book
Jul 31, 2026

13 — Control Flow

Python hands you six different ways to branch or repeat — if/elif, the ternary, match/case, for, while, and the loop's own often-forgotten else clause — and none of them crash when you pick the wrong one, they just quietly hide what the code is actually deciding.

data-structures-algorithms python-foundations book
Jul 31, 2026

14 — Functions

How Python binds arguments, remembers enclosing scope through closures, and treats every function as a plain object — the mechanics underneath default/keyword arguments, *args/**kwargs, decorators, and the mutable-default trap that catches almost everyone once.

data-structures-algorithms python-foundations book
Jul 31, 2026

15 — Classes & OOP

A Python class bundles state and behavior behind one name and a small set of dunder-method hooks that make instances look and act like built-ins — this chapter is what those hooks buy you, and the two places (a mutable class attribute, an __eq__ without a matching __hash__) where the bundling quietly breaks under you.

data-structures-algorithms python-foundations book
Jul 31, 2026

16 — Error Handling

Exceptions are Python's mechanism for splitting 'the code that notices a failure' from 'the code that decides what to do about it' — this chapter is what that split actually guarantees, the precise rules `except`, `else`, and `finally` run under, and where a custom exception hierarchy and explicit chaining beat a bare `except:` and a silently swallowed traceback.

data-structures-algorithms python-foundations book
Jul 31, 2026

17 — Comprehensions

How a comprehension collapses a loop-and-append into a single expression, the exact point — nesting depth, side effects, an unreadable one-liner — where that collapse stops paying off, and the memory trade a generator expression makes to never build the whole collection at all.

data-structures-algorithms python-foundations book
Jul 31, 2026

18 — Generators

How yield turns a function into a resumable object that produces one value at a time instead of building the whole sequence up front, why that swap is O(1) auxiliary memory instead of O(n), and the narrow set of situations — large or infinite sequences, streaming pipelines — where that actually matters.

data-structures-algorithms python-foundations book
Jul 31, 2026

2 — Built-in Functions

Which built-ins earn a place as pure reflex — sorted with key=, enumerate, zip — versus the situational-but-decisive ones like ord/chr and modular pow, and why an interviewer can tell the difference from across the table.

data-structures-algorithms python-foundations book
Jul 31, 2026

3 — Strings

Python's str ships with a wide method surface — case folding, search, split/join, formatting, slicing — that looks like ordinary array manipulation but hands back a brand-new object every single call, and the string module's character-set constants quietly back half the input-validation code you'll ever write.

data-structures-algorithms python-foundations book
Jul 31, 2026

4 — Lists

How Python's list works as a dynamic array wearing friendly syntax, why an alias is not a copy and a shallow copy is not always deep enough, and the handful of methods that turn 'store some values' into the workhorse structure behind almost every problem in this book.

data-structures-algorithms python-foundations book
Jul 31, 2026

5 — Tuples

Why Python's tuple looks like a read-only list but is really the language's native mechanism for multi-value returns and dict/set keys, where that immutability guarantee quietly stops — the first element that's itself a list — and why 'copying' a tuple by slicing is frequently not a copy at all.

data-structures-algorithms python-foundations book
Jul 31, 2026

6 — Dictionaries

Python's dict is the hash table from the neighboring chapter with a full public API wrapped around it — this is a tour of that surface: creation, safe access, mutation, removal, sorting, aggregation, iteration, copying, and its second job as **kwargs.

data-structures-algorithms python-foundations book
Jul 31, 2026

7 — Sets

Python's set trades away order and duplicates for O(1) average membership and a small algebra of whole-collection operations — union, intersection, difference — that turns 'compare two collections' from a nested loop into one line.

data-structures-algorithms python-foundations book
Jul 31, 2026

8 — Collections Module

Four small, purpose-built fixes for the frictions plain dict and list leave behind: an auto-vivifying dict, a dict specialized for counting, a double-ended queue's API surface, and an immutable tuple with named fields.

data-structures-algorithms python-foundations book
Jul 31, 2026

9 — heapq & bisect

How heapq turns 'always know the current smallest (or largest) item' into O(log n) calls over a plain list, how negation borrows that for max-heap behavior, and how bisect turns 'where does this belong in sorted order' into O(log n) search — plus the one place insort quietly costs more than its name suggests.

data-structures-algorithms python-foundations book
Jul 31, 2026

10 — Bitmask DP

DP whose state is a bitmask over which of n items are already accounted for — worked through the Traveling Salesman Problem and the Assignment Problem — plus the harder skill of recognizing when a subset, not an index or a range, is the axis a problem actually needs.

data-structures-algorithms dynamic-programming book
Jul 31, 2026

11 — Tree DP

DP where the state is anchored to a tree node instead of an index, the recurrence combines children's answers in a single postorder pass, and the tree's own shape — not an explicit table — supplies the fill order, worked through diameter of a binary tree and maximum independent set on a tree, both O(n), with re-rooting named as the harder next step.

data-structures-algorithms dynamic-programming book
Jul 31, 2026

12 — Interval DP

The matrix-chain-multiplication template — range state, increasing-length fill order, every split point tried — generalized to palindrome partitioning's nested interval DP and burst balloons' burst-last reframing, closing on the O(n³) ceiling that sets this family apart from cheaper 1D DP shapes.

data-structures-algorithms dynamic-programming book
Jul 31, 2026

8 — Matrix Chain Multiplication

Matrix chain multiplication's split-point recurrence derived from a hand-computed cost blowup across three parenthesizations of the same product, dp[i][j] defined over a RANGE for the first time in this book, the fill-by-increasing-interval-length rule a row-major sweep can't satisfy, and the O(n³) table traced end to end as the template this book's interval DP chapter generalizes.

data-structures-algorithms dynamic-programming book
Jul 31, 2026

9 — Digit DP

Counting integers in a range by their digit sum, forbidden digits, or repeats without enumerating them one at a time — building N's digits left to right under a tight/bound flag that is the one genuinely new state dimension this technique adds, worked top-down with a hand trace and a complexity argument for why the cost depends on N's digit count, not N itself.

data-structures-algorithms dynamic-programming book
Jul 31, 2026

1 — Greedy Strategy

The greedy-choice property proven by exchange argument instead of assumed on faith, optimal substructure named as the property greedy shares with DP but resolves differently, a canonical coin system proven correct and an adversarial one shown to break the same proof, and 0/1 knapsack as the case where greedy must yield to DP.

data-structures-algorithms greedy book
Jul 31, 2026

2 — Interval Scheduling

Three concrete interval problems — removal, merging, and room counting — built on one recurring decision: which sort key, start, end, or duration, the greedy choice actually needs.

data-structures-algorithms greedy book
Jul 31, 2026

3 — Huffman Coding

Building a provably optimal prefix-free code by repeatedly merging the two least-frequent symbols off a min-heap — the exchange argument behind it, and where this exact construction runs inside gzip, JPEG, and MP3 today.

data-structures-algorithms greedy book
Jul 31, 2026

4 — Activity Selection

Maximizing the count of non-overlapping activities on one resource by sorting on finish time, proved optimal with the book's most rigorous exchange argument.

data-structures-algorithms greedy book
Jul 31, 2026

5 — Fractional Knapsack

Sorting items by value-to-weight ratio and greedily taking the highest-ratio items first, proven optimal by an exchange argument that only holds because items can be split into arbitrary fractions, and a concrete capacity-50 counter-example where that identical ratio-greedy strategy provably loses to 0/1 knapsack's DP the instant items become indivisible.

data-structures-algorithms greedy book
Jul 31, 2026

1 — Bitwise Operations

AND, OR, XOR, NOT, and shifts as the primitive operations every bit trick composes from — plus the Python-specific gotcha (arbitrary-precision ints) that catches people coming from C.

data-structures-algorithms bit-manipulation book
Jul 31, 2026

2 — Bit Tricks

A toolkit of small, composable bit-level idioms — power-of-two checks, isolating and clearing the lowest set bit, Kernighan's popcount, single-bit get/set/clear/toggle, and the XOR swap — each derived from two's-complement first principles, not memorized as a formula.

data-structures-algorithms bit-manipulation book
Jul 31, 2026

3 — XOR Problems

Three algebraic properties of XOR — self-inverse, identity, commutative/associative — that turn a handful of hashing-shaped problems into O(n) time, O(1) space one-liners.

data-structures-algorithms bit-manipulation book
Jul 31, 2026

4 — Bitmasking

Representing a subset as bits in a single integer — the trick that turns small-universe subset enumeration and subset-indexed DP into plain integer arithmetic, and stops working the moment the universe passes about 25 elements.

data-structures-algorithms bit-manipulation book
Jul 31, 2026

5 — Gray Code

A permutation of 0..2^n-1 where every consecutive pair — including the wrap from the last value back to the first — differs in exactly one bit, generated in O(1) per value by a single XOR, and the reason physical rotary encoders needed that guarantee before it became an interview trick.

data-structures-algorithms bit-manipulation book
Jul 31, 2026

1 — Binary Search

The iterative implementation worth having cold, the three classic bugs (overflow, boundary-convention mixing, non-shrinking updates), the leftmost/rightmost/rotated-array variants, and why Python's bisect module usually beats hand-rolling it.

data-structures-algorithms sorting-searching book
Jul 28, 2026

10 — Selection Algorithms

Quickselect finds the k-th smallest element in expected O(n) by reusing quicksort's Lomuto partition and discarding, rather than recursing into, the side that can't contain the answer — plus median-of-medians, k-th-largest and top-k-as-a-set variants, and the heap-based streaming alternative.

data-structures-algorithms sorting-searching book
Jul 28, 2026

2 — Binary Search on Answer

Binary searching over a monotonic answer space instead of an array — the generalization that unlocks a large class of optimization problems.

data-structures-algorithms sorting-searching book
Jul 28, 2026

3 — Sorting Fundamentals

The four axes every sort gets judged on — stability, in-place vs. auxiliary space, adaptive vs. not, comparison-based vs. not — the Ω(n log n) comparison-sort lower bound proved by the decision-tree argument, Python's Timsort, and a trade-off preview of every algorithm the rest of this Part covers.

data-structures-algorithms sorting-searching book
Jul 28, 2026

4 — Quick Sort

Lomuto partitioning traced step by step, a precise derivation of the O(n log n) average case and the O(n²) worst case, randomized and median-of-three pivot mitigations, and why quicksort is in-place but not stable.

data-structures-algorithms sorting-searching book
Jul 28, 2026

5 — Merge Sort

Divide-and-conquer sort with guaranteed O(n log n) and stability, at the cost of O(n) auxiliary space.

data-structures-algorithms sorting-searching book
Jul 28, 2026

6 — Heap Sort

In-place heap sort derived from the heap chapter's heapify and sift-down — a guaranteed O(n log n) worst case with O(1) auxiliary space, and why giving up stability and cache locality is the price of both.

data-structures-algorithms sorting-searching book
Jul 28, 2026

7 — Counting Sort

Non-comparison sort that counts occurrences directly by value, its stable prefix-sum construction, and the O(n + k) trade-off that only pays off when the key range doesn't dwarf the input.

data-structures-algorithms sorting-searching book
Jul 28, 2026

8 — Radix Sort

LSD radix sort processes multi-digit integers by running the previous chapter's stable counting sort once per digit, achieving O(d(n+k)) time by indexing on digits instead of comparing whole values.

data-structures-algorithms sorting-searching book
Jul 28, 2026

9 — Bucket Sort

Non-comparison sort for real-valued, roughly uniformly distributed input — O(n + k) average case derived from expected per-bucket occupancy, an O(n²) worst case with no floor beneath it, and a stability property that depends on the whole pipeline, not the bucketing step alone.

data-structures-algorithms sorting-searching book
Jul 28, 2026

1 — DP Fundamentals

Overlapping subproblems and optimal substructure defined precisely and shown to be independent properties, naive Fibonacci's recursion tree counted exactly with a call-counter to make the states-versus-total-calls gap numeric rather than asserted, why state definition — not the recurrence — is the actual design decision, and memoization vs. tabulation named as the two standard ways to implement any DP recurrence.

data-structures-algorithms dynamic-programming book
Jul 28, 2026

2 — Memoization

Top-down dynamic programming: caching each recursive call's answer to turn Fibonacci's O(2^n) blowup into O(n), deriving the cache's time/space cost and its recursion-depth limit, learning to define a state and its transition from scratch via Climbing Stairs, previewing tuple-keyed multi-dimensional caches, and weighing memoization against tabulation.

data-structures-algorithms dynamic-programming book
Jul 28, 2026

3 — Tabulation

Bottom-up tabulation on Fibonacci and 2D Unique Paths, the dependency-order rule that makes a fill loop valid, the rolling-array space optimization it enables, and where it beats memoization.

data-structures-algorithms dynamic-programming book
Jul 28, 2026

4 — Knapsack Problems

0/1 knapsack's two-dimensional state and transition, derived and traced on a worked table with item reconstruction, the 1D rolling-array collapse where iteration direction over capacity is the entire difference between 0/1 and unbounded knapsack, and the subset-sum / partition-equal-subset-sum problems that specialize the same transition.

data-structures-algorithms dynamic-programming book
Jul 28, 2026

5 — Longest Increasing Subsequence

The O(n²) DP with full state/transition derivation and predecessor-based reconstruction, the O(n log n) patience-sorting reformulation built directly on bisect_left, a proof sketch for why the tails array stays sorted, and when the quadratic version's easy reconstruction is worth trading away for the logarithmic version's speed.

data-structures-algorithms dynamic-programming book
Jul 28, 2026

6 — Longest Common Subsequence

Longest Common Subsequence's two-string 2D state and transition, traced on a full table for a worked example (ABCBDAB / BDCABA, LCS length 4) with backward reconstruction of the actual subsequence, the rolling-array space optimization's tension with reconstruction (Hirschberg's algorithm named, not derived), and the family of alignment problems — edit distance, longest common substring, shortest common supersequence — this same 2D shape generalizes to.

data-structures-algorithms dynamic-programming book
Jul 28, 2026

7 — Edit Distance

Edit distance's three-way insert/delete/replace transition derived directly from LCS's two-way match/skip transition, traced on a full 2D table and backward-reconstructed into an actual operation sequence, then set side by side with LCS to show precisely why replace has no LCS equivalent.

data-structures-algorithms dynamic-programming book
Jul 28, 2026

1 — What is an Algorithm?

What separates an algorithm from a program — finiteness, definiteness, effectiveness — and why interviewers are grading the precision of your procedure, not just whether your code runs.

data-structures-algorithms foundations book
Jul 27, 2026

2 — Asymptotic Analysis

Why Big-O is really shorthand for Big-Theta, how worst/average/best case turns 'what's the complexity' into three different questions, and the feasibility ladder that tells you whether a brute-force idea will even finish running.

data-structures-algorithms foundations book
Jul 27, 2026

3 — Recursion

How recursion actually executes on the call stack, why Python has no tail-call optimization, when to convert recursion to iteration, and a worked factorial-digit-sum example.

data-structures-algorithms foundations book
Jul 27, 2026

4 — Mathematical Foundations

Combinatorics, modular arithmetic, GCD/LCM, and prime sieves — the discrete-math toolkit that counting, DP, and number-theory interview problems quietly depend on.

data-structures-algorithms foundations book
Jul 27, 2026

5 — Algorithm Design Principles

A field guide to recognizing which of the five recurring design paradigms — brute force, divide and conquer, greedy, dynamic programming, backtracking — a new problem is calling for, before you write a line of implementation.

data-structures-algorithms foundations book
Jul 27, 2026

1 — Arrays

Static vs. dynamic arrays, why contiguous memory buys O(1) random access, row-major layout for multi-dimensional arrays, the complexity of every core operation, and where list, array, and numpy diverge.

data-structures-algorithms arrays-strings book
Jul 27, 2026

2 — Array Algorithms

In-place rotation via the reversal trick, Kadane's maximum subarray, Dutch National Flag partitioning, merging sorted arrays in place, and the sum/XOR tricks for a missing or duplicate number.

data-structures-algorithms arrays-strings book
Jul 27, 2026

3 — Two Pointers

Opposite-direction and same-direction pointer techniques for sorted arrays — Two Sum II, Container With Most Water, 3Sum, and in-place duplicate removal — plus how to tell the pattern apart from sliding window.

data-structures-algorithms arrays-strings book
Jul 27, 2026

4 — Sliding Window

Fixed vs. variable window, when to grow or shrink, and the substring/subarray problems this technique solves in linear time.

data-structures-algorithms arrays-strings book
Jul 27, 2026

5 — Prefix Sum & Difference Arrays

Precomputed running sums and difference arrays for O(1) range-sum queries and range-update problems.

data-structures-algorithms arrays-strings book
Jul 27, 2026

6 — Hashing

How Python's dict/set turn an O(n) or O(n²) scan into O(1) average-case lookups, when that average case breaks down, and where hashing trades away information — order — that a problem still needs.

data-structures-algorithms arrays-strings book
Jul 27, 2026

7 — Strings

Why treating a Python string as 'just an array of characters' is only half true — immutability turns naive concatenation quietly quadratic, and that one property shapes every string algorithm that follows.

data-structures-algorithms arrays-strings book
Jul 27, 2026

8 — String Algorithms

Palindrome checks via two pointers and expand-around-center, anagram detection by counting vs. sorting, the naive O(n·m) substring search baseline, and why Python's string immutability turns 'reverse in place' into a trick question.

data-structures-algorithms arrays-strings book
Jul 27, 2026

1 — Singly Linked List

Node-and-pointer structure, why there's no O(1) random access without contiguous memory, the head/tail/mid-list complexity trade-offs, and the reverse-a-list and find-the-middle worked examples every interview loop opens with.

data-structures-algorithms linked-lists book
Jul 27, 2026

2 — Doubly Linked List

Doubly linked list node structure, O(1) deletion given a node reference, the four-pointer relink for insert/delete, and why deque/OrderedDict are built on this.

data-structures-algorithms linked-lists book
Jul 27, 2026

3 — Circular Linked List

Circular linked list structure — the tail-to-head wraparound, detecting 'the end' without a None sentinel, round-robin scheduling and circular buffers, the Josephus problem, and telling deliberate circularity apart from an accidental cycle bug.

data-structures-algorithms linked-lists book
Jul 27, 2026

4 — Skip Lists

Probabilistic multi-level linked structure giving expected O(log n) search, insert, and delete without tree rebalancing.

data-structures-algorithms linked-lists book
Jul 27, 2026

5 — LRU Cache Design

Combining a hash map and a sentinel-based doubly linked list to get O(1) get/put with least-recently-used eviction — LeetCode 146, and the same shape found in real production caching layers, plus the OrderedDict version you'd actually ship.

data-structures-algorithms linked-lists book
Jul 27, 2026

1 — Stack

LIFO fundamentals: push/pop/peek in O(1), why list.append()/list.pop() are the right end and list.pop(0) isn't, the call stack as a literal stack, and worked bracket-matching and iterative-DFS examples.

data-structures-algorithms stacks-queues book
Jul 27, 2026

2 — Queue

FIFO fundamentals: enqueue/dequeue, why list.pop(0) is a silent O(n) trap, collections.deque as the fix, the two-stack amortized-O(1) implementation, and BFS as the queue's signature use case.

data-structures-algorithms stacks-queues book
Jul 27, 2026

3 — Circular Queue

Fixed-capacity ring-buffer queue that reuses freed slots without shifting elements — modulo-arithmetic wraparound over a plain array, and the full-vs-empty ambiguity every implementation has to resolve.

data-structures-algorithms stacks-queues book
Jul 27, 2026

4 — Deque

Deque as the shared generalization behind stack and queue: O(1) push/pop at both ends via collections.deque's fixed-size-block internals (not a list, not a per-element linked list), worked rotate/maxlen/extendleft examples, and the O(n) random-access trade-off a list doesn't have to make.

data-structures-algorithms stacks-queues book
Jul 27, 2026

5 — Monotonic Stack

A stack that enforces increasing or decreasing order at push time, solving next-greater-element, daily-temperatures, and largest-rectangle-style problems in O(n).

data-structures-algorithms stacks-queues book
Jul 27, 2026

6 — Monotonic Queue

Sliding window maximum in O(n): a deque of indices kept decreasing by value, trimmed from the back for domination and from the front for window expiry — the second eviction rule a monotonic stack structurally can't support.

data-structures-algorithms stacks-queues book
Jul 27, 2026

7 — Expression Evaluation

Infix vs. postfix vs. prefix notation, evaluating postfix/RPN with a single stack, the two-stack method for direct infix evaluation with operator precedence and parentheses, a full Basic-Calculator implementation, and shunting-yard as an alternative infix-to-postfix conversion strategy.

data-structures-algorithms stacks-queues book
Jul 27, 2026

1 — Tree Fundamentals

Root, parent, child, leaf, depth vs. height, and the recursively-defined structure — general vs. binary trees, the four traversal orders, and pointer- vs. array-based representation — that every later tree chapter assumes without re-explaining.

data-structures-algorithms trees book
Jul 27, 2026

10 — Suffix Trie

Suffix-indexed trie variant for substring and pattern-matching queries.

data-structures-algorithms trees book
Jul 27, 2026

11 — Heap

Binary heap structure (array-backed complete tree) and the sift-up/sift-down operations behind heapify — the weaker parent-children invariant that makes find-min cheap, why completeness makes array representation waste nothing, and heapq's push/pop/heapify/heappushpop/heapreplace in practice.

data-structures-algorithms trees book
Jul 27, 2026

12 — Priority Queue

Priority queue as an abstract interface — insert with a priority, extract the highest-priority item — and why a binary heap, not a sorted list or a balanced BST, is usually the implementation of choice; includes full top-K and k-way merge worked examples.

data-structures-algorithms trees book
Jul 27, 2026

2 — Binary Trees

Binary tree node structure and traversal: preorder, inorder, and postorder — each recursive and iterative (postorder's two-stack trick for the trickiest case) — plus level-order BFS via a queue, recursive height/depth, and when each traversal order actually matters in practice.

data-structures-algorithms trees book
Jul 27, 2026

3 — Binary Search Trees

The BST ordering invariant and its duplicates-go-right convention, why search/insert/delete are O(h) rather than unconditionally O(log n), why inorder traversal always yields sorted order, the three delete cases including the inorder-successor splice, why sorted-input insertion degenerates a BST into a linked list, and the range-bound fix for the classic buggy Validate BST check.

data-structures-algorithms trees book
Jul 27, 2026

4 — AVL Trees

Height-balanced BST with rotation-based rebalancing that guarantees O(log n) operations.

data-structures-algorithms trees book
Jul 27, 2026

5 — Red-Black Trees

Color-based self-balancing BST used by most production ordered-map implementations, and how it trades stricter balance for cheaper rebalancing.

data-structures-algorithms trees book
Jul 27, 2026

6 — Segment Trees

Binary tree over array ranges trading prefix sum's O(1) query for O(log n) — in exchange for O(log n) point updates with no rebuild, ever.

data-structures-algorithms trees book
Jul 27, 2026

7 — Fenwick Trees (BIT)

Binary Indexed Tree for O(log n) prefix-sum queries and point updates with a much smaller constant than a segment tree.

data-structures-algorithms trees book
Jul 27, 2026

8 — Interval Trees

Augmented BST ordered by interval low-endpoint, storing each subtree's max high-endpoint (max_end) to prune subtrees that provably can't overlap a query — cutting overlap search from O(n) brute force to O(log n + k), and why max_end is the one field that makes the pruning possible.

data-structures-algorithms trees book
Jul 27, 2026

9 — Trie

Prefix tree structure that makes 'does any word start with this' as cheap as exact-match lookup — insert/search/startsWith in O(L), autocomplete via DFS, and the memory trade-off against a plain hash set.

data-structures-algorithms trees book
Jul 27, 2026

1 — Graph Representation

Adjacency matrix, adjacency list, and edge list — what a graph adds back once trees drop the acyclic, single-parent, single-root constraints, and why every graph algorithm in this Part needs a visited set that tree traversal never did.

data-structures-algorithms graphs book
Jul 27, 2026

10 — Network Flow

Ford-Fulkerson, the residual graph's backward edges, and Edmonds-Karp's BFS-driven augmenting paths for computing maximum flow through a capacitated graph — plus the max-flow min-cut theorem and why greedy augmentation needs a way to undo itself.

data-structures-algorithms graphs book
Jul 27, 2026

2 — Graph Traversal

DFS and BFS generalized from trees to graphs via one addition — a visited set — plus recursive and iterative DFS, BFS's third appearance of the same queue skeleton, connected components, and multi-source BFS as single-source BFS from an imaginary super-source.

data-structures-algorithms graphs book
Jul 27, 2026

3 — Topological Sorting

Ordering a DAG's nodes so every edge points forward — via DFS post-order or Kahn's BFS-based algorithm.

data-structures-algorithms graphs book
Jul 27, 2026

4 — Shortest Path

Shortest path is four different problems wearing one name: BFS already solves the unweighted case, Dijkstra's min-heap relaxation handles non-negative weights, Bellman-Ford and its negative-cycle check handle any sign, and Floyd-Warshall answers all-pairs — plus an honestly-scoped worked example showing exactly what Dijkstra does and doesn't solve for a k-cheapest-routes problem.

data-structures-algorithms graphs book
Jul 27, 2026

5 — Minimum Spanning Tree

Kruskal's and Prim's algorithms for the minimum-weight edge set connecting every node — why MST is a fundamentally different problem from shortest path, and how the same greedy framing from Part 01 produces two structurally different, equally correct algorithms.

data-structures-algorithms graphs book
Jul 27, 2026

6 — Union Find (Disjoint Set)

Path compression and union by rank turn find and union into O(α(n)) amortized operations — the inverse Ackermann bound stated precisely, dynamic connectivity as edges arrive one at a time, and cycle detection as a direct byproduct of union itself.

data-structures-algorithms graphs book
Jul 27, 2026

7 — Strongly Connected Components

Kosaraju's two-pass DFS algorithm for finding maximal strongly connected components in a directed graph, the finish-time argument for why it works, and Tarjan's single-pass low-link alternative.

data-structures-algorithms graphs book
Jul 27, 2026

8 — Bridges & Articulation Points

Deriving DFS discovery time and low-link values from scratch to find, in one O(V + E) pass, every edge and every vertex whose removal would disconnect an undirected graph.

data-structures-algorithms graphs book
Jul 27, 2026

9 — Eulerian & Hamiltonian Paths

Why an Eulerian path (every edge once) is checkable in O(V) by counting degrees while a Hamiltonian path (every vertex once) is NP-complete with no known shortcut — Hierholzer's algorithm, backtracking search, and why identical phrasing hides opposite tractability.

data-structures-algorithms graphs book
Jul 27, 2026

1 — Backtracking

The choose-explore-unchoose template and pruning strategies that make exhaustive search tractable.

data-structures-algorithms backtracking book

2 — N Queens

Placing N non-attacking queens via backtracking with row/column/diagonal constraint tracking.

data-structures-algorithms backtracking book

3 — Sudoku Solver

Constraint-propagation backtracking over a 9×9 grid with row/column/box validity checks.

data-structures-algorithms backtracking book

4 — Permutations

Generating all orderings of a set via backtracking, including the handling of duplicate elements.

data-structures-algorithms backtracking book

5 — Combinations

Generating all fixed-size subsets via backtracking, and its relation to subset/power-set generation.

data-structures-algorithms backtracking book

6 — Branch & Bound

Backtracking augmented with a bounding function to prune branches that can't beat the best solution found so far.

data-structures-algorithms backtracking book

1 — Sparse Table

O(1) range-minimum/maximum queries on a static array via O(n log n) precomputation.

data-structures-algorithms advanced-data-structures book

2 — Treap

Randomized BST combining heap priorities with BST ordering for expected O(log n) balance without explicit rotation logic.

data-structures-algorithms advanced-data-structures book

3 — Rope

Binary-tree-of-string-chunks structure for O(log n) concatenation/insertion on very large strings.

data-structures-algorithms advanced-data-structures book

4 — B-Tree

Multi-way balanced tree minimizing disk reads, the structure behind most database indexes.

data-structures-algorithms advanced-data-structures book

5 — B+ Tree

B-tree variant that pushes all values to leaf nodes with a linked list across them, optimized for range scans.

data-structures-algorithms advanced-data-structures book

6 — Bloom Filter

Probabilistic set-membership structure with no false negatives and a tunable false-positive rate, trading certainty for O(1) space-efficient lookups.

data-structures-algorithms advanced-data-structures book

7 — Count-Min Sketch

Probabilistic frequency-counting structure for approximate counts over massive streams in sublinear space.

data-structures-algorithms advanced-data-structures book

8 — HyperLogLog

Probabilistic cardinality-estimation structure for counting distinct elements in a stream using near-constant space.

data-structures-algorithms advanced-data-structures book

1 — Divide & Conquer Optimization

Speeding up a DP transition using divide-and-conquer or monotonic-decision-boundary tricks (e.g. the DC optimization, Knuth's optimization).

data-structures-algorithms advanced-algorithms book

2 — Convex Hull

Finding the smallest convex polygon enclosing a set of points, via Graham scan or the gift-wrapping algorithm.

data-structures-algorithms advanced-algorithms book

3 — Sweep Line

Sweeping a conceptual line across sorted events to solve interval-overlap and geometric intersection problems in O(n log n).

data-structures-algorithms advanced-algorithms book

4 — Computational Geometry

Core geometric primitives — orientation, line intersection, point-in-polygon — that geometry problems build on.

data-structures-algorithms advanced-algorithms book

5 — String Matching Advanced

Suffix arrays and suffix automata as the next level past KMP/Z-algorithm for heavy string-matching workloads.

data-structures-algorithms advanced-algorithms book

6 — FFT

Fast Fourier Transform for O(n log n) polynomial multiplication, the classic application in competitive/advanced algorithm problems.

data-structures-algorithms advanced-algorithms book

7 — Matrix Exponentiation

Representing a linear recurrence as matrix multiplication to compute the n-th term in O(log n).

data-structures-algorithms advanced-algorithms book

8 — Fast Exponentiation

Binary exponentiation for computing a^n (or a^n mod m) in O(log n) instead of O(n).

data-structures-algorithms advanced-algorithms book

9 — Randomized Algorithms

Algorithms that use randomness for expected-case guarantees — randomized QuickSelect, Monte Carlo vs. Las Vegas framing.

data-structures-algorithms advanced-algorithms book

1 — Two Pointers Pattern

Recognizing when a problem's brute-force nested loop collapses to a single pass with two coordinated pointers.

data-structures-algorithms interview-patterns book

10 — BFS Pattern

Recognizing shortest-path/level-order/minimum-step problems that breadth-first search solves optimally on unweighted graphs.

data-structures-algorithms interview-patterns book

11 — Tree DFS Pattern

Recognizing tree problems that reduce to a DFS template carrying a small amount of state root-to-leaf.

data-structures-algorithms interview-patterns book

12 — Graph Pattern

Recognizing problems phrased as text/grid/relationship data that are actually graph traversal or connectivity in disguise.

data-structures-algorithms interview-patterns book

13 — Dynamic Programming Pattern

Recognizing optimal-substructure-plus-overlapping-subproblems phrasing that signals memoization or tabulation over brute force.

data-structures-algorithms interview-patterns book

14 — Monotonic Stack Pattern

Recognizing next-greater/next-smaller-style problems that a monotonic stack solves in O(n).

data-structures-algorithms interview-patterns book

15 — Union Find Pattern

Recognizing dynamic-connectivity and grouping problems that Union-Find solves faster than repeated traversal.

data-structures-algorithms interview-patterns book

16 — Prefix Sum Pattern

Recognizing range-sum-query problems that precomputed prefix sums answer in O(1) per query.

data-structures-algorithms interview-patterns book

17 — Heap Pattern

Recognizing 'k-th'/'top-k'/'median-of-stream' problems that a heap (or two heaps) solves without full sorting.

data-structures-algorithms interview-patterns book

18 — Trie Pattern

Recognizing prefix-matching and autocomplete-style string problems that a trie solves faster than repeated string comparison.

data-structures-algorithms interview-patterns book

2 — Sliding Window Pattern

Recognizing when a problem is secretly asking for a variable- or fixed-size window over a sequence.

data-structures-algorithms interview-patterns book

3 — Fast & Slow Pointer

Recognizing cycle-detection and middle-of-sequence problems that Floyd's fast/slow pointer solves in O(1) space.

data-structures-algorithms interview-patterns book

4 — Binary Search Pattern

Recognizing when a search space is monotonic enough to binary search over, even when there's no literal sorted array.

data-structures-algorithms interview-patterns book

5 — Merge Intervals

Recognizing interval-overlap problems that reduce to sort-by-start-time plus a linear merge pass.

data-structures-algorithms interview-patterns book

6 — Cyclic Sort

Recognizing array problems where values are bounded 1..n and can be placed at their own index in-place.

data-structures-algorithms interview-patterns book

7 — Top K Elements

Recognizing 'k largest/smallest/most frequent' problems that a fixed-size heap solves in O(n log k).

data-structures-algorithms interview-patterns book

8 — K-way Merge

Recognizing problems over k sorted sequences that a heap-based merge solves in O(n log k) instead of a full sort.

data-structures-algorithms interview-patterns book

9 — DFS Pattern

Recognizing when exhaustive path/combination exploration is really depth-first search with backtracking.

data-structures-algorithms interview-patterns book

1 — Complexity Analysis in Interviews

Stating brute-force and optimized complexity out loud, in the form interviewers actually expect to hear it.

data-structures-algorithms interview-mastery book

10 — Revision Strategy & Cheat Sheets

Spaced-repetition strategy and one-page cheat sheets for keeping all 130 chapters' patterns fresh in the weeks before an interview.

data-structures-algorithms interview-mastery book

2 — Choosing the Right Data Structure

A decision framework for picking the right structure from constraints alone — before writing a line of code.

data-structures-algorithms interview-mastery book

3 — Whiteboard Communication

Narrating your reasoning while coding: what to say, when to pause, and how to signal thinking without going silent.

data-structures-algorithms interview-mastery book

4 — Problem-Solving Framework

Clarify constraints, brute force first, identify the pattern, optimize, code, test edge cases — the repeatable loop for an unseen prompt.

data-structures-algorithms interview-mastery book

5 — Optimization Techniques

Turning a working brute-force solution into an optimized one: the standard moves (memoize, precompute, change data structure) applied systematically.

data-structures-algorithms interview-mastery book

6 — Handling Follow-up Questions

Anticipating and handling 'what if the input is huge/streaming/concurrent' follow-ups after the base solution is accepted.

data-structures-algorithms interview-mastery book

7 — Recognizing Hidden Patterns

Cross-referencing this book's pattern list (Part XIV) against an unfamiliar prompt's phrasing to find the hidden signal fast.

data-structures-algorithms interview-mastery book

8 — Mock Interview Walkthroughs

Full worked mock interviews end-to-end, showing the clarify → brute force → optimize → code → test loop in real time.

data-structures-algorithms interview-mastery book

9 — Top 200 MAANG Problems Roadmap

A prioritized roadmap through the highest-frequency MAANG problems, sequenced against this book's chapter order.

data-structures-algorithms interview-mastery book

Data Structures & Algorithms

A book-shaped table of contents for MAANG-interview DSA prep: Python language foundations, mathematical and algorithmic foundations, arrays/strings, linked structures, stacks/queues, trees, graphs, sorting/searching, dynamic programming, greedy algorithms, backtracking, bit manipulation, advanced data structures, advanced algorithms, interview problem patterns, and MAANG interview mastery — a book-length progression from fundamentals to Google/Meta/Amazon/Apple/Netflix/Microsoft (L4–L6) interview readiness.

data-structures-algorithms book reference maang-prep python

1. The Evolution of Artificial Intelligence

Traces the arc from symbolic AI and expert systems through statistical ML, deep learning, and the scaling-law-driven emergence of foundation models, framing why agentic AI is the current inflection point rather than a fresh discipline.

ai-foundations foundations-of-modern-ai book
Jul 28, 2026

2. Machine Learning Fundamentals

Covers supervised vs. unsupervised vs. reinforcement learning, the bias-variance tradeoff, loss functions, and gradient descent as the fundamentals that still govern how modern LLMs are trained and fine-tuned.

ai-foundations foundations-of-modern-ai book
Jul 28, 2026

3. Deep Learning Essentials

Covers neural network building blocks — layers, activation functions, backpropagation, regularization, and optimizers — as the substrate transformers are built on, explained from first principles for a staff-level interview bar.

ai-foundations foundations-of-modern-ai book
Jul 28, 2026

4. Transformer Architecture

Breaks down the encoder-decoder transformer — self-attention, multi-head attention, positional encoding, and feed-forward blocks — and why this architecture displaced RNNs and LSTMs as the default for sequence modeling at scale.

ai-foundations foundations-of-modern-ai book
Jul 28, 2026

5. Tokens, Embeddings & Attention

Explains how raw text becomes tokens, how tokens become dense embedding vectors, and how the attention mechanism computes contextual relevance between them — the three concepts most commonly conflated in interview answers.

ai-foundations foundations-of-modern-ai book
Jul 28, 2026

6. Context Windows & Tokenization

Covers tokenizer algorithms (BPE, WordPiece, SentencePiece), context window sizing and its quadratic attention-cost tradeoff, and practical strategies — chunking, sliding windows, summarization — for working within a fixed context budget.

ai-foundations foundations-of-modern-ai book
Jul 28, 2026

7. Foundation Models

Defines what makes a model foundational — pretraining scale, transfer learning, and emergent capabilities — and surveys major foundation model families and the positioning tradeoffs between them.

ai-foundations foundations-of-modern-ai book
Jul 28, 2026

8. Large Language Models

Covers the LLM training pipeline end to end — pretraining, supervised fine-tuning, and RLHF/DPO alignment — and the resulting capability, cost, and latency tradeoffs an architect weighs when picking a model for production.

ai-foundations foundations-of-modern-ai book
Jul 28, 2026

9. Reasoning Models

Covers chain-of-thought and inference-time compute scaling in reasoning models, how they differ architecturally and operationally from standard next-token LLMs, and when the added latency and cost is actually justified.

ai-foundations foundations-of-modern-ai book
Jul 28, 2026

10. The AI Ecosystem

Maps the current AI ecosystem — model providers, orchestration frameworks, vector databases, evaluation tooling, and inference infrastructure — as the landscape an agentic system architect has to navigate.

ai-foundations foundations-of-modern-ai book
Jul 28, 2026

1. Prompt Engineering Fundamentals

Covers the core levers of prompt construction — instruction clarity, few-shot exemplars, system vs. user role separation, and sampling controls — as the baseline skill every downstream agentic technique builds on.

ai-foundations language-models-in-practice book
Jul 25, 2026

2. Prompt Design Patterns

Catalogs reusable prompt patterns — chain-of-thought, ReAct, self-consistency, and role/persona framing — with guidance on when each pattern earns its added token cost over a plain instruction.

ai-foundations language-models-in-practice book
Jul 25, 2026

3. Structured Outputs

Covers forcing an LLM into a validated schema — JSON mode, function-calling-style schemas, and grammar-constrained decoding — and the failure modes, like schema drift and hallucinated fields, that break naive implementations.

ai-foundations language-models-in-practice book
Jul 25, 2026

4. Function Calling

Covers how models select and populate function signatures from natural language, the request/response contract between model and application, and common pitfalls like parameter hallucination and ambiguous selection.

ai-foundations language-models-in-practice book
Jul 25, 2026

5. Tool Calling

Extends function calling into multi-tool agent design — tool registries, tool-choice strategies, parallel vs. sequential invocation — and how tool descriptions themselves become part of the prompt-engineering surface.

ai-foundations language-models-in-practice book
Jul 25, 2026

6. Streaming Responses

Covers server-sent events and token-streaming architectures for LLM responses, the UX and backpressure tradeoffs versus batch responses, and how streaming interacts with structured-output and function-calling validation.

ai-foundations language-models-in-practice book
Jul 25, 2026

7. Model Selection & Routing

Covers building a model router that picks among providers and tiers by task complexity, latency SLA, and cost — the pattern that replaces always calling the biggest model once traffic reaches production scale.

ai-foundations language-models-in-practice book
Jul 25, 2026

8. Hallucination Management

Covers the mechanisms behind LLM hallucination — parametric knowledge gaps, exposure bias, overconfident sampling — and mitigation strategies like grounding via RAG, citation requirements, and confidence-calibrated refusal.

ai-foundations language-models-in-practice book
Jul 25, 2026

9. AI Failure Modes

Surveys production failure modes beyond hallucination — prompt injection, context poisoning, tool-call loops, silent schema violations, and cascading errors in multi-agent chains — as the taxonomy a staff engineer defends against.

ai-foundations language-models-in-practice book
Jul 25, 2026

10. Building Reliable LLM Applications

Covers the engineering practices that turn a probabilistic model call into a reliable system component — retries with validation, evals as CI gates, circuit breakers, and observability for non-deterministic outputs.

ai-foundations language-models-in-practice book
Jul 25, 2026

11. Probability, Sampling & Decoding

The math intuition underneath every model call — how a raw logit vector becomes a probability distribution, why temperature and top-p reshape that distribution differently, why beam search lost to sampling for chat and agent models, and how entropy and KL divergence turn 'the model is uncertain' and 'alignment training' into something you can actually reason about.

ai-foundations foundations-of-modern-ai book

12. Vector Geometry & Similarity

The geometric intuition behind embeddings -- cosine similarity as angle versus Euclidean distance as magnitude, why unnormalized dot products silently bias search, and why high-dimensional spaces make naive nearest-neighbor search break down.

ai-foundations foundations-of-modern-ai book

AI & LLM Foundations

A book-shaped table of contents for AI & LLM Foundations: the pre-agentic substrate — symbolic AI through transformers, tokens, embeddings, attention, foundation models, and turning a raw LLM API into a dependable application component. Book 1 of the AI Systems Engineering series.

ai-foundations book reference maang-prep

2 — Time Series Fundamentals

The time series data model behind Prometheus — metric names, labels, timestamps, samples, and how PromQL classifies the data it operates on.

prometheus foundations book
Jul 18, 2026

3 — Prometheus in the Observability Ecosystem

Where Prometheus sits in the CNCF landscape — its pull-based cloud-native origins, its companion projects, and where this book does (and doesn't yet) connect it to the wider stack.

prometheus ecosystem book
Jul 18, 2026

1 — Prometheus Components

The functional pieces inside a Prometheus server — scrape manager, TSDB, rule engine, query engine — and the real commands used to install and run one on a VM, under systemd, or in Docker.

prometheus architecture book
Jul 18, 2026

2 — Pull Model Deep Dive

Why Prometheus chose a pull-based scrape model over pushing metrics, what that trades away, and how the Pushgateway papers over the one workload — short-lived batch jobs — where pull genuinely doesn't fit.

prometheus architecture book
Jul 18, 2026

3 — Data Flow

A short connective walk through Prometheus end to end — from an instrumented app exposing a metric, through scraping and storage, to a PromQL query surfaced as an alert or a dashboard panel — with each stage pointing to the chapter that owns it.

prometheus architecture book
Jul 18, 2026

1 — Metrics Deep Dive

The four Prometheus metric types — Counter, Gauge, Histogram, Summary — walked through hands-on across a Linux batch app + Node Exporter and a Windows web app + Windows Exporter, plus the histogram_quantile bucket-math caveat and the Histogram-vs-Summary tradeoff.

prometheus data-model book
Jul 18, 2026

2 — Labels and Cardinality

Label mechanics and series identity in Prometheus — how labels turn one metric name into many time series, the storage/performance cardinality math, and target relabeling vs. metric relabeling with real relabel_configs YAML.

prometheus data-model book
Jul 18, 2026

2 — Exporters

What a Prometheus exporter is, installing Node Exporter as a systemd service, and monitoring the container runtime itself via Docker Engine metrics and cAdvisor.

prometheus instrumentation book
Jul 18, 2026

1 — Discovery Mechanisms

How Prometheus finds scrape targets — static configs, file-based service discovery with watched JSON files, and DNS service discovery via SRV/A records — plus validating and reloading configuration safely.

prometheus service-discovery book
Jul 18, 2026

1 — PromQL Fundamentals

The four PromQL data types, label matchers and selectors, and how to run PromQL outside the Prometheus UI via the HTTP API.

prometheus promql book
Jul 18, 2026

2 — PromQL Functions

Math, date/time, type-conversion, and sorting functions; the rate() vs irate() decision; and the histogram_quantile() function-call mechanics.

prometheus promql book
Jul 18, 2026

3 — Aggregation Operators

The PromQL aggregation operator table, the by clause, the without clause, and worked collapsing examples across single and multiple labels.

prometheus promql book
Jul 18, 2026

4 — Vector Matching

How PromQL matches labels between two instant vectors — ignoring/on, one-to-one vs many-to-one/one-to-many with group_left/group_right — plus arithmetic, comparison, and logical operators.

prometheus promql book
Jul 18, 2026

5 — Advanced PromQL

The complete recording-rule syntax reference (rule files, worked example, level:metric_name:operations naming), the offset and @ modifiers, and subqueries.

prometheus promql book
Jul 18, 2026

1 — Recording Rules

Why recording rules exist in an alerting pipeline: pre-computing expensive or frequently-evaluated expressions so alert rules stay cheap, and how that ties to rule-group evaluation cadence.

prometheus alerting book
Jul 18, 2026

2 — Alerting Rules

The alert state lifecycle — inactive, pending, firing — built from Prometheus's scrape and evaluation clocks, plus a line-by-line walk through a real alert rule's for:, labels:, and annotation templating.

prometheus alerting book
Jul 18, 2026

3 — Alertmanager

How Alertmanager groups and deduplicates alerts in practice — group_wait, group_interval, and repeat_interval — with routing/receiver depth and open gaps called out honestly.

prometheus alerting book
Jul 18, 2026

2 — Long-Term Storage

Why single-node Prometheus has no built-in long-term-storage or HA story, and how remote_write receivers like Thanos, Cortex, Mimir, and VictoriaMetrics fill that gap at a horizontally-scaled, multi-tenant layer.

prometheus production book
Jul 18, 2026

2 — Security

Securing the exporter-to-Prometheus link with TLS and basic auth — self-signed certs, bcrypt password hashing, tls_server_config, and end-to-end curl verification, plus an honest look at what this setup doesn't cover.

prometheus operations book
Jul 18, 2026

2 — Hands-On Labs

A sequenced, hands-on path through the practical material already covered elsewhere in this book, arranged as a lab progression for PCA readiness.

prometheus pca book
Jul 18, 2026

3 — Deep Dive Discussions

Interview-framed answers to the 'why' questions candidates get asked about Prometheus — why pull, why not SQL, why labels — honestly scoped to what this book actually has source material for.

prometheus interview-prep book
Jul 18, 2026

1 — PromQL Cheat Sheet

A grouped, copy-paste reference of node_exporter PromQL queries for CPU, memory, disk, network, swap, inode, and TCP socket questions.

prometheus appendix book
Jul 18, 2026

4 — Exporter Catalog

A lookup table of exporters covered in this book — key metrics, metric types, and what each metric tells you — for the two exporters with real worked examples in the source material.

prometheus appendix book
Jul 18, 2026

5 — Prometheus Configuration Reference

A field-by-field reference for prometheus.yml — global settings, scrape_configs options, and worked examples pulled from real multi-job configurations.

prometheus appendix book
Jul 18, 2026

6 — Common Anti-Patterns

Three concrete Prometheus anti-patterns seen in this book's source material — high-cardinality labels, invalid/reserved metric naming, and misaligned histogram_quantile buckets — with why each one breaks and where to read the full explanation.

prometheus appendix book
Jul 18, 2026

1 — Why Monitoring Exists

Evolution of monitoring, observability vs. monitoring, the USE/RED methods, the four golden signals, and SLIs/SLOs/SLAs as the vocabulary the rest of this book assumes.

prometheus foundations book

3 — TSDB Internals

The head block/WAL/compaction model underneath Prometheus's on-disk TSDB — why a cardinality spike is a storage-engine incident, not just a cost line item.

prometheus data-model book

1 — Client Libraries

Instrumenting an application directly with a Prometheus client library (Go, Java, Python, .NET, Node.js, Rust) rather than relying on exporters or auto-instrumentation.

prometheus instrumentation book

3 — Custom Instrumentation

Writing your own metrics inside application code — naming conventions, label design, and the business/performance/error/latency metric categories worth instrumenting deliberately.

prometheus instrumentation book

2 — Kubernetes Discovery

Prometheus's native Kubernetes service discovery role (pod/service/endpoints/ingress) and how the Prometheus Operator's ServiceMonitor/PodMonitor/ScrapeConfig CRDs turn that into a declarative, per-namespace scrape contract.

prometheus service-discovery book

3 — Cloud Discovery

Cloud-provider and registry-based service discovery — AWS EC2, Azure VM/Container Apps, GCP, Consul, and Eureka — for scraping targets that don't live in a single static inventory.

prometheus service-discovery book

1 — Scaling Prometheus

Federation, functional and horizontal sharding, HA server pairs, and remote_write as Prometheus's own answers to 'this one server can't hold it all anymore.'

prometheus production book

3 — Performance Tuning

Tuning Prometheus's own resource footprint and query performance — memory, CPU, WAL replay time, compaction cadence, scrape interval, and retention as levers, with cardinality as the dominant cost driver.

prometheus production book

4 — High Availability

Running Prometheus HA pairs, the duplicate-sample problem that creates, deduplication strategies, and failover/DR posture for a monitoring system that is itself a dependency.

prometheus production book

1 — Kubernetes Best Practices

Running Prometheus on Kubernetes via Helm and the Prometheus Operator's kube-prometheus-stack — RBAC scope, TLS between components, and NetworkPolicy isolation for the monitoring namespace.

prometheus operations book

3 — Troubleshooting

Diagnosing missing metrics, duplicate series, high-cardinality blowups, slow queries, WAL corruption, and memory pressure/OOMKills in a running Prometheus deployment.

prometheus operations book

1 — PCA Exam Objectives

The Prometheus Certified Associate exam blueprint, a study strategy for covering it, and the pitfalls that trip up otherwise-competent candidates.

prometheus pca book

3 — Practice Exams

Practice questions at increasing difficulty (beginner, intermediate, scenario-based) plus full-length mock exams for PCA readiness.

prometheus pca book

1 — Prometheus System Design

Designing Prometheus-based monitoring at scale — multi-region topology, HA design, cost optimization, and capacity planning as a system-design interview prompt.

prometheus interview-prep book

2 — Interview Questions

A seniority-tiered Prometheus/monitoring interview question bank, from beginner fundamentals through staff/architect-level system design and trade-off framing.

prometheus interview-prep book

4 — Real Production Architectures

Worked case studies of real Prometheus deployment shapes — Kubernetes-native, multi-cluster, hybrid-cloud, multi-tenant, large-enterprise, and SaaS monitoring platform architectures.

prometheus interview-prep book

2 — Recording Rule Cookbook

A cookbook of distinct, ready-to-paste recording rule patterns — currently the only worked examples in this book's source material are already the teaching example in Advanced PromQL, so there isn't yet a second, genuinely different set of recipes.

prometheus appendix book

3 — Alert Rule Cookbook

A cookbook of ready-to-use Prometheus alerting-rule YAML patterns — currently only one worked example exists in this book's source material (the SLO-breach alert in Alerting Rules, Part 06), not yet enough distinct patterns to call this a genuine cookbook.

prometheus appendix book

7 — PCA Exam Cheat Sheet

A condensed one-page PCA exam reference — pending the exam objectives chapter this depends on.

prometheus appendix book

8 — Interview Cheat Sheet

A condensed one-page interview-prep reference — pending the interview-question bank this depends on.

prometheus appendix book

Prometheus

A book-shaped table of contents for Prometheus: monitoring foundations through architecture, data model, instrumentation, service discovery, PromQL, alerting, production operation, PCA certification, and MAANG interview prep — cross-linking existing notes instead of duplicating them.

prometheus book reference maang-prep

Chapter 1 — Observability Architecture

Metrics, logs, traces, and profiles as the four correlated signal types every observability platform is built around.

system-design observability book
Jul 18, 2026

Chapter 2 — Telemetry Pipelines

OpenTelemetry, OTLP, collectors, sampling, and aggregation as the pipeline that gets a signal from emission to storage without becoming the outage itself.

system-design observability book
Jul 18, 2026

Chapter 3 — Monitoring at Scale

Prometheus, Mimir, Cortex, and Thanos as the horizontally-scaled answer to a single Prometheus instance running out of room.

system-design observability book
Jul 18, 2026

Chapter 4 — Alerting Systems

Multi-window burn-rate alerts, recording rules, routing, and deduplication as the difference between an actionable page and noise.

system-design observability book
Jul 18, 2026

Chapter 1 — What Changes at L6/L7

Why the bar shifts from correct designs to defensible trade-offs, and what interviewers are actually scoring for at the Principal/Staff level.

system-design mindset book

Chapter 2 — Thinking in Systems

Feedback loops, bottlenecks, failure domains, and Conway's Law as the lens principal engineers use to reason about a system before drawing a single box.

system-design mindset book

Chapter 3 — Performance Fundamentals

Latency, throughput, tail latency, Little's Law, queueing theory, Amdahl's Law, and the Universal Scalability Law as the quantitative vocabulary for every capacity conversation.

system-design mindset book

Chapter 1 — Distributed System Fundamentals

Why distributed computing is fundamentally about partial failure and unbounded message delay, not just "more than one machine."

system-design distributed-systems book

Chapter 2 — Consistency Models

The spectrum from linearizability through sequential, session, and eventual consistency, and which guarantee each one actually buys you.

system-design distributed-systems book

Chapter 3 — CAP Theorem & PACELC

Why CAP only describes behavior during a partition, and why PACELC's latency-vs-consistency trade-off matters far more often in practice.

system-design distributed-systems book

Chapter 4 — Consensus Algorithms

How Paxos and Raft achieve agreement despite failures, and where leader election, quorums, and split-brain prevention show up in real systems.

system-design distributed-systems book

Chapter 5 — Distributed Transactions

Two-phase and three-phase commit, the Saga pattern, outbox/inbox, and idempotency as the toolkit for correctness across service boundaries.

system-design distributed-systems book

Chapter 6 — Data Replication

Leader-follower, multi-leader, and leaderless replication topologies, and the replication-lag trade-offs each one accepts.

system-design distributed-systems book

Chapter 7 — Partitioning & Sharding

Hashing strategies, consistent hashing, rebalancing, and how hot partitions emerge even with a theoretically even hash function.

system-design distributed-systems book

Chapter 1 — Database Selection

A decision framework for SQL vs. NoSQL vs. time-series vs. graph vs. vector vs. object storage, driven by access pattern rather than familiarity.

system-design storage-systems book

Chapter 2 — Indexing

B+ trees, LSM trees, bloom filters, and secondary indexes, and why the write/read trade-off between them decides the storage engine underneath.

system-design storage-systems book

Chapter 3 — Storage Engines

How RocksDB, WiredTiger, InnoDB, and Cassandra's SSTables implement the indexing trade-offs above as production engines.

system-design storage-systems book

Chapter 4 — Data Lifecycle

Archival, tiered storage, TTLs, retention policy, and compression as the discipline that keeps storage cost from growing linearly with data volume forever.

system-design storage-systems book

Chapter 1 — Network Fundamentals

TCP, UDP, QUIC, and the HTTP/1.1 to HTTP/2 to HTTP/3 evolution, and which transport trade-off each protocol is actually optimizing for.

system-design networking book

Chapter 2 — RPC: REST, GraphQL, gRPC

The trade-offs between REST, GraphQL, gRPC, and ConnectRPC for service-to-service and client-facing APIs at scale.

system-design networking book

Chapter 3 — Load Balancing

L4 vs. L7 load balancing, anycast routing, and global load balancing as the layer that decides which failures are invisible to callers.

system-design networking book

Chapter 4 — CDN & Edge Caching

Edge compute, cache hierarchy design, and cache invalidation as the hardest of the "two hard problems" at global scale.

system-design networking book

Chapter 1 — Message Brokers

Kafka, Pulsar, RabbitMQ, and SQS compared on delivery guarantees, ordering, and operational model, not just throughput benchmarks.

system-design messaging book

Chapter 2 — Event Streaming, CQRS & Event Sourcing

How event sourcing and CQRS split the write and read models, and where stream processing sits between them.

system-design messaging book

Chapter 3 — Workflow Systems

Temporal and Cadence's durable-execution model as the answer to long-running, failure-resistant business processes that outlive any single process.

system-design messaging book

Chapter 1 — Cache Design Patterns

Cache-aside, write-through, write-behind, and refresh-ahead, and the staleness/consistency trade-off each pattern accepts.

system-design caching book

Chapter 2 — Distributed Cache

Redis and Memcached at scale — consistent hashing for shard ownership and the cache-coherence problem when writes fan out.

system-design caching book

Chapter 1 — Reliability: SLI, SLO, SLA & Error Budgets

How SLIs roll up into SLOs, SLOs into error budgets, and error budgets into the release-velocity decisions a principal engineer actually gets asked to defend.

system-design reliability book

Chapter 2 — Resilience Patterns

Retry, timeout, circuit breaker, bulkhead, hedging, and adaptive concurrency as the patterns that contain a failure instead of letting it cascade.

system-design reliability book

Chapter 3 — Disaster Recovery

RTO and RPO as the two numbers that actually define a DR strategy, and the backup/restore and multi-region trade-offs behind hitting them.

system-design reliability book

Chapter 4 — Chaos Engineering & Game Days

Fault injection and game days as the practice of finding a system's failure modes on your own schedule instead of production's.

system-design reliability book

Chapter 1 — Compute Platforms

VMs, Kubernetes, serverless, and containers compared on the operational responsibility each one leaves with your team.

system-design cloud book

Chapter 2 — Cloud Storage Services

Blob storage, object storage, and distributed file systems, and which durability/latency/cost point each is built around.

system-design cloud book

Chapter 3 — Multi-Cloud Architecture

Hybrid cloud, cloud migration, and the vendor lock-in trade-offs that make "just go multi-cloud" harder than it sounds.

system-design cloud book

Chapter 1 — Identity: OAuth, OIDC, JWT, SPIFFE, mTLS

The identity stack for humans and workloads — OAuth/OIDC for users, JWTs as bearer tokens, SPIFFE/mTLS for service-to-service trust.

system-design security book

Chapter 2 — Security Architecture & Zero Trust

Zero trust, secrets management, and encryption/KMS as the assumption that the network perimeter was never actually the security boundary.

system-design security book

Chapter 1 — Scaling Patterns

Horizontal vs. vertical scaling, autoscaling, and load shedding as the toolkit for absorbing load spikes without over-provisioning permanently.

system-design scalability book

Chapter 2 — Geo-Distributed Systems

Multi-region active-active vs. active-passive topologies, and the consistency and failover trade-offs each one makes.

system-design scalability book

Chapter 3 — Cost Engineering & FinOps

Capacity planning, FinOps, and resource optimization as the discipline that keeps reliability decisions honest about what they cost.

system-design scalability book

Chapter 4 — Capacity Planning System

Growth modeling, headroom analysis, cost vs. reliability simulation.

system-design maang-prep book

Chapter 1 — Monoliths & the Modular Monolith

Why a well-modularized monolith is a legitimate architecture choice, and how it evolves into services under real pressure, not fashion.

system-design architecture-patterns book

Chapter 2 — Microservices

Service boundary design and the anti-patterns — distributed monolith, shared database, chatty synchronous calls — that erase the benefits microservices promise.

system-design architecture-patterns book

Chapter 3 — Event-Driven Architecture

Decoupling services through events rather than direct calls, and the ordering/consistency trade-offs that decoupling introduces.

system-design architecture-patterns book

Chapter 4 — Data Mesh

Decentralizing data ownership to domain teams as a data-platform architecture, and the governance model that keeps it from fragmenting.

system-design architecture-patterns book

Chapter 5 — Service Mesh

Sidecar-based traffic management, mTLS, and observability at the network layer, and when the operational cost is worth paying.

system-design architecture-patterns book

Chapter 6 — Platform Engineering

Why platform engineering is the organizational answer to microservices and infrastructure sprawl at scale.

system-design architecture-patterns book

Chapter 1 — Designing AI Systems: RAG & Vector Databases

Retrieval-augmented generation, vector databases, embeddings, and agent architectures as the components of an LLM-backed system design.

system-design ai-systems book

Chapter 2 — AI Infrastructure

GPU scheduling, inference serving, and model-serving architecture as the infrastructure layer underneath every AI product design.

system-design ai-systems book

Chapter 3 — AI Observability

Extending metrics, logs, and traces to LLM-specific signals — token cost, latency per generation step, and quality/hallucination drift.

system-design ai-systems book

Chapter 1 — Interview Methodology

Requirement gathering, capacity estimation, API design, data modeling, scaling, and bottleneck analysis as the repeatable sequence behind every design in this book.

system-design interview-prep book

Chapter 2 — Whiteboarding & Communication

Diagramming and narrating a design out loud so an interviewer can follow the trade-off reasoning, not just the final architecture.

system-design interview-prep book

Chapter 3 — Architecture Reviews: Defending Decisions

Handling interviewer pushback and "what if 10x scale" challenges without abandoning a defensible design under pressure.

system-design interview-prep book

Chapter 2 — Metrics Storage (TSDB)

Write amplification, chunk encoding, compaction, cardinality explosion.

system-design observability maang-prep book

Chapter 3 — Log Aggregation System

Structured vs. unstructured, schema-on-read vs. schema-on-write, deduplication.

system-design observability maang-prep book

Chapter 4 — Distributed Tracing Backend

Trace assembly from spans, tail-based vs. head-based sampling.

system-design observability maang-prep book

Chapter 5 — OpenTelemetry Collector Pipeline

Multi-pipeline routing, processor chaining, exporter fan-out.

system-design observability maang-prep book

Chapter 6 — Multi-tenant Observability Platform

Tenant isolation, quota enforcement, cost attribution.

system-design observability maang-prep book

Chapter 7 — SLO / Error Budget Tracking System

Burn rate calculation, multi-window alerting, budget ledger.

system-design observability maang-prep book

Chapter 8 — Distributed Message Queue (Kafka-like)

Partitioning, consumer groups, at-least-once vs. exactly-once.

system-design distributed-systems maang-prep book

Chapter 9 — Distributed Key-Value Store (DynamoDB-like)

Consistent hashing, replication, read/write quorum.

system-design distributed-systems maang-prep book

Chapter 10 — Stream Processing System (Flink-like)

Watermarks, windowing, stateful operators, exactly-once.

system-design distributed-systems maang-prep book

Chapter 11 — Rate Limiter (Distributed)

Token bucket, leaky bucket, sliding window, Redis-backed global limiter.

system-design distributed-systems maang-prep book

Chapter 12 — Consensus & Leader Election

Raft/Paxos, split-brain prevention, fencing tokens.

system-design distributed-systems maang-prep book

Chapter 13 — Runbook Automation / AIOps Engine

LLM-powered diagnosis, trigger-action mappings, safety guardrails.

system-design aiops maang-prep book

Chapter 14 — Observability Data Lake

Cold/warm/hot tiers, Parquet storage, query federation (Thanos/Cortex/Mimir).

system-design aiops maang-prep book

Chapter 15 — Cost Optimization Pipeline

Adaptive sampling, metric drop rules, cardinality-aware ingestion.

system-design aiops maang-prep book

Chapter 16 — Incident Management Platform

Alert correlation, incident lifecycle, escalation, runbook automation.

system-design aiops maang-prep book

Chapter 17 — Distributed Search Engine (Elasticsearch-like)

Inverted indexes, sharding, near-real-time indexing.

system-design maang-prep book

Chapter 18 — URL Shortener

The canonical warm-up case study — ID generation strategy and read-heavy caching are the whole design.

system-design case-studies book

Chapter 19 — Distributed Cache (Case Study)

Designing a Redis/Memcached-like distributed cache end-to-end: sharding, eviction, and cache-coherence under concurrent writes.

system-design case-studies book

Chapter 20 — Notification Platform

Fan-out to push, email, and SMS channels with per-channel rate limits, retries, and delivery-guarantee trade-offs.

system-design case-studies book

Chapter 21 — Chat System

Real-time message delivery, presence, and ordering guarantees at the scale of a WhatsApp/Messenger-like system.

system-design case-studies book

Chapter 22 — Video Streaming

Transcoding pipelines, adaptive bitrate delivery, and CDN placement for a YouTube/Netflix-like streaming platform.

system-design case-studies book

Chapter 23 — News Feed

Fan-out-on-write vs. fan-out-on-read ranking delivery for a Facebook/Twitter-like feed at scale.

system-design case-studies book

Chapter 24 — Collaborative Document Editor

Operational transforms and CRDTs for real-time multi-user editing in a Google Docs-like system.

system-design case-studies book

Chapter 25 — Ride-Hailing Platform (Uber-like)

The end-to-end system: rider/driver matching, geospatial indexing, and surge pricing under real-time load.

system-design case-studies book

Chapter 26 — Ride Matching Engine

The matching sub-problem in isolation — geospatial indexing (geohash/quadtree/H3) and the matching algorithm's latency budget.

system-design case-studies book

Chapter 27 — Payment System

Idempotent transaction processing, ledger design, and exactly-once semantics where a bug means real money moves twice.

system-design case-studies book

Chapter 28 — Distributed Lock Service

A ZooKeeper/etcd-like coordination service — leases, fencing tokens, and the split-brain failure mode that makes distributed locks genuinely hard.

system-design case-studies book

Chapter 29 — Kubernetes Control Plane

etcd, the API server, schedulers, and controllers as a distributed-systems case study in their own right, not just an operator's tool.

system-design case-studies book

Chapter 30 — GitHub-Scale Version Control

Git object storage, fork/merge at scale, and the read-heavy caching layer behind a GitHub-like hosting platform.

system-design case-studies book

Chapter 31 — API Gateway

Routing, auth, rate limiting, and protocol translation as the single front door for a large service fleet.

system-design case-studies book

Chapter 32 — Multi-Tenant SaaS Platform

Tenant isolation, noisy-neighbor containment, and per-tenant cost attribution for a shared-infrastructure SaaS product.

system-design case-studies book

Chapter 33 — Recommendation Engine

Candidate generation, ranking, and the online/offline serving split behind a recommendation system at scale.

system-design case-studies book

Chapter 34 — Feature Flag Platform

Low-latency flag evaluation, targeting rules, and safe rollout/rollback as a system design in its own right.

system-design case-studies book

Chapter 35 — Secrets Manager

Envelope encryption, key rotation, and access-audit trails for a Vault/KMS-like secrets platform.

system-design case-studies book

Chapter 36 — Distributed Scheduler

Cron-at-scale: exactly-once trigger semantics, backfill, and leader election for the scheduler itself.

system-design case-studies book

Chapter 37 — CI/CD Platform

Build queueing, artifact caching, and progressive-delivery rollout as a system design for a GitHub Actions/Jenkins-like platform.

system-design case-studies book

Chapter 38 — Object Storage (S3-like)

Erasure coding, durability math, and the eventually-consistent vs. strongly-consistent listing trade-off behind an S3-like store.

system-design case-studies book

Chapter 39 — Cloud File Storage (Google Drive-like)

Chunked upload/sync, conflict resolution, and metadata-service design for a Drive/Dropbox-like file-sync system.

system-design case-studies book

Chapter 40 — Distributed SQL Database

A Spanner/CockroachDB-like design combining consensus-replicated storage with a SQL query layer and distributed transactions.

system-design case-studies book

Chapter 41 — Large-Scale AI Agent Platform

Serving thousands of concurrent LLM agent sessions — tool-call orchestration, memory/state, and cost-aware model routing at fleet scale.

system-design case-studies book

Chapter 1 — Architectural Decision Records

Why an ADR outlives the meeting that produced it, and the Context/Decision/Consequences structure that makes one actually useful later.

system-design principal-engineer book

Chapter 2 — Evolutionary Architecture

Designing for incremental change rather than a big-bang rewrite, and the fitness functions that keep an architecture from drifting.

system-design principal-engineer book

Chapter 3 — Build vs. Buy

The decision framework for build-vs-buy that goes beyond cost — differentiation, lock-in, and long-term maintenance burden.

system-design principal-engineer book

Chapter 4 — Organization Scaling

How team topology and Conway's Law force architecture decisions as an org grows past the size where everyone fits in one room.

system-design principal-engineer book

Chapter 5 — Platform Strategy

Positioning a platform as an internal product with a roadmap, not a shared-services team that reacts to tickets.

system-design principal-engineer book

Chapter 6 — Engineering Economics

Framing technical decisions in terms of cost, risk, and opportunity cost so they're defensible to a non-engineering stakeholder.

system-design principal-engineer book

Chapter 7 — Technical Debt Management

Distinguishing deliberate from accidental technical debt, and the prioritization model for paying it down against feature work.

system-design principal-engineer book

Chapter 8 — Leading Cross-Functional Architecture

Driving an architecture decision across teams that don't report to you, using influence rather than authority.

system-design principal-engineer book

Chapter 9 — Executive Communication

Translating an architecture decision into the risk/cost/timeline framing an executive audience actually needs to approve it.

system-design principal-engineer book

Chapter 10 — Principal Engineer Interview Preparation

How the L6/L7 loop differs from senior-level loops — the narrative, leadership, and technical-vision signals interviewers are calibrated to look for.

system-design principal-engineer book

1 — What Observability Actually Means

Observability vs. monitoring, the three-pillars critique, and why observability is a property of how a system was instrumented — not a tool you bought or a dashboard you built.

observability foundations book
Jul 17, 2026

2 — The Signals

Metrics, logs, traces, profiles, and events — what each is built to capture, what it costs, and which question it actually answers vs. which one people mistakenly ask it.

observability foundations book
Jul 17, 2026

7 — Multi-Tenancy

Two separate guarantees hiding under one name — data isolation and performance fairness — and the tenant identification, quota enforcement, and selective backpressure that make both hold under shared infrastructure.

observability multi-tenancy finops book
Jul 17, 2026

8 — Self-Observability

The bootstrapping problem — a platform can't fully trust itself to tell you it's failing — and the two mechanisms that get around it: an independent out-of-band health path, and a synthetic canary that catches silent stalls no internal metric surfaces.

observability multi-tenancy finops book
Jul 17, 2026

5 — Label & Attribute Schema Design

Cardinality budget, naming conventions, and the high-churn label traps that turn a cheap metric into a production incident — the design discipline for the labels semantic conventions don't already cover for you.

observability instrumentation opentelemetry book
Jul 17, 2026

7 — Metrics Storage (TSDB)

Chunk/block encoding, the write-ahead log, compaction and the write amplification it trades for query speed, and why a cardinality spike is a storage-engine problem, not just a cost line item.

observability storage query book
Jul 17, 2026

8 — Log Aggregation

Schema-on-write vs. schema-on-read as competing bets about when to pay indexing cost, and the two different deduplication problems a log pipeline actually has to solve.

observability storage query book
Jul 17, 2026

7 — Distributed Tracing Backend

How spans that arrive out of order, from different services, get assembled into one trace — and the two competing storage models (indexed search vs. object storage plus a trace-ID lookup) that trade query flexibility for cost.

observability storage query book
Jul 17, 2026

5 — Continuous Profiling

What makes always-on, sampling-based profiling cheap enough to run in production continuously, why it earns that cost mainly for hot or expensive services, and how a profile correlates back to the one trace that was running during the sample.

observability aiops profiling book
Jul 17, 2026

1 — OpenTelemetry SDKs & Semantic Conventions

OpenTelemetry is a specification and an API/SDK, not a backend — the pieces that make it up, and the semantic-convention vocabulary that lets two unrelated teams' telemetry be queried the same way.

observability instrumentation opentelemetry book
Jul 17, 2026

4 — Auto vs. Manual Instrumentation

Four ways a span gets created — hand-written, framework-level auto-instrumentation, eBPF, and service-mesh sidecar capture — and the trade-off between code changes and business context each one makes.

observability instrumentation opentelemetry book
Jul 17, 2026

9 — OTel Collector Pipeline Design

Receivers, processors, and exporters chained into a pipeline; why a platform runs more than one; and the agent/gateway topology that tail sampling specifically forces on that design.

observability pipeline opentelemetry book
Jul 17, 2026

1 — Dashboard Design

The three-question test for a vanity panel, why the same underlying data needs a different dashboard for different audiences, and the top-down layout that mirrors how an investigation actually drills down.

observability slo alerting incident-response book
Jul 17, 2026

1 — Alerting & Alert Routing

Symptom-based vs. cause-based alerting, the noise-reduction problem (dedup, grouping, correlation), and routing/escalation — the design discipline standing between a real page and a bad one.

observability slo alerting incident-response book
Jul 17, 2026

2 — SLOs & Error Budgets

SLI/SLO/SLA, the error budget as a spendable resource rather than a compliance number, burn rate as the mechanism connecting the two, and why multi-window multi-burn-rate alerting exists at all.

observability slo alerting incident-response book
Jul 17, 2026

5 — Security & Compliance

Why PII ends up in telemetry by accident rather than by design, the pipeline-layer scrubbing that catches what application discipline misses, tenant-scoped access control, and why the query audit log is itself security-relevant telemetry.

observability multi-tenancy finops book
Jul 17, 2026

1 — Building a Platform Team

A platform team's product is other teams' ability to self-serve reliable telemetry — team topology, the paved road that makes everything earlier in this book the default instead of a manual step, and the ticket-queue failure mode to watch for.

observability platform-team narrative book
Jul 17, 2026

2 — Driving Adoption

A paved road nobody travels on didn't help anyone — onboarding time as the leading indicator, self-service as the mechanism that actually moves it, and why migrating an existing service is a harder adoption problem than a greenfield one.

observability platform-team narrative book
Jul 17, 2026

4 — Observability-Driven Development

The TDD analogy taken seriously: SLOs and instrumentation defined at design time as acceptance criteria, not retrofitted after an incident — and why this only sticks as a launch gate, not a guideline.

observability aiops profiling book
Jul 17, 2026

1 — AIOps / Agentic RCA

What's actually new versus a static runbook — an investigation loop, not a fixed trigger-action mapping — why it depends on everything earlier in this book already being solid, and the read-vs-write safety line most real deployments draw.

observability aiops profiling book
Jul 17, 2026

8 — Case Study: Reactive → Resilient → Autonomous

An illustrative three-act arc — built on the ShipSolid platform maturity model, not any single real deployment — showing why the disciplined middle act is what actually earns the reliability, and why the autonomous act doesn't work without it.

observability platform-team narrative book
Jul 17, 2026

3 — Telemetry Lifecycle

Traces a signal path from generation through collection, transport, storage, query, visualization, alerting, and retention.

observability foundations book

4 — Observability Maturity Model

Maps the crawl/walk/run/autonomous stages of observability maturity to concrete platform and process capabilities.

observability foundations book

1 — Designing An Observability Platform

Frames a platform-level design exercise: ingestion scale, tenancy, storage tiering, and query latency as first-class requirements.

observability architecture book

2 — Data Plane vs Control Plane

Separates the high-throughput telemetry data path from the low-throughput configuration/policy path, and why conflating them causes outages.

observability architecture book

4 — Agent Based vs Agentless Collection

Weighs sidecar/DaemonSet agents against agentless eBPF or vendor-API scraping for coverage, overhead, and maintenance cost.

observability architecture book

5 — Edge Aggregation

Covers pre-aggregating and filtering telemetry at the collection edge to cut cardinality and egress cost before it reaches the backend.

observability architecture book

6 — Centralized vs Federated Observability

Contrasts a single global observability backend against per-region or per-BU federated backends with cross-federation query.

observability architecture book

1 — Time Series Fundamentals

Covers the time-series data model — series identity, sample resolution, and the write/query tradeoffs baked into that model.

observability metrics book

2 — Metric Types

Distinguishes counter, gauge, histogram, and summary semantics and the aggregation rules each type permits or forbids.

observability metrics book

4 — Cardinality Management

Covers estimating and bounding active series count before a label change ships, and the incident patterns an unbounded label causes.

observability metrics book

6 — Recording Rules

Covers pre-computing expensive PromQL expressions into new series to keep dashboard and alert queries fast at scale.

observability metrics book

1 — Structured Logging

Covers moving from freeform text logs to structured key-value records that a query engine can filter and aggregate on.

observability logging book

2 — Log Schemas

Covers designing a consistent field schema across services so logs from different teams remain queryable together.

observability logging book

4 — Log Pipelines

Covers the collection-to-storage pipeline for logs — parsing, enrichment, and routing before they land in a backend.

observability logging book

5 — Log Sampling

Covers reducing log volume by sampling non-error traffic while preserving full fidelity on errors and slow requests.

observability logging book

6 — Log Retention

Covers setting retention windows per log tier and the tradeoff between debugging lookback and storage cost.

observability logging book

7 — Cost Optimization

Covers the log-specific levers — sampling, field-level filtering, and tiered storage — for controlling ingest and storage spend.

observability logging book

1 — Why Tracing Exists

Covers the request-fan-out problem that metrics and logs can't solve alone, and why tracing became necessary in microservice architectures.

observability tracing book

2 — Trace Context

Covers the trace ID / span ID / trace flags that identify a request and its position in a trace, and how they are carried across process boundaries.

observability tracing book

3 — Span Modeling

Covers what a span should represent — operation boundaries, parent/child relationships, and span attributes vs. events.

observability tracing book

4 — Context Propagation

Covers how trace context survives async boundaries, message queues, and batch jobs — and the common places it silently breaks.

observability tracing book

5 — Trace Sampling

Covers head-based sampling decisions made at trace start, and their tradeoff against tail-based sampling on completeness vs. cost.

observability tracing book

6 — Tail Sampling

Covers sampling decisions made after a trace completes, keeping error and slow traces at the cost of buffering full traces at the collector.

observability tracing book

8 — Service Graphs

Covers deriving a live service dependency graph from trace data, and using it for blast-radius and dependency-health analysis.

observability tracing book

1 — CPU Profiling

Covers sampling-based CPU profiling — what a flame graph represents and how to read one to find a hot function.

observability profiling book

2 — Memory Profiling

Covers allocation profiling and how it differs from CPU profiling in what it samples and what questions it answers.

observability profiling book

3 — Heap Analysis

Covers heap snapshot analysis for finding retained-object leaks that GC alone will not surface.

observability profiling book

4 — Goroutines and Threads

Covers profiling concurrency primitives — goroutine/thread counts and blocking profiles — to find contention and leaks.

observability profiling book

10 — Collector Pipelines

Covers composing multiple named pipelines in one Collector for signal-specific or team-specific routing.

observability opentelemetry book

11 — Processors

Covers batching, filtering, attribute-mutation, and tail-sampling processors and the order sensitivity of a processor chain.

observability opentelemetry book

12 — Exporters

Covers configuring multiple concurrent exporters and the retry/queueing behavior that protects against backend outages.

observability opentelemetry book

13 — Connectors

Covers connectors that derive one signal type from another inside the Collector, e.g. generating span metrics from trace data.

observability opentelemetry book

14 — Scaling Collectors

Covers horizontally scaling Collector fleets — load balancing, trace-ID-hash routing for tail sampling, and per-tier resource sizing.

observability opentelemetry book

2 — OTLP Protocol

Covers the OTLP wire protocol — its protobuf schema and gRPC/HTTP transport — as the common export format across signals.

observability opentelemetry book

3 — SDK Internals

Covers how an OTel SDK turns instrumentation calls into batched, exported telemetry — processors, exporters, and the pipeline between them.

observability opentelemetry book

5 — Manual Instrumentation

Covers hand-written spans, metrics, and log correlation for business-specific telemetry auto-instrumentation cannot infer.

observability opentelemetry book

6 — Semantic Conventions

Covers OTel's shared attribute vocabulary and why consistent naming is what makes two teams' telemetry queryable together.

observability opentelemetry book

7 — Resources

Covers Resource attributes — the identity of the process/host/service emitting telemetry — as distinct from per-signal attributes.

observability opentelemetry book

1 — Instrumenting Web APIs

Covers span and metric conventions for HTTP/gRPC API instrumentation — route templating, status code buckets, and latency histograms.

observability instrumentation book

2 — Microservices

Covers instrumenting service-to-service calls consistently enough that a fleet-wide service graph and RED dashboard fall out for free.

observability instrumentation book

3 — Messaging Systems

Covers instrumenting producer/consumer boundaries in queues and streams, where trace context propagation is easiest to get wrong.

observability instrumentation book

4 — Databases

Covers instrumenting query spans and connection-pool metrics without leaking query parameter values as high-cardinality attributes.

observability instrumentation book

5 — Caches

Covers hit/miss/eviction metrics and cache-specific span attributes that distinguish a cache problem from a backing-store problem.

observability instrumentation book

6 — Kubernetes Workloads

Covers instrumenting pods and controllers so workload telemetry correlates cleanly with cluster-level Kubernetes signals.

observability instrumentation book

7 — Serverless

Covers instrumenting cold-start latency and short-lived execution contexts where traditional agent-based collection does not fit.

observability instrumentation book

8 — Batch Jobs

Covers instrumenting long-running, non-request-driven jobs where RED-method dashboards do not directly apply.

observability instrumentation book

9 — Background Workers

Covers instrumenting queue-consumer worker pools — backlog depth, processing latency, and retry/dead-letter visibility.

observability instrumentation book

1 — Kubernetes Metrics

Covers the cAdvisor/kubelet/kube-state-metrics metric surfaces and which one answers which question about a cluster.

observability kubernetes book

2 — Control Plane Monitoring

Covers monitoring the API server, etcd, scheduler, and controller-manager — the control plane's own health as a distinct concern from workload health.

observability kubernetes book

3 — Node Monitoring

Covers node-level resource pressure signals and how they surface as pod evictions and scheduling failures.

observability kubernetes book

4 — Pod Monitoring

Covers pod lifecycle, restart, and readiness/liveness signal correlation with application-level telemetry.

observability kubernetes book

5 — Cluster Events

Covers the Kubernetes Events API as a signal type distinct from metrics and logs, and its short default retention.

observability kubernetes book

6 — Container Runtime

Covers container-runtime-level signals (CRI metrics, OOM kills) that sit below the kubelet's own reporting.

observability kubernetes book

7 — Service Mesh Observability

Covers the telemetry a sidecar mesh generates for free — mTLS, retries, and per-hop latency — versus what still needs app-level instrumentation.

observability kubernetes book

8 — eBPF Based Observability

Covers kernel-level eBPF telemetry collection as a zero-instrumentation alternative for network and syscall-level visibility.

observability kubernetes book

1 — AWS

Covers CloudWatch's metric/log/trace surfaces and where AWS-native telemetry needs augmenting with OTel for cross-account visibility.

observability cloud book

2 — Azure

Covers Azure Monitor and Application Insights as the native telemetry surface, and their integration points with an OTel-based pipeline.

observability cloud book

3 — Google Cloud

Covers Google Cloud's operations suite (Cloud Monitoring/Logging/Trace) and its native OTLP ingestion path.

observability cloud book

4 — Hybrid Cloud

Covers unifying telemetry across on-prem and cloud environments where network topology and identity differ per environment.

observability cloud book

5 — Multi Cloud

Covers the added complexity of a telemetry pipeline that must normalize signals from more than one cloud provider's native tooling.

observability cloud book

1 — Prometheus

Covers Prometheus as the reference pull-based metrics engine — see the dedicated Prometheus book for full depth; this chapter covers only its role in the broader platform.

observability data-platforms book

3 — Loki

Covers Loki's index-light, label-indexed log storage model and how it differs from full-text log indexing.

observability data-platforms book

4 — Tempo

Covers Tempo’s object-storage-backed, trace-ID-lookup model for cost-efficient distributed trace storage.

observability data-platforms book

5 — Pyroscope

Covers Pyroscope as a continuous-profiling backend and its data model for flame-graph-over-time queries.

observability data-platforms book

6 — Elasticsearch

Covers Elasticsearch as a full-text-indexed log and event store, and its cost/flexibility tradeoff against label-indexed alternatives.

observability data-platforms book

7 — Clickhouse

Covers ClickHouse as a columnar OLAP engine increasingly used as a unified backend for logs, traces, and wide events.

observability data-platforms book

8 — Opensearch

Covers OpenSearch as the open-source Elasticsearch fork and its divergence points relevant to an observability backend choice.

observability data-platforms book

3 — RED Method

Covers Rate/Errors/Duration as the request-driven-service adaptation of the golden signals.

observability visualization book

4 — USE Method

Covers Utilization/Saturation/Errors as the resource-driven adaptation of the golden signals, for infrastructure rather than services.

observability visualization book

5 — Executive Dashboards

Covers designing business-outcome dashboards for an audience that does not want a raw p99 latency panel.

observability visualization book

6 — Engineering Dashboards

Covers designing debugging-oriented dashboards for the on-call engineer, optimized for time-to-first-signal during an incident.

observability visualization book

7 — Business Observability

Covers connecting telemetry to business KPIs — conversion, revenue, order completion — so reliability work has a business narrative.

observability visualization book

2 — Symptoms vs Causes

Covers distinguishing 'users are affected' alerts from 'a specific subsystem misbehaved' alerts, and why only the former should page.

observability alerting book

3 — Slo Based Alerts

Covers deriving alert thresholds from an SLO's error budget rather than from arbitrary static thresholds.

observability alerting book

4 — Multi Window Burn Rate Alerts

Covers the multi-window, multi-burn-rate alerting technique that balances fast detection against alert noise.

observability alerting book

5 — Alert Deduplication

Covers grouping and suppressing duplicate alerts from the same root cause so on-call sees one page, not fifty.

observability alerting book

6 — Routing

Covers alert routing rules — team ownership, severity, and escalation paths — as configuration distinct from the alert condition itself.

observability alerting book

7 — Alert Fatigue

Covers diagnosing and reversing an alert-fatigue trend before it causes a real page to get ignored.

observability alerting book

8 — On Call Engineering

Covers structuring on-call rotations, handoffs, and runbook discipline as an engineering practice, not just a schedule.

observability alerting book

1 — SLIs

Covers choosing a Service Level Indicator that actually reflects user-perceived reliability, not just what's easiest to measure.

observability reliability book

3 — Error Budgets

Covers treating the error budget as a spendable risk resource that governs release velocity, not a compliance scorecard.

observability reliability book

4 — Incident Detection

Covers the telemetry-to-detection path — how observability signals trigger the moment an incident is declared.

observability reliability book

6 — Postmortems

Covers writing a blameless postmortem that traces the incident timeline back to instrumentation and observability gaps, not just the code fix.

observability reliability book

7 — Chaos Engineering

Covers using deliberate fault injection to validate that observability signals actually fire the way an incident response plan assumes.

observability reliability book

1 — Cost Drivers

Covers the ingest-volume, cardinality, and retention-window levers that actually drive observability platform cost.

observability cost book

2 — Telemetry Sampling

Covers sampling as a cost lever across all three signal types, and the fidelity it trades away.

observability cost book

3 — Downsampling

Covers reducing metric resolution over time as data ages, and the query-accuracy tradeoff that comes with it.

observability cost book

4 — Retention Policies

Covers setting differentiated retention per signal type and per tier, driven by actual debugging-lookback needs rather than defaults.

observability cost book

5 — Compression

Covers the compression techniques (chunk encoding, columnar compression) that let TSDBs and log stores shrink storage cost per sample.

observability cost book

6 — Tiered Storage

Covers hot/warm/cold storage tiering — recent data on fast disks, older data in object storage — and its query-latency tradeoff.

observability cost book

7 — FinOps for Observability

Covers attributing observability spend back to the teams generating the telemetry, and using that attribution to drive down cost at the source.

observability cost book

1 — RBAC

Covers role-based access control for telemetry — who can query which tenant or team’s data, and at what granularity.

observability security book

2 — Multi Tenancy

Covers the isolation guarantees a shared observability platform must enforce so one tenant can never read another’s telemetry.

observability security book

3 — Data Privacy

Covers the privacy obligations that apply to telemetry data specifically, distinct from the privacy obligations on the underlying application data.

observability security book

4 — PII Redaction

Covers how PII ends up in telemetry by accident (log lines, span attributes, user IDs) and where in the pipeline to catch it.

observability security book

6 — Audit Logging

Covers the query audit log — who ran what query against what data — as security telemetry about the platform itself.

observability security book

7 — Secret Management

Covers keeping API keys, tokens, and credentials out of telemetry payloads and out of collector/exporter configuration in plaintext.

observability security book

3 — Telemetry Pipelines

Covers building the reusable pipeline infrastructure (Collector fleets, routing config) that self-service onboarding depends on.

observability platform-engineering book

5 — GitOps

Covers deploying observability-as-code configuration through the same GitOps reconciliation loop as application deployments.

observability platform-engineering book

6 — Terraform

Covers managing observability backend resources (data sources, alert rules, access policies) as Terraform-managed infrastructure.

observability platform-engineering book

7 — Platform APIs

Covers designing the API surface a platform team exposes so other teams can provision telemetry resources programmatically.

observability platform-engineering book

8 — Multi Region Design

Covers designing an observability platform's own multi-region topology so it does not share a single point of failure with the workloads it observes.

observability platform-engineering book

2 — Root Cause Analysis

Covers automated root-cause analysis as an investigation loop over existing telemetry, not a fixed trigger-action mapping.

observability aiops book

3 — Anomaly Detection

Covers statistical and ML-based anomaly detection on time series, and its false-positive tradeoff against static thresholds.

observability aiops book

4 — Event Correlation

Covers correlating alerts, deploys, and changes across systems to collapse a flood of related signals into one incident.

observability aiops book

5 — Predictive Alerting

Covers forecasting-based alerting that pages before a threshold breach, and the calibration risk that comes with prediction.

observability aiops book

6 — LLM Assisted Troubleshooting

Covers using an LLM over existing telemetry for incident triage, and the hard boundary between read-only investigation and write-capable remediation.

observability aiops book

7 — Autonomous Remediation

Covers safely scoping autonomous remediation actions, and why the read/write safety line matters more here than anywhere else in the stack.

observability aiops book

1 — Observability System Design Questions

Covers the recurring system-design prompt shape — 'design a metrics/logging/tracing platform at scale' — and the tradeoffs interviewers probe for.

observability maang-prep book

2 — Troubleshooting Case Studies

Covers worked troubleshooting scenarios (e.g. a collector agent pinned at 100% CPU) as a rehearsal for live debugging interview questions.

observability maang-prep book

3 — Telemetry Design Exercises

Covers exercises in designing the telemetry (metrics/logs/traces/labels) for a given service from scratch, a common interview format.

observability maang-prep book

4 — Incident Walkthroughs

Covers narrating a real incident timeline and RCA in interview-answer form, structured for a behavioral or systems-thinking question.

observability maang-prep book

5 — Production Debugging

Covers the live-debugging interview format — given a symptom, which signal do you check first and why.

observability maang-prep book

6 — Capacity Planning

Covers estimating ingest rate, series count, and storage growth for a hypothetical platform, a common quantitative interview question.

observability maang-prep book

7 — Scaling to Millions of Metrics

Covers the specific architectural changes (sharding, downsampling, federation) required as series count crosses common scale thresholds.

observability maang-prep book

8 — Whiteboard Architecture Problems

Covers open-ended whiteboard prompts on observability platform architecture and the tradeoff-driven answer structure interviewers expect.

observability maang-prep book

9 — Maang Interview Questions

Covers a curated question bank spanning system design, troubleshooting, and behavioral formats specific to MAANG-level observability/SRE interviews.

observability maang-prep book

1 — Uber

Covers Uber's published observability architecture and scaling decisions as a case study, cited from public engineering sources.

observability case-studies book

2 — Google

Covers Google's observability practices (Monarch, Dapper) and their influence on the broader industry's approach, cited from public sources.

observability case-studies book

3 — Meta

Covers Meta's internal observability and tracing infrastructure as described in public engineering writing.

observability case-studies book

4 — Netflix

Covers Netflix's observability and chaos engineering practices as described in public engineering writing.

observability case-studies book

5 — Amazon

Covers Amazon's operational excellence and observability practices as described in public engineering writing.

observability case-studies book

6 — Microsoft

Covers Microsoft's observability practices across Azure and first-party services as described in public engineering writing.

observability case-studies book

7 — Cloud Native CNCF Projects

Covers the CNCF observability landscape (OTel, Prometheus, and related projects) as a case study in open-source-driven standardization.

observability case-studies book

1 — OpenTelemetry Semantic Conventions

A quick-reference index of OTel semantic convention attribute names by signal and domain.

observability reference book

10 — Production Readiness Checklist

A reference checklist for verifying a service has adequate observability coverage before a production launch.

observability reference book

2 — Promql Cheat Sheet

A quick-reference index of common PromQL functions and query patterns.

observability reference book

3 — Logql Cheat Sheet

A quick-reference index of common LogQL query patterns for Loki.

observability reference book

4 — Traceql Cheat Sheet

A quick-reference index of common TraceQL query patterns for Tempo.

observability reference book

5 — OTLP Reference

A quick-reference index of the OTLP protocol's message types and transport options.

observability reference book

6 — Kubernetes Telemetry Reference

A quick-reference index of Kubernetes-native telemetry sources and what each one exposes.

observability reference book

7 — Observability Design Patterns

A quick-reference index of recurring observability design patterns introduced throughout this book.

observability reference book

8 — Common Anti Patterns

A quick-reference index of common observability anti-patterns and the failure mode each one causes.

observability reference book

9 — Telemetry Cost Estimation

A worked reference for estimating telemetry ingest volume and cost from service count, request rate, and label cardinality.

observability reference book

Observability Engineering

A book-shaped table of contents for observability engineering: foundations through architecture, metrics, logging, tracing, profiling, OpenTelemetry, instrumentation, Kubernetes/cloud, data platforms, visualization, alerting, SRE integration, cost, security, platform engineering, AI-driven operations, and MAANG interview preparation — cross-linking existing prometheus/grafana-cloud/kubernetes/sre/platform-engineering notes instead of duplicating them.

observability book reference maang-prep

# Agentic Ai Projects And Mastery

All Agentic Ai Projects And Mastery notes →

1.1 Setting Up the Development Environment

Python project setup, virtual environments, and installing the OpenAI SDK, LangChain, and LangGraph so the rest of the book's code samples run without friction.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

1.2 Creating a Tool-Using Agent

Designing an agent from scratch — defining tools, wiring tool calling, building prompt templates, and generating a final response, without a framework in the way.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

1.3 Building Agents with LangGraph

Why LangGraph exists, its state-management model, nodes, edges, conditional routing, and how the execution flow maps onto the five-component agent loop.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

1.4 Testing and Debugging Agents

Unit testing tools in isolation, mocking LLM calls, debugging a live agent flow, and a troubleshooting guide for the failure scenarios that recur across every agent built in this book.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

2. Build an MCP Server

A guided, hands-on build of a Model Context Protocol server exposing a real tool (e.g., an observability query tool) with schema-validated inputs and outputs, deployable and testable end to end.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

3. Build an Agent with Memory

Hand-rolling short-term and long-term memory for an agent — SQLite-backed storage for conversation history and investigation history across sessions.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

4.1 Building an Operational Knowledge Base

Turning runbooks, playbooks, architecture documents, incident reports, and best practices into a RAG corpus an investigation agent can actually retrieve from.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

4.2 Retrieval-Augmented Generation (RAG)

Why RAG exists, document processing and chunking strategy, embeddings, vector database choice, and the retrieval pipeline that feeds relevant context into an agent's prompt.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

5. Build a Coding Agent

A guided, hands-on build of a coding agent that reads a repository, plans a change, edits files, and runs tests in a sandboxed loop with a human-review checkpoint before merge.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

6. Build a Multi-Agent System

A guided, hands-on build of a multi-agent system applying the supervisor and orchestrator-worker patterns from Part 00 of AI Architecture & System Design to a concrete task, with message-passing and failure-handling code.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

7.1 Connecting Agents to Grafana

Wiring an agent's tool layer to Grafana's HTTP API and Prometheus datasource — authentication, the metrics query surface, and the error handling an agent needs when a query fails mid-investigation.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

7.2 Building a Log Investigation Tool

Exposing Loki's API and LogQL as an agent tool — time-range filtering, log summarization, and pattern detection so an agent can search logs the way an SRE would.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

7.3 Building a Trace Investigation Tool

Exposing Tempo's trace retrieval API as an agent tool — span analysis, latency investigation, and service dependency analysis from a single trace ID.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

7.4 Automated Root Cause Analysis

Correlating metrics, logs, and traces into one evidence trail, scoring confidence in a candidate root cause, and generating an incident summary an on-call engineer can trust.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

8. Build an Enterprise AI Platform

A guided, hands-on build of a minimal enterprise AI platform slice - gateway, registry, and one deployed agent - wiring together the architecture covered in Part 01 of AI Architecture & System Design into working infrastructure.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

9. Production Deployment

Containerizing and deploying an agent through Docker, Kubernetes, and CI/CD — and the one thing that is actually agent-specific: versioning prompts and models as deploy artifacts.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

10. Capstone Project

Assembling every Part of this book into one deployable system — architecture, project structure, end-to-end workflow, RCA generation, dashboards, and deployment.

agentic-ai-projects-and-mastery hands-on-engineering-projects book

1. Technical Strategy for AI

Covers writing a multi-year technical strategy for AI adoption inside an engineering org, including how to sequence platform investment against product-team AI feature demand.

agentic-ai-projects-and-mastery principal-and-staff-engineer-mastery book

2. Build vs Buy Decisions

Covers the decision framework for build-vs-buy on AI platform components (vector DB, agent framework, evaluation tooling), with a worked cost/lock-in/velocity comparison a Staff engineer would present to leadership.

agentic-ai-projects-and-mastery principal-and-staff-engineer-mastery book

3. AI Platform Roadmaps

Covers translating an AI technical strategy into a quarter-by-quarter platform roadmap with explicit dependency sequencing and the trade-off calls a roadmap forces onto paper.

agentic-ai-projects-and-mastery principal-and-staff-engineer-mastery book

4. Architecture Reviews

Covers running or presenting in an architecture review for an AI system - the review rubric, common objections a review board raises to agentic designs, and how to defend a proposal under scrutiny.

agentic-ai-projects-and-mastery principal-and-staff-engineer-mastery book

5. Engineering RFCs & ADRs

Covers writing RFCs and ADRs specifically for agentic-system decisions, where the reversibility and blast radius of a decision (e.g., granting an agent write access) changes how much rigor the document needs.

agentic-ai-projects-and-mastery principal-and-staff-engineer-mastery book

6. Organizational Design for AI Teams

Covers the organizational design trade-offs between a centralized AI platform team, embedded AI engineers per product team, and a hybrid model, and how ownership boundaries shift as the platform matures.

agentic-ai-projects-and-mastery principal-and-staff-engineer-mastery book

7. AI Governance at Scale

Covers scaling AI governance across an enterprise - model approval workflows, audit logging requirements, and policy-as-code enforcement for what agents are allowed to do in which environments.

agentic-ai-projects-and-mastery principal-and-staff-engineer-mastery book

8. AI Economics & ROI

Covers building the cost model and ROI narrative for an AI platform investment in the form a CFO or VP Engineering would actually accept — which benefits are measurable, which are hand-wavy, and how build-vs-buy economics change the answer.

agentic-ai-projects-and-mastery principal-and-staff-engineer-mastery book

9. Interview Case Studies (L6/L7)

Walks through full mock L6/L7 system-design interview transcripts on agentic-AI topics, with the interviewer's follow-up probes and what separates a passing answer from a borderline one.

agentic-ai-projects-and-mastery principal-and-staff-engineer-mastery book

10. The Future of Agentic AI

Closes the book with a forward-looking synthesis of where agentic AI architecture is heading (standardized protocols, autonomous operations, agent-to-agent economies) and which of today's patterns are likely to age well.

agentic-ai-projects-and-mastery principal-and-staff-engineer-mastery book

A. Agent Framework Comparison Matrix

A reference matrix comparing agent frameworks (LangGraph, AutoGen, CrewAI, custom) across state management, tool-calling model, and production-readiness, for quick lookup rather than narrative reading.

agentic-ai-projects-and-mastery appendices book

B. Prompt Engineering Cheat Sheet

A condensed reference of prompt-engineering techniques (few-shot, chain-of-thought, structured output constraints) with when-to-use guidance rather than the full tutorial treatment given earlier in the book.

agentic-ai-projects-and-mastery appendices book

C. Agent Design Pattern Catalog

A condensed reference table of every architecture pattern covered in Part 00 of AI Architecture & System Design, listing each pattern's applicability criteria and trade-offs in one scannable page for interview-day review.

agentic-ai-projects-and-mastery appendices book

D. AI Security Checklist

A checklist reference for auditing an agent system's security posture - prompt injection defenses, tool-permission scoping, secrets handling - meant for a pre-launch review rather than first-time learning.

agentic-ai-projects-and-mastery appendices book

E. Production Readiness Checklist

A pre-launch checklist reference covering observability, rollback plan, rate limiting, and on-call ownership for shipping an agentic system to production.

agentic-ai-projects-and-mastery appendices book

F. AI System Design Interview Questions

A bank of practice system-design prompts specific to agentic AI, organized by difficulty, for timed self-practice ahead of an L6/L7 interview loop.

agentic-ai-projects-and-mastery appendices book

G. OpenAI, Anthropic & Google API Comparison

A reference comparison of the OpenAI, Anthropic, and Google model APIs - tool-calling formats, context window and pricing tiers, and streaming semantics - for choosing a provider without re-reading three sets of docs.

agentic-ai-projects-and-mastery appendices book

H. MCP Reference Guide

A condensed reference for the Model Context Protocol specification - message types, capability negotiation, and server/client lifecycle - as a lookup companion to the hands-on MCP server build in Part 00.

agentic-ai-projects-and-mastery appendices book

I. AI Engineering Glossary

A glossary defining the agentic-AI terminology used throughout the book (agent, tool, orchestrator, grounding, hallucination, context window, etc.) for quick reference rather than sequential reading.

agentic-ai-projects-and-mastery appendices book

J. Recommended Papers, Books & Open-Source Projects

An annotated reading list of foundational papers, books, and open-source projects referenced throughout the book, for readers who want to go deeper on a specific topic after finishing it.

agentic-ai-projects-and-mastery appendices book

Agentic AI: Projects & Engineering Mastery

A book-shaped table of contents for Agentic AI: Projects & Engineering Mastery: hands-on practitioner builds, Principal/Staff-level technical leadership, and the lookup appendices and vendor/framework reference notes for the whole series. Book 6 of the AI Systems Engineering series.

agentic-ai-projects-and-mastery book reference maang-prep

# Ai Architecture And System Design

All Ai Architecture And System Design notes →

1. Architectural Thinking

Introduces the pattern-catalog framing for the rest of this part: how to evaluate an agentic architecture pattern against determinism, cost, latency, and blast-radius trade-offs rather than picking the newest framework default.

ai-architecture-and-system-design ai-architecture-patterns book

2. Planner–Executor Pattern

Formalizes the planner–executor pattern — a planning component that decomposes a goal into a full upfront plan, and a separate executor that carries out each step — with applicability criteria, concrete failure modes, and how it composes with the rest of the pattern catalog.

ai-architecture-and-system-design ai-architecture-patterns book

3. Supervisor Pattern

Formalizes the supervisor pattern introduced in Multi-Agent Systems as a reusable architectural pattern, covering when a central supervisor agent outperforms peer-to-peer coordination and where it becomes a bottleneck.

ai-architecture-and-system-design ai-architecture-patterns book

4. Orchestrator–Worker Pattern

Covers the orchestrator-worker pattern for fan-out/fan-in task decomposition, including worker failure isolation, partial-result aggregation, and when it is preferable to a supervisor-style hierarchy.

ai-architecture-and-system-design ai-architecture-patterns book

5. Router Pattern

The canonical treatment of the router pattern -- classifying an incoming request and dispatching it to exactly one specialized handler, tool, or sub-agent -- covering the three real ways to build the classification step, confidence-based fallback, and the structural line that separates a router from a supervisor.

ai-architecture-and-system-design ai-architecture-patterns book

6. Blackboard Pattern

Covers the blackboard architecture - a shared, structured workspace multiple specialist agents read and write to opportunistically - and where it beats explicit message-passing for loosely-coupled multi-agent collaboration.

ai-architecture-and-system-design ai-architecture-patterns book

7. Event-Driven Pattern

Covers building agent systems on an event bus rather than direct request/response calls, including event schema design, at-least-once delivery handling, and idempotent agent reactions to replayed events.

ai-architecture-and-system-design ai-architecture-patterns book

8. Memory-Centric Pattern

Covers architectures where long-term and episodic memory (not the planner) is the primary coordination substrate for agent behavior, including memory write policies and staleness/consistency trade-offs.

ai-architecture-and-system-design ai-architecture-patterns book

9. Human Approval Pattern

Covers designing human-in-the-loop checkpoints for high-risk agent actions - approval gates, timeout/escalation policy, and how to keep the pattern from becoming a rubber-stamp bottleneck.

ai-architecture-and-system-design ai-architecture-patterns book

10. Agent Mesh Pattern

Covers a decentralized mesh of peer agents that discover and negotiate with each other directly, contrasted with the centralized orchestrator/supervisor patterns earlier in this catalog, and the discovery/trust problems a mesh introduces.

ai-architecture-and-system-design ai-architecture-patterns book

11. Pattern Selection Framework

Closes the catalog with a decision framework - a scorecard across coordination overhead, failure isolation, latency, and observability - for choosing among the patterns covered in this part for a given problem shape.

ai-architecture-and-system-design ai-architecture-patterns book

1. AI Copilot Architecture

Walks through the reference system design for an in-product AI copilot - context assembly from the host application, streaming responses, and the guardrails that keep suggestions scoped to what the user is actually doing.

ai-architecture-and-system-design enterprise-ai-system-design book

2. Coding Agent Platforms

Covers the system design of a coding agent platform (codebase indexing, sandboxed execution, diff review workflow) at the depth expected in an L6/L7 system design interview.

ai-architecture-and-system-design enterprise-ai-system-design book

3. Research Agents

Covers the architecture of a research agent that plans multi-step web/document retrieval, cites sources, and self-critiques for completeness before returning a synthesized answer.

ai-architecture-and-system-design enterprise-ai-system-design book

4. Customer Support Agents

Covers the system design of a customer-support agent - ticket triage, knowledge-base grounding, escalation to a human, and the metrics (deflection rate, CSAT) that define success.

ai-architecture-and-system-design enterprise-ai-system-design book

5. Enterprise Knowledge Assistants

Covers designing an enterprise-wide knowledge assistant over heterogeneous internal sources (wikis, tickets, code, Slack), including access-control-aware retrieval so answers respect document permissions.

ai-architecture-and-system-design enterprise-ai-system-design book

6. Autonomous Operations Agents

Covers agents that take autonomous remediation actions in production systems, including the safety envelope (dry-run mode, blast-radius limits, automatic rollback) required before granting write access.

ai-architecture-and-system-design enterprise-ai-system-design book

7. AI SRE Platforms

Covers the system design of an AI SRE platform end to end - alert ingestion, correlation, root-cause hypothesis generation, and runbook execution - as the natural extension of the observability-investigation agent built earlier in this book.

ai-architecture-and-system-design enterprise-ai-system-design book

8. AI Platform Architecture

Covers the enterprise-wide reference architecture tying together the gateway, registry, and multi-model infrastructure from Part 04 of Production Agent Systems into a single platform diagram suitable for an architecture review.

ai-architecture-and-system-design enterprise-ai-system-design book

9. Global AI Infrastructure

Covers multi-region deployment of AI infrastructure - data residency constraints, cross-region model failover, and latency budgets for a globally distributed agent platform.

ai-architecture-and-system-design enterprise-ai-system-design book

10. Cursor: Architecture Case Study

An external, engineering-blog-grounded analysis of Cursor's likely architecture — Merkle-tree-synced codebase indexing, the Tab fast path for inline edit prediction, and the agent-mode tool-calling loop for multi-file changes — read as public inference, not disclosed internals.

ai-architecture-and-system-design enterprise-ai-system-design book

11. Claude Code: Architecture Case Study

A documentation-grounded analysis of Claude Code's architecture — the gather/act/verify agentic loop against a real filesystem and shell, the allow/deny/ask tool-permission model, and subagent delegation with isolated context — distinguishing Anthropic's own documented mechanics from reasonable architectural inference.

ai-architecture-and-system-design enterprise-ai-system-design book

12. GitHub Copilot: Architecture Case Study

An external, engineering-blog-grounded analysis of GitHub Copilot's evolution from a low-latency inline completion service into an asynchronous, multi-model coding agent platform — and why the safety envelope changes shape along with it.

ai-architecture-and-system-design enterprise-ai-system-design book

13. Perplexity: Architecture Case Study

An external, engineering-blog-grounded analysis of Perplexity's real-time research-agent architecture -- live web retrieval instead of a static corpus, citation grounding as a hard output constraint, and answer synthesis under a tight latency budget.

ai-architecture-and-system-design enterprise-ai-system-design book

AI Architecture & System Design

A book-shaped table of contents for AI Architecture & System Design: the cross-cutting agent pattern catalog and full enterprise system-design case studies at L6/L7 interview depth. Book 5 of the AI Systems Engineering series.

ai-architecture-and-system-design book reference maang-prep

Study & Practice Strategy

Spaced practice, error logging, and the speed-vs-accuracy tradeoff for aptitude prep.

aptitude foundations book

Test Format & Scoring

Sectional cutoffs, negative marking math, and adaptive vs. fixed-form test formats.

aptitude foundations book

What Aptitude Tests Actually Assess

Why aptitude rounds still gate MAANG-adjacent hiring pipelines even when the core interview loop is DSA and system design.

aptitude foundations book

Data Interpretation

Reading tables, bar/line/pie charts, and caselets accurately under time pressure.

aptitude quantitative-aptitude book

Number Systems, HCF & LCM

Divisibility rules, remainders, factors, and LCM/HCF shortcuts for speed-solving.

aptitude quantitative-aptitude book

Percentages, Profit-Loss & Interest

Percentage-change chains, discount and markup, and simple vs. compound interest problems.

aptitude quantitative-aptitude book

Permutations, Combinations & Probability

Counting principles, arrangement vs. selection, and basic probability for exam-speed solving.

aptitude quantitative-aptitude book

Ratios, Averages & Mixtures

Ratio-proportion reasoning, weighted averages, and alligation/mixture problems.

aptitude quantitative-aptitude book

Time-Speed-Distance & Time-Work

Relative speed, trains and boats-streams problems, and work-rate combination problems.

aptitude quantitative-aptitude book

Blood Relations, Direction Sense & Coding-Decoding

Family-tree notation, compass-direction tracking, and letter/number coding-decoding schemes.

aptitude logical-reasoning book

Puzzles & Seating Arrangement

Linear and circular seating arrangements, grid puzzles, and data-sufficiency framing.

aptitude logical-reasoning book

Series & Analogies

Number and letter series patterns, verbal and non-verbal analogies, and odd-one-out questions.

aptitude logical-reasoning book

Syllogisms & Statement-Based Reasoning

The Venn-diagram method for syllogisms, plus statement-conclusion and statement-assumption questions.

aptitude logical-reasoning book

Grammar & Sentence Correction

Error-spotting categories, sentence improvement, and common subject-verb and tense traps.

aptitude verbal-ability book

Para Jumbles & Sentence Ordering

Spotting the mandatory pair or opening sentence, and reading coherence signals to reorder a passage.

aptitude verbal-ability book

Reading Comprehension

Passage-first vs. question-first strategy, and inference questions vs. explicit-detail questions.

aptitude verbal-ability book

Vocabulary: Synonyms, Antonyms & Usage

One-word substitution, idioms, and contextual word usage versus rote memorization.

aptitude verbal-ability book

Company-Specific Patterns

How Amazon OA, Google NQT/STEP, Microsoft, and vendor screens like AMCAT/CoCubes/Mettl structure their aptitude rounds.

aptitude mock-tests book

Error Log & Review Framework

Post-mock root-causing: careless errors vs. conceptual gaps vs. time-pressure errors.

aptitude mock-tests book

Full-Length Mock Test Format

Simulating real sectional timing and interface constraints instead of untimed topic practice.

aptitude mock-tests book

Timing & Section Strategy

Time-boxing per section, skip/return heuristics, and the expected-value math behind negative marking.

aptitude mock-tests book

Aptitude

A book-shaped table of contents for aptitude test prep: quantitative aptitude, logical reasoning, verbal ability, and mock-test strategy for the aptitude rounds that still gate MAANG-adjacent hiring pipelines.

aptitude book reference maang-prep

1 — The Evolution of Software Delivery

Traces the path from manual, ticket-driven releases through DevOps automation to platform-engineered software factories that treat delivery itself as a product.

ci-cd introduction book

2 — What Is a CI/CD Platform?

Defines a CI/CD platform as a product with its own responsibilities, consumers, shared services, and capability surface, rather than a single pipeline tool.

ci-cd introduction book

3 — CI/CD Platform Architecture

Lays out the seven-layer reference architecture — developer, source control, build, artifact, deployment, runtime, and feedback — that the rest of the book is organized around.

ci-cd introduction book

4 — Platform Maturity Model

Defines a five-stage maturity curve from manual delivery to autonomous delivery, used throughout the book to benchmark platform capability.

ci-cd introduction book

1 — Git as the Platform Backbone

Covers how branching strategy, trunk-based development vs GitFlow, and monorepo vs polyrepo choices shape everything a CI/CD platform has to support.

ci-cd foundations book

2 — Pipeline Architecture

Compares pipeline-as-code, declarative pipeline models, event-driven triggering, and workflow orchestration as the architectural building blocks of any pipeline system.

ci-cd foundations book

3 — Pipeline Design Principles

Establishes idempotency, reusability, modularity, parameterization, and composability as the design principles that separate a maintainable pipeline from a fragile one.

ci-cd foundations book

4 — Pipeline Lifecycle

Walks the full pipeline lifecycle — trigger, build, test, package, deploy, verify, promote, rollback — as the canonical stage model referenced throughout the book.

ci-cd foundations book

5 — GitHub Actions: CI/CD Design Patterns

Covers build-once-deploy-many, immutable artifacts, promotion pipelines, GitOps, and trunk-based development as durable CI/CD design patterns.

ci-cd foundations book

1 — Build Platform Architecture

Describes the architecture of a build platform — distributed builds, build farms, build agents, and the hosted-vs-self-hosted runner trade-off.

ci-cd build book

2 — Build Optimization

Covers incremental builds, parallelization, dependency caching, and remote build caches as the levers for cutting build time at scale.

ci-cd build book

3 — Build Standardization

Explains how shared build templates, org-wide standards, build libraries, and reusable pipeline components keep hundreds of teams' builds consistent.

ci-cd build book

4 — Build Reliability

Covers retry strategies, build health signals, diagnostics, and observability practices that keep a build platform trustworthy at scale.

ci-cd build book

5 — GitHub Actions: Cache Optimization

Covers dependency caching, cache key and restore-key design, diagnosing cache misses, and the performance tradeoffs of aggressive caching.

ci-cd build book

6 — GitHub Actions: Pipeline Performance

Covers parallelism, dependency-graph optimization, cache strategy, and artifact-size optimization for faster pipelines.

ci-cd build book

1 — CI Architecture

Covers event-driven CI triggering, pipeline orchestration, fan-in/fan-out pipeline shapes, and matrix builds as the architectural patterns behind a CI platform.

ci-cd ci book

2 — Automated Testing Platform

Surveys the automated test pyramid a CI platform must support — unit, integration, contract, end-to-end, and performance tests — and how each shapes pipeline design.

ci-cd ci book

3 — Code Quality Platform

Covers static analysis, code coverage, linting, and dependency analysis as the code-quality gates a CI platform enforces before code merges.

ci-cd ci book

4 — Security in CI

Covers secret detection, SAST, dependency scanning, container scanning, and license compliance as the security gates built into the CI stage.

ci-cd ci book

5 — GitHub Actions: Performance Engineering

Covers k6-based load testing, benchmarking, and automated performance regression detection inside a pipeline.

ci-cd ci book

1 — Artifact Management

Covers artifact repositories, OCI registries, language package repositories, and versioning schemes as the foundation of an artifact platform.

ci-cd artifacts book

2 — Artifact Lifecycle

Walks an artifact's lifecycle from publishing through promotion, retention policy, and cleanup, and why each stage needs explicit platform support.

ci-cd artifacts book

3 — Software Supply Chain

Covers build provenance, SBOMs, artifact signing, and verification as the software-supply-chain controls layered on top of artifact storage — see kubernetes/08-supply-chain-security for the Sigstore/cosign/SLSA implementation detail.

ci-cd artifacts book

4 — Dependency Management

Covers internal library management, third-party dependency handling, repository mirroring, and dependency governance policy at platform scale.

ci-cd artifacts book

5 — GitHub Actions: Artifacts

Covers uploading and downloading build artifacts, retention policy tuning, handling large files, and publishing test/report artifacts from a workflow run.

ci-cd artifacts book

1 — Deployment Architecture

Contrasts push- and pull-based deployment, introduces GitOps and deployment controllers, and covers environment promotion — see tech/gitops.md, tech/argocd.md, and tech/fluxcd.md for the tool-level mechanics.

ci-cd cd book

2 — Environment Management

Covers how a delivery platform manages the development, testing, staging, production, and ephemeral-environment tiers as first-class platform resources.

ci-cd cd book

3 — Deployment Strategies

Compares rolling updates, blue-green, canary, shadow deployments, and A/B testing as the deployment strategies a delivery platform must offer as reusable primitives.

ci-cd cd book

4 — Progressive Delivery

Covers feature flags, automated verification, traffic shifting, and progressive rollouts as the mechanics behind safely decoupling deploy from release.

ci-cd cd book

1 — Why GitHub Actions

Explains what event-driven automation on the GitHub ecosystem buys you, compares GitHub Actions against Jenkins, Azure DevOps, GitLab CI, CircleCI, Buildkite, and Tekton, and calls out when NOT to reach for GitHub Actions at all.

ci-cd github-actions book

10 — Reusable Workflows

Covers workflow_call, typed inputs/outputs/secrets, and versioning and best-practice conventions for DRY, org-shared CI, grounded in this repo's own reusable Docker, .NET, Python, and Terraform workflows.

ci-cd github-actions book

11 — Composite Actions

Compares composite actions, JavaScript actions, and Docker actions as ways to package and publish reusable steps to the Marketplace.

ci-cd github-actions book

12 — Workflow Templates

Covers organization and enterprise workflow templates as a governance and standardization mechanism across many repositories.

ci-cd github-actions book

13 — GitHub-Hosted Runners

Covers GitHub-hosted runner images, resource limits, performance characteristics, and billing model.

ci-cd github-actions book

14 — Self-Hosted Runners

Covers self-hosted runner installation, labels, runner groups, scaling, autoscaling, security hardening, and maintenance for enterprise fleets.

ci-cd github-actions book

15 — Actions Runner Controller (ARC)

Covers running Actions Runner Controller on Kubernetes — runner scale sets, autoscaling, ephemeral runners, and enterprise fleet architecture.

ci-cd github-actions book

16 — Monorepo Pipelines

Covers path filters, selective builds, dependency graphs, and incremental builds for CI in a monorepo.

ci-cd github-actions book

17 — Large-Scale Repository Automation

Covers automating CI/CD across many repositories, org-wide shared workflows, and governance at scale.

ci-cd github-actions book

18 — Azure

Covers Azure Login, ARM templates, AKS, Container Apps, Functions, Key Vault, Bicep, and Terraform deployment from a workflow.

ci-cd github-actions book

19 — AWS

Covers IAM, OIDC federation, ECS, Lambda, and EKS deployment from a workflow.

ci-cd github-actions book

2 — GitHub Actions Architecture

Walks the full GitHub Actions object model — repositories, events, workflows, jobs, steps, runners, the Marketplace, artifacts, cache, packages, and environments — and how they compose.

ci-cd github-actions book

20 — Google Cloud

Covers GKE, Cloud Run, and Workload Identity Federation deployment from a workflow.

ci-cd github-actions book

21 — Containers

Covers building with Docker and Buildx, multi-stage and multi-arch builds, and image signing in CI.

ci-cd github-actions book

22 — Kubernetes

Covers deploying to Kubernetes from a workflow with kubectl, Helm, and Kustomize, versus triggering GitOps reconciliation via ArgoCD or FluxCD.

ci-cd github-actions book

3 — YAML Essentials

Covers the YAML syntax, expressions, variables, anchors, and multiline string forms that every GitHub Actions workflow file depends on.

ci-cd github-actions book

4 — Workflow Syntax

Documents the top-level workflow keys — name, on, jobs, steps, uses, run, env, defaults, permissions, and concurrency — and how they interact.

ci-cd github-actions book

5 — Events & Triggers

Surveys the trigger surface — push, pull_request, workflow_dispatch, workflow_call, schedule, repository_dispatch, release, issue and issue_comment events, tags, and branch/path filters — for deciding what fires a workflow.

ci-cd github-actions book

6 — Expressions & Contexts

Details the github, env, vars, secrets, matrix, strategy, needs, runner, job, steps, and inputs/outputs contexts plus expression functions like hashFiles() used to make workflows conditional and data-driven.

ci-cd github-actions book

7 — Running Jobs

Covers sequential vs. parallel job execution, job dependencies via needs, conditional job/step execution, and continue-on-error semantics for fault-tolerant pipelines.

ci-cd github-actions book

8 — Matrix Builds

Explains matrix strategy fan-out, dynamic matrices computed at runtime, include/exclude overrides, and common OS and language matrix patterns.

ci-cd github-actions book

9 — Workflow Outputs

Covers job outputs, step outputs, and passing data between jobs and reusable workflows without relying on shared filesystem state.

ci-cd github-actions book

1 — Argo Workflows

Covers Argo Workflows' architecture, DAG-based workflow definitions, event integration, and scheduling as a Kubernetes-native CI/CD orchestration engine.

ci-cd orchestration book

2 — Tekton

Covers Tekton Pipelines, Tasks, the Tekton Catalog, and Triggers as the CRD-based building blocks of a Kubernetes-native, vendor-neutral CI/CD engine.

ci-cd orchestration book

3 — Jenkins Platform

Covers Jenkins controller architecture, agents, shared libraries, and the modern Jenkins (Configuration-as-Code, cloud-native agents) evolution.

ci-cd orchestration book

4 — Choosing the Right Platform

Compares GitHub Actions, Argo Workflows, Tekton, and Jenkins against organizational constraints, and covers hybrid models that combine more than one.

ci-cd orchestration book

1 — Release Engineering Fundamentals

Covers the release lifecycle, release planning, release trains, and versioning schemes as the fundamentals of disciplined release engineering.

ci-cd release-engineering book

2 — Release Automation

Covers automated releases, promotion pipelines, release validation gates, and rollback mechanics as the automation layer over manual release processes.

ci-cd release-engineering book

3 — Deployment Governance

Covers change approval workflows, risk assessment, compliance gates, and audit trails as the governance controls layered over deployment automation.

ci-cd release-engineering book

4 — Release Observability

Covers deployment metrics, failure analysis, release dashboards, and incident correlation — see platform-engineering-fundamentals' DORA metrics chapter for the underlying KPI definitions.

ci-cd release-engineering book

1 — Identity & Access Management

Covers identity and access management for a CI/CD platform — workload identity, human access, and the boundary between the two.

ci-cd security book

2 — Secret Management

Covers how a CI/CD platform stores, rotates, injects, and audits secrets used by pipelines and deployments.

ci-cd security book

3 — Policy as Code

Covers expressing security and compliance rules as versioned, testable policy-as-code enforced at pipeline gates.

ci-cd security book

4 — Secure Pipeline Design

Covers the design practices — least privilege, isolation, signed artifacts, hardened runners — that make a pipeline itself resistant to compromise.

ci-cd security book

5 — Software Supply Chain Security

Covers securing the end-to-end software supply chain from source to production — see kubernetes/08-supply-chain-security for SBOM, signing, and SLSA implementation detail.

ci-cd security book

6 — Compliance Automation

Covers automating compliance evidence collection and control enforcement directly inside the CI/CD platform rather than as a manual audit exercise.

ci-cd security book

7 — GitHub Actions: Authentication

Covers the GITHUB_TOKEN, fine-grained PATs, GitHub Apps, and OIDC federation to Azure, AWS, and GCP as the four authentication mechanisms available to a workflow.

ci-cd security book

8 — GitHub Actions: Secrets Management

Covers repository, organization, and environment secrets and variables, secret rotation, and least-privilege scoping for CI credentials.

ci-cd security book

9 — GitHub Actions: Secure Pipelines

Covers dependency review, CodeQL, secret scanning, artifact attestations, branch protection, required reviews, signed commits, and supply chain security gates enforced inside a workflow.

ci-cd security book

1 — Pipeline Metrics

Covers build duration, queue time, success rate, and failure rate as the core pipeline metrics a platform should expose by default.

ci-cd pipeline-observability book

2 — CI/CD Logging

Covers structured, centralized logging for pipeline runs — build logs, deployment logs, and audit logs — as a platform-provided capability.

ci-cd pipeline-observability book

3 — Pipeline Tracing

Covers distributed tracing across pipeline stages and services to diagnose where time and failures actually accumulate in a delivery flow.

ci-cd pipeline-observability book

4 — CI/CD Dashboards

Covers building dashboards that surface pipeline health, delivery throughput, and failure trends to both platform teams and their consumers.

ci-cd pipeline-observability book

5 — Delivery SLOs

Covers defining SLOs for the delivery platform itself — pipeline availability, queue latency, deployment success rate — as a product with its own reliability target.

ci-cd pipeline-observability book

6 — GitHub Actions: Notifications

Covers routing workflow status to Slack, Teams, email, GitHub notifications, and ChatOps integrations.

ci-cd pipeline-observability book

7 — GitHub Actions: Failure Analysis

Covers retry strategies, timeout tuning, debug logging, and treating a broken pipeline as an incident to respond to.

ci-cd pipeline-observability book

1 — High Availability

Covers designing the CI/CD control plane itself for high availability so pipeline outages don't become an organization-wide delivery outage.

ci-cd reliability book

2 — Scaling Pipeline Platforms

Covers horizontal and vertical scaling strategies for build farms, runners, and orchestration control planes as pipeline volume grows.

ci-cd reliability book

3 — Disaster Recovery

Covers backup, failover, and recovery procedures for CI/CD control planes, artifact stores, and pipeline state.

ci-cd reliability book

4 — Platform Capacity Planning

Covers forecasting build and deployment demand and provisioning runner and orchestration capacity ahead of it.

ci-cd reliability book

5 — Incident Response

Covers incident response specific to CI/CD platform outages — detection, triage, and communication when the delivery system itself is down.

ci-cd reliability book

1 — Multi-Cloud Delivery

Covers designing delivery pipelines that build and deploy consistently across more than one cloud provider.

ci-cd enterprise book

2 — Multi-Region Deployments

Covers coordinating deployments across multiple regions with staggered rollout, region-aware promotion, and blast-radius containment.

ci-cd enterprise book

3 — Multi-Tenant Pipeline Platforms

Covers isolating tenants — teams, business units, or customers — sharing a single CI/CD platform without leaking access, quota, or blast radius.

ci-cd enterprise book

4 — Platform Governance

Covers the organizational governance model — ownership, standards enforcement, exception handling — for a CI/CD platform used across an enterprise.

ci-cd enterprise book

5 — Platform Cost Engineering

Covers attributing and optimizing the cost of build compute, runner fleets, artifact storage, and pipeline minutes at enterprise scale.

ci-cd enterprise book

6 — Developer Experience

Covers measuring and improving the developer-facing experience of using the CI/CD platform — feedback latency, self-service, and cognitive load.

ci-cd enterprise book

7 — GitHub Actions: Cost Optimization

Covers GitHub Actions minutes billing, storage costs, self-hosted runner economics, and concrete techniques to reduce CI spend.

ci-cd enterprise book

1 — Pipeline Sprawl

Covers the anti-pattern of unbounded, inconsistent pipeline proliferation across teams with no shared standard or ownership.

ci-cd anti-patterns book

2 — Copy-Paste Pipelines

Covers the anti-pattern of duplicating pipeline definitions across repos instead of sharing templates, and the maintenance debt it creates.

ci-cd anti-patterns book

3 — Manual Releases

Covers the anti-pattern of releases that still depend on manual steps, and the risk and toil that persist as a result.

ci-cd anti-patterns book

4 — Shared Credentials

Covers the anti-pattern of long-lived, shared pipeline credentials instead of scoped, short-lived, workload-specific identity.

ci-cd anti-patterns book

5 — Long-Running Pipelines

Covers the anti-pattern of pipelines that grow slower over time without bound, and why that erodes developer trust in the platform.

ci-cd anti-patterns book

6 — Lack of Standardization

Covers the anti-pattern of every team inventing its own pipeline conventions, and the platform cost of not investing in shared standards.

ci-cd anti-patterns book

7 — Ignoring Pipeline Observability

Covers the anti-pattern of operating a CI/CD platform with no metrics, logs, or SLOs of its own, and the outages that follow.

ci-cd anti-patterns book

1 — CI/CD Platform System Design

Covers how to approach a CI/CD platform system design interview end to end — see system-design's dedicated CI/CD platform case study for a fully worked example.

ci-cd interview-prep book

2 — Designing Enterprise Build Platforms

Covers the interview framing for designing a distributed build platform at enterprise scale — requirements, architecture, and trade-offs.

ci-cd interview-prep book

3 — Progressive Delivery Design

Covers the interview framing for designing a progressive delivery system — feature flags, traffic shifting, automated verification, and rollback.

ci-cd interview-prep book

4 — GitHub Actions Interview Questions

GitHub Actions interview questions graded beginner through principal, for calibrating depth expected at each level.

ci-cd interview-prep book

5 — Release Engineering Case Studies

Walks through worked release-engineering case studies — release trains, promotion pipelines, rollback design — in interview format.

ci-cd interview-prep book

6 — Staff/Principal Platform Engineering Scenarios

Covers open-ended staff/principal-level platform engineering scenarios that probe organizational, not just technical, judgment.

ci-cd interview-prep book

7 — GitHub Actions: Enterprise Scenarios

Covers designing a CI platform, securing multi-tenant pipelines, monorepo-at-scale builds, thousands of concurrent builds, and a global runner fleet as MAANG-style design prompts.

ci-cd interview-prep book

8 — GitHub Actions: Case Studies

Walks CI/CD platform design through real-world shaped case studies — SaaS, microservices, monolith, and enterprise migration.

ci-cd interview-prep book

1 — CI/CD Platform Reference Architecture

A reference architecture diagram and component checklist consolidating the platform layers covered across the book.

ci-cd appendices book

10 — GitHub Actions: Practice Exams

Three full mock GH-200 exams with detailed answer explanations for exam-readiness self-assessment.

ci-cd appendices book

11 — GitHub Actions: Troubleshooting Playbook

A troubleshooting playbook for debugging pipeline failures, performance issues, security incidents, and production outages traced back to CI/CD.

ci-cd appendices book

12 — GitHub Actions: YAML Reference

A YAML syntax quick-reference for GitHub Actions workflow authoring.

ci-cd appendices book

13 — GitHub Actions Expression Cheat Sheet

A cheat sheet of GitHub Actions expression functions and operators.

ci-cd appendices book

14 — GitHub Actions: Context Reference

A reference of every built-in GitHub Actions context object and its fields.

ci-cd appendices book

15 — GitHub Actions: Marketplace Best Practices

Best practices for choosing, pinning, and auditing third-party Marketplace actions.

ci-cd appendices book

16 — GitHub Actions: GitHub CLI (gh) Reference

A gh CLI command reference for scripting GitHub Actions and repository operations.

ci-cd appendices book

17 — GitHub Actions: Common Error Messages

A lookup of common GitHub Actions error messages and their root causes.

ci-cd appendices book

18 — GitHub Actions: GH-200 Exam Checklist

A final GH-200 exam-day readiness checklist.

ci-cd appendices book

19 — GitHub Actions: MAANG Interview Checklist

A final MAANG CI/CD interview readiness checklist.

ci-cd appendices book

2 — GitHub Actions: Migration Guide

A migration guide for moving existing pipelines from Jenkins, Azure DevOps, or GitLab CI to GitHub Actions.

ci-cd appendices book

3 — Argo Workflows & Tekton Comparison Matrix

A side-by-side comparison matrix of Argo Workflows and Tekton across architecture, extensibility, and operational model.

ci-cd appendices book

4 — Progressive Delivery Decision Matrix

A decision matrix for choosing among rolling, blue-green, canary, and shadow deployment strategies based on risk and rollback needs.

ci-cd appendices book

5 — Software Supply Chain Security Checklist (SLSA, SBOM, Sigstore)

A checklist of SLSA levels, SBOM requirements, and Sigstore signing/verification steps for hardening a software supply chain.

ci-cd appendices book

6 — DORA Metrics & Delivery KPIs

A quick-reference of the four DORA metrics and related delivery KPIs — see platform-engineering-fundamentals' DORA metrics chapter for the full derivation.

ci-cd appendices book

7 — CI/CD Platform Maturity Model

A quick-reference recap of the five-stage platform maturity model introduced in Part I, for use as a self-assessment checklist.

ci-cd appendices book

8 — GitHub Actions: GH-200 Exam Objectives

Maps the GH-200 exam blueprint — workflow authoring, security, automation, runner administration, and governance — to the chapters in this book.

ci-cd appendices book

9 — GitHub Actions: Hands-on Labs

A set of 25 guided, hands-on labs built from realistic enterprise scenarios for GH-200 practice.

ci-cd appendices book

CI/CD Platform Engineering

A book-shaped table of contents for CI/CD platform engineering: pipeline foundations, build/artifact/delivery platforms, GitHub Actions end to end (workflow mechanics through enterprise governance), Argo Workflows, Tekton, Jenkins, release engineering, platform security, observability, reliability, enterprise governance, and MAANG interview preparation — cross-linking existing tech/kubernetes/platform-engineering-fundamentals/system-design notes instead of duplicating them.

ci-cd book reference maang-prep

1 — What is Data Engineering?

How data engineering evolved into its own discipline, how the role differs from analytics engineering and data science, and the foundational distinctions (batch vs. streaming, OLTP vs. OLAP) that shape the rest of this book.

data-engineering foundations book

2 — Data Lifecycle

The end-to-end journey data takes from generation through collection, ingestion, storage, processing, serving, consumption, governance, and eventual archival.

data-engineering foundations book

3 — Data Engineering Principles

The cross-cutting engineering principles — scalability, reliability, maintainability, data quality, idempotency, fault tolerance, cost, security, and observability — that every pipeline in this book is judged against.

data-engineering foundations book

1 — Relational Data Modeling

Entity-relationship modeling, normalization and denormalization trade-offs, and the keys, constraints, and referential integrity rules that keep relational schemas consistent.

data-engineering data-modeling book

2 — Analytical Data Modeling

Dimensional modeling for analytics — facts and dimensions, star and snowflake schemas, Data Vault, wide tables, slowly changing dimensions, and surrogate keys.

data-engineering data-modeling book

3 — Time-Series and Event Modeling

Modeling immutable, time-ordered data — event data, append-only logs, change data capture, and temporal tables.

data-engineering data-modeling book

1 — Files and Storage Formats

The file formats data engineers choose between — CSV, JSON, Avro, Parquet, ORC — plus the compression, encoding, partitioning, and bucketing decisions that determine how efficiently they can be queried.

data-engineering storage book

2 — Storage Engines

How storage engines are actually built — row vs. column stores, LSM trees vs. B+ trees, and the object storage, HDFS, and lake storage layers data platforms sit on.

data-engineering storage book

3 — Data Lake, Warehouse & Lakehouse

Data lakes, warehouses, marts, and the lakehouse architectures (Delta Lake, Apache Iceberg, Apache Hudi) that merge them, organized through the medallion (bronze/silver/gold) pattern.

data-engineering storage book

1 — Batch Ingestion

Batch ingestion patterns — ETL vs. ELT, bulk vs. incremental loads, CDC-driven loads, and snapshot loading strategies.

data-engineering ingestion book

2 — Streaming Ingestion

Event streaming and message queue platforms — Kafka, Pulsar, Kinesis, Pub/Sub — and the ordering and delivery-guarantee semantics that make streaming ingestion hard to get right.

data-engineering ingestion book

3 — Change Data Capture

How CDC actually works under the hood — write-ahead logs, Debezium, database log-based capture, schema evolution, and common CDC architectural patterns.

data-engineering ingestion book

1 — Distributed Computing Fundamentals

The distributed-systems fundamentals underneath every big-data engine — parallel processing, distributed execution, cluster computing, scheduling, and resource management.

data-engineering distributed-processing book

2 — Apache Spark

Apache Spark end to end — architecture, RDDs, DataFrames and Datasets, the Catalyst optimizer and Tungsten execution engine, shuffle and partitioning behavior, broadcast joins, and adaptive query execution.

data-engineering distributed-processing book

3 — Batch Processing Frameworks

The batch processing framework landscape beyond Spark — Hadoop MapReduce, Tez, Flink's batch mode, and Apache Beam's unified batch/stream model.

data-engineering distributed-processing book

4 — Stream Processing

Stream processing engines — Spark Streaming, Structured Streaming, Flink, Kafka Streams, Beam — and the watermarks, windowing, state management, and event-time-vs-processing-time semantics they all have to solve.

data-engineering distributed-processing book

1 — SQL Foundations

Foundational SQL — SELECT, JOIN, GROUP BY, HAVING, UNION, CASE expressions, and EXISTS — as the baseline every later SQL chapter builds on.

data-engineering sql book

2 — Advanced SQL

Advanced analytical SQL — window functions, ranking, running totals, recursive queries and recursive CTEs, pivoting, and common table expressions.

data-engineering sql book

3 — Query Optimization

How a query planner turns SQL into an execution plan — reading execution plans, index usage, predicate pushdown, partition pruning, join strategy selection, and cost-based optimization.

data-engineering sql book

1 — Workflow Fundamentals

The fundamentals every orchestrator builds on — DAGs, scheduling, task dependencies, retries, and backfills.

data-engineering orchestration book

2 — Apache Airflow

Apache Airflow in depth — DAG design, operators and sensors, the TaskFlow API, dynamic DAG generation, scheduling, and monitoring.

data-engineering orchestration book

3 — Modern Orchestrators

The modern orchestrator landscape beyond Airflow — Dagster, Prefect, Argo Workflows, Temporal, and Azure Data Factory.

data-engineering orchestration book

1 — Data Validation

Validating data as it moves — constraints, assertions, Great Expectations, Deequ, and schema validation.

data-engineering data-quality book

2 — Data Testing

Testing pipelines like software — unit tests, integration tests, full pipeline tests, and contract testing between producers and consumers.

data-engineering data-quality book

3 — Metadata Management

The metadata layer that makes data discoverable and trustworthy — data catalogs, lineage tracking, schema registries, and data discovery tooling.

data-engineering data-quality book

1 — Building a Data Platform

The architectural decisions behind building a data platform — core platform components, data mesh vs. data fabric, and centralized vs. federated ownership models.

data-engineering platform-architecture book

2 — Storage Architecture

Tiered storage architecture — hot, warm, and cold tiers — and the lifecycle policies that move data between them automatically.

data-engineering platform-architecture book

3 — Compute Architecture

Compute architecture for data platforms — running workloads on Kubernetes, autoscaling, serverless compute, and the cost management trade-offs between them.

data-engineering platform-architecture book

1 — AWS Data Stack

The AWS data stack — S3, Glue, EMR, Athena, Redshift, Kinesis, and Lambda — and how they compose into an end-to-end pipeline.

data-engineering cloud book

2 — Azure Data Stack

The Azure data stack — ADLS, Synapse, Event Hub, Data Factory, Databricks, and Microsoft Fabric — and how they compose into an end-to-end pipeline.

data-engineering cloud book

3 — Google Cloud Data Stack

The Google Cloud data stack — BigQuery, Dataflow, Dataproc, Pub/Sub, Composer, and Cloud Storage — and how they compose into an end-to-end pipeline.

data-engineering cloud book

1 — Monitoring Pipelines

Monitoring data pipelines with metrics, logs, and traces, and defining pipeline health through SLIs and SLOs.

data-engineering observability book

2 — Alerting

Alerting on the failure modes specific to data pipelines — freshness, completeness, volume anomalies, latency, and outright failures.

data-engineering observability book

3 — Data Reliability

Data reliability engineering — data contracts, lineage as a debugging tool, incident management, and root cause analysis for pipeline failures.

data-engineering observability book

1 — Security Fundamentals

Security fundamentals for data platforms — IAM, RBAC, encryption at rest and in transit, secrets handling, and key management.

data-engineering security-governance book

2 — Governance

Data governance — metadata-driven policy, regulatory compliance including GDPR, data retention rules, and audit logging.

data-engineering security-governance book

3 — Privacy Engineering

Privacy engineering techniques for protecting sensitive data — masking, tokenization, anonymization, and differential privacy.

data-engineering security-governance book

1 — Performance Optimization

Performance optimization for distributed pipelines — parallelism, partitioning strategy, data skew, shuffle optimization, and caching.

data-engineering performance book

2 — Cost Optimization

Cost optimization for data platforms — storage and compute cost drivers, compression, autoscaling, and spot instance strategies.

data-engineering performance book

3 — Capacity Planning

Capacity planning for data systems — throughput estimation, scaling strategy, benchmarking, and load testing.

data-engineering performance book

1 — Batch Processing System Design

Open-ended batch processing system design — log analytics platforms, ETL platforms, and reporting pipelines.

data-engineering system-design book

2 — Streaming System Design

Open-ended streaming system design — clickstream analytics, fraud detection, IoT platforms, and real-time metrics systems.

data-engineering system-design book

3 — Data Lakehouse Design

Designing a lakehouse end to end — bronze/silver/gold layering, incremental pipeline design, and cross-team data sharing.

data-engineering system-design book

4 — ML Data Platform Design

Designing the data platform underneath ML systems — feature stores, offline and online stores, and the pipelines that feed model training and serving.

data-engineering system-design book

1 — SQL Interview Problems

SQL interview problems by difficulty — easy, medium, and hard — with a dedicated focus on window function problems.

data-engineering interview-prep book

2 — Spark Interview Questions

Spark interview questions covering architecture, optimization techniques, debugging approaches, and performance tuning.

data-engineering interview-prep book

3 — Data Engineering System Design Interviews

How to run an open-ended data engineering system design interview — framing trade-offs, capacity estimation, and bottleneck analysis.

data-engineering interview-prep book

4 — Behavioral Interviews

Behavioral interview preparation framed around ownership, reliability, incident response, and leadership principles.

data-engineering interview-prep book

1 — Build an End-to-End Data Platform

A capstone build integrating Kafka, Spark, Airflow, Delta Lake or Iceberg, and Grafana/Prometheus into one end-to-end data platform.

data-engineering capstone book

2 — Build a Streaming Analytics Platform

A capstone build of a streaming analytics platform — a clickstream pipeline, real-time dashboards, alerting, and observability.

data-engineering capstone book

3 — Build a Lakehouse on Kubernetes

A capstone build of a lakehouse on Kubernetes — the Spark Operator, Airflow, MinIO, Trino, and Iceberg working together.

data-engineering capstone book

4 — Staff-Level Architecture Case Studies

Staff-level architecture case studies from Netflix, Uber, Airbnb, LinkedIn, Meta, and Google's data platforms.

data-engineering capstone book

1 — Data Engineering Cheat Sheets

A consolidated quick-reference index across all the cheat sheets and checklists in this Part.

data-engineering reference book

10 — 100 MAANG Data Engineering Interview Questions

A consolidated list of 100 data engineering interview questions asked at MAANG-tier companies.

data-engineering reference book

2 — SQL Cheat Sheet

A quick-reference index of common SQL syntax, functions, and query patterns.

data-engineering reference book

3 — Spark Optimization Checklist

A checklist of Spark performance and cost optimization techniques to run through before shipping a job.

data-engineering reference book

4 — Kafka Cheat Sheet

A quick-reference index of Kafka concepts, CLI commands, and configuration patterns.

data-engineering reference book

5 — Airflow Best Practices

A checklist of Airflow DAG design and operational best practices.

data-engineering reference book

6 — Data Modeling Patterns

A reference catalog of recurring data modeling patterns across relational, dimensional, and event-based schemas.

data-engineering reference book

7 — Lakehouse Comparison (Delta vs Iceberg vs Hudi)

A side-by-side comparison of Delta Lake, Apache Iceberg, and Apache Hudi across features, ecosystem, and trade-offs.

data-engineering reference book

8 — Cloud Data Services Comparison (AWS vs Azure vs GCP)

A side-by-side comparison of AWS, Azure, and Google Cloud's data services by category.

data-engineering reference book

9 — Common Interview Pitfalls

The most common mistakes candidates make in data engineering interviews, and how to avoid them.

data-engineering reference book

Data Engineering

A book-shaped table of contents for data engineering: foundations and lifecycle, data modeling, storage systems, ingestion and CDC, distributed processing (Spark/Flink), SQL mastery, workflow orchestration, data quality, platform and cloud architecture, pipeline observability, security and governance, performance engineering, system design, and MAANG interview preparation through capstone builds — cross-linking the existing observability book instead of duplicating it.

data-engineering book reference maang-prep

1 — Why Databases Exist

Traces the shift from file-based storage to DBMS, the problems that shift solved, and introduces OLTP vs OLAP and the CAP perspective.

dbms foundations book

2 — Database Architecture

Covers the three-schema architecture (external, conceptual, internal), data independence, and the core components inside a DBMS.

dbms foundations book

3 — Database Models

Surveys the hierarchical, network, relational, object-oriented, object-relational, and NoSQL data models and how each represents data.

dbms foundations book

1 — Relational Model Fundamentals

Defines the core vocabulary of the relational model — relations, tuples, attributes, domains, keys, degree, cardinality, and NULL semantics.

dbms relational-model book

2 — Constraints

Covers the constraint types that enforce relational integrity — primary/candidate/alternate/composite/foreign keys, unique, check, default, and referential integrity.

dbms relational-model book

3 — Relational Algebra

Introduces the relational algebra operators — selection, projection, rename, union, difference, Cartesian product, join, and division — that underpin SQL query semantics.

dbms relational-model book

4 — Relational Calculus

Explains tuple and domain relational calculus, the safety restriction on formulas, and their expressive equivalence with relational algebra.

dbms relational-model book

1 — SQL Basics

Covers the SQL language families — DDL, DML, DCL, TCL — along with core data types and constraint syntax.

dbms sql book

2 — Querying Data

Covers the fundamental query clauses — SELECT, WHERE, ORDER BY, LIMIT, DISTINCT, LIKE, IN, BETWEEN, and CASE expressions.

dbms sql book

3 — Joins

Compares inner, left, right, full, self, cross, anti, and semi joins and how each changes a query's result set.

dbms sql book

4 — Aggregation

Covers GROUP BY, HAVING, aggregate functions, and multi-dimensional aggregation via ROLLUP, CUBE, and GROUPING SETS.

dbms sql book

5 — Subqueries

Covers scalar and correlated subqueries and the EXISTS, NOT EXISTS, ANY, and ALL predicates.

dbms sql book

6 — Common Table Expressions

Covers recursive and non-recursive common table expressions and their use in querying hierarchical data.

dbms sql book

7 — Window Functions

Covers the OVER() clause and ranking/offset window functions — ROW_NUMBER, RANK, DENSE_RANK, LEAD, LAG, FIRST_VALUE, and LAST_VALUE.

dbms sql book

8 — Advanced SQL

Covers views, materialized views, stored procedures, functions, triggers, sequences, and identity columns.

dbms sql book

1 — ER Modeling

Covers entity-relationship modeling — entities, attributes, relationships, weak entities, cardinality, participation constraints, and ISA hierarchies.

dbms database-design book

2 — Mapping ER to Relational Model

Covers the rules for translating an ER diagram's entities, relationships, weak entities, and ISA hierarchies into relational tables.

dbms database-design book

3 — Functional Dependencies

Covers trivial and non-trivial functional dependencies, closure, attribute closure, and computing a minimal cover.

dbms database-design book

4 — Normalization

Walks through the normal forms — 1NF through 5NF and Domain-Key Normal Form — and the anomalies each eliminates.

dbms database-design book

5 — Denormalization

Covers why and when to denormalize, the read/write tradeoffs involved, and practical scenarios where it pays off.

dbms database-design book

1 — Physical Storage

Covers how data is physically laid out on disk — pages, blocks, records, slotted pages, heap files, and clustered storage.

dbms storage book

2 — Indexing

Covers why indexes exist and the major index types — clustered, non-clustered, composite, covering, partial, and bitmap.

dbms storage book

3 — B-Trees

Covers B-tree and B+-tree structure, insert/delete operations, and why B+-trees are favored for range queries.

dbms storage book

4 — Hash Indexes

Covers static and dynamic hashing schemes, including extendible and linear hashing, for equality-lookup indexes.

dbms storage book

1 — Query Execution

Traces a query's path from parsing through optimization to execution, and how to read an execution plan.

dbms query-processing book

2 — Query Optimization

Covers cost-based and rule-based optimization, join ordering, and predicate/projection pushdown.

dbms query-processing book

3 — Join Algorithms

Compares nested loop, block nested loop, index nested loop, merge join, and hash join algorithms and when the optimizer picks each.

dbms query-processing book

1 — Transaction Fundamentals

Covers the transaction lifecycle, its states, and the atomicity guarantee that ties them together.

dbms transactions book

2 — ACID Properties

Covers the four ACID properties — atomicity, consistency, isolation, durability — and what each guarantees.

dbms transactions book

3 — Concurrency Problems

Covers the concurrency anomalies isolation levels exist to prevent — dirty reads, non-repeatable reads, phantom reads, lost updates, and write skew.

dbms transactions book

4 — Concurrency Control

Covers lock-based concurrency control — shared and exclusive locks, lock granularity, and intention locks.

dbms transactions book

5 — Two-Phase Locking

Covers basic, strict, and rigorous two-phase locking and the serializability guarantees each provides.

dbms transactions book

6 — Timestamp Protocols

Covers timestamp-ordering concurrency control and the Thomas write rule optimization.

dbms transactions book

7 — Optimistic Concurrency Control

Covers optimistic concurrency control's read/validate/write phases and its rollback behavior on conflict.

dbms transactions book

8 — Isolation Levels

Covers the standard isolation levels — read uncommitted, read committed, repeatable read, snapshot isolation, and serializable — and which anomalies each permits.

dbms transactions book

1 — Logging

Covers write-ahead logging and the redo/undo logging schemes that make crash recovery possible.

dbms recovery book

2 — Recovery Algorithms

Covers checkpointing, the ARIES recovery algorithm, and crash vs. media recovery.

dbms recovery book

1 — Distributed Databases

Covers data fragmentation, replication, distributed query processing, and distributed transactions.

dbms distributed book

2 — Two-Phase Commit

Covers the two-phase commit protocol's coordinator/participant roles and its failure modes.

dbms distributed book

3 — Consensus Basics

Introduces Paxos and Raft at a high level as the consensus protocols distributed databases build on.

dbms distributed book

1 — NoSQL Overview

Covers why NoSQL databases emerged, the major categories, and their tradeoffs against relational systems.

dbms nosql book

2 — Key-Value Stores

Covers key-value store concepts through Redis and DynamoDB.

dbms nosql book

3 — Document Databases

Covers document database concepts through MongoDB and Couchbase.

dbms nosql book

4 — Column Family Databases

Covers wide-column store concepts through Cassandra and Bigtable.

dbms nosql book

5 — Graph Databases

Covers graph database concepts through Neo4j, the property graph model, and RDF.

dbms nosql book

1 — Replication

Covers master-replica, multi-master, and leaderless replication topologies and their tradeoffs.

dbms scalability book

2 — Partitioning

Covers horizontal and vertical partitioning and consistent hashing for distributing data across nodes.

dbms scalability book

3 — Distributed Transactions

Covers the saga and outbox patterns and eventual consistency as alternatives to distributed ACID transactions.

dbms scalability book

4 — CAP Theorem

Covers the CAP theorem's consistency, availability, and partition tolerance tradeoff.

dbms scalability book

5 — PACELC

Extends CAP with PACELC's latency-vs-consistency tradeoff and its practical implications for system design.

dbms scalability book

1 — Query Performance

Covers reading EXPLAIN plans, diagnosing slow queries, and choosing the right index.

dbms performance book

2 — Database Tuning

Covers connection pooling, buffer pool sizing, caching, statistics, and vacuum/analyze maintenance.

dbms performance book

3 — Common Bottlenecks

Covers the most common production bottlenecks — lock contention, hot partitions, index bloat, and deadlocks.

dbms performance book

1 — Authentication & Authorization

Covers authentication and authorization in a DBMS via roles, privileges, and role-based access control.

dbms security book

2 — Encryption

Covers encryption at rest, encryption in transit, and transparent data encryption (TDE).

dbms security book

3 — SQL Injection

Covers SQL injection prevention through prepared statements and safe ORM usage.

dbms security book

1 — Choosing the Right Database

Covers how to choose a database for a system design — SQL vs NoSQL, read-heavy vs write-heavy workloads, time-series, and graph use cases.

dbms system-design book

2 — Designing Data Models

Covers data modeling for common system-design domains — user service, e-commerce, banking, messaging, and social networks.

dbms system-design book

3 — Scaling Databases

Covers the standard database scaling toolkit — sharding, replication, read replicas, caching, and CQRS.

dbms system-design book

4 — Interview Case Studies

Walks through database design for classic interview case studies — Instagram, WhatsApp, Uber trips, YouTube metadata, and Amazon's catalog.

dbms system-design book

1 — Frequently Asked Interview Questions

Covers the recurring DBMS comparison questions asked in interviews — ACID vs BASE, clustered vs non-clustered indexes, B-tree vs B+-tree, 2PL vs MVCC, OLTP vs OLAP, and normalization vs denormalization.

dbms interview-prep book

2 — SQL Coding Interview

Covers a SQL coding interview practice set spanning easy through hard window-function and recursive SQL problems.

dbms interview-prep book

3 — Internal Architecture Deep Dive

Covers internals deep dives across PostgreSQL, MySQL InnoDB, Oracle, and SQL Server.

dbms interview-prep book

4 — Mock Interview Problems

Covers full mock-interview problem sets spanning theory, SQL, database design, performance, and troubleshooting.

dbms interview-prep book

1 — SQL Cheat Sheet

A quick-reference cheat sheet of SQL syntax across DDL, DML, joins, aggregation, and window functions.

dbms appendix book

10 — MySQL EXPLAIN Cheat Sheet

A quick-reference cheat sheet for reading MySQL EXPLAIN output.

dbms appendix book

11 — Top 200 MAANG DBMS Interview Questions

A running list of the top 200 DBMS interview questions asked at MAANG-tier companies.

dbms appendix book

12 — DBMS Glossary

A glossary of core DBMS terminology used throughout this book.

dbms appendix book

13 — Further Reading

A curated list of papers, books, and blogs for going deeper on database internals.

dbms appendix book

2 — Relational Algebra Cheat Sheet

A quick-reference cheat sheet of relational algebra operators and their SQL equivalents.

dbms appendix book

3 — Normalization Cheat Sheet

A quick-reference cheat sheet of the normal forms and the anomaly each one eliminates.

dbms appendix book

4 — Isolation Levels Matrix

A matrix cross-referencing isolation levels against the concurrency anomalies each one permits or prevents.

dbms appendix book

5 — Lock Compatibility Matrix

A compatibility matrix for lock modes used in concurrency control.

dbms appendix book

6 — Join Algorithms Comparison

A side-by-side comparison of join algorithms and their cost characteristics.

dbms appendix book

7 — Index Selection Guide

A decision guide for choosing an index type and columns for a given query pattern.

dbms appendix book

8 — Database Selection Decision Matrix

A decision matrix for choosing between SQL and NoSQL databases based on workload characteristics.

dbms appendix book

9 — PostgreSQL EXPLAIN Cheat Sheet

A quick-reference cheat sheet for reading PostgreSQL EXPLAIN and EXPLAIN ANALYZE output.

dbms appendix book

Database Management Systems

A book-shaped table of contents for DBMS: relational foundations through SQL mastery, storage internals, transactions, distributed databases, NoSQL, and MAANG interview prep — cross-linking existing system-design/patterns notes instead of duplicating them.

dbms book reference maang-prep

Chapter 1 — Introduction to Grafana Cloud

Grafana Cloud's ecosystem, how OSS/Enterprise/Cloud editions differ, the core platform components, and how regions, availability, and pricing plans shape architecture decisions.

grafana-cloud platform-foundations book

Chapter 2 — Organizations & Stack Management

Organizations, stacks, users, teams, RBAC, access policies, service accounts, and authentication as the building blocks of a Grafana Cloud tenancy.

grafana-cloud platform-foundations book

Chapter 3 — Grafana User Interface

Home, Explore, Dashboards, Drilldowns, Connections, Plugins, and Administration as the day-to-day navigation surface, plus navigation best practices.

grafana-cloud platform-foundations book

Chapter 1 — Grafana Alloy

Alloy's architecture, River configuration language, installation, pipelines, receivers, processors, exporters, and integrations as the unified telemetry collector.

grafana-cloud telemetry-collection book

Chapter 2 — OpenTelemetry Integration

How metrics, logs, traces, and profiles flow into Grafana Cloud via OpenTelemetry, semantic conventions, and auto vs. manual instrumentation.

grafana-cloud telemetry-collection book

Chapter 3 — Integrations

Out-of-the-box Grafana Cloud integrations for Kubernetes, Azure, AWS, GCP, Linux, Windows, databases, message brokers, and third-party systems.

grafana-cloud telemetry-collection book

Chapter 1 — Grafana Mimir

Mimir's architecture, remote-write ingestion, storage, high availability, replication, and retention as Grafana Cloud's horizontally-scalable metrics backend.

grafana-cloud metrics-mimir book

Chapter 2 — PromQL

Instant and range queries, functions, aggregations, histograms, recording rules, and query optimization for querying Mimir-backed metrics.

grafana-cloud metrics-mimir book

Chapter 3 — Metrics Management

Label strategy, cardinality management, Adaptive Telemetry, and cost/performance best practices for keeping a metrics pipeline sustainable at scale.

grafana-cloud metrics-mimir book

Chapter 1 — Grafana Loki

Loki's architecture, label-based indexing, chunks, storage, and retention as Grafana Cloud's cost-efficient log aggregation backend.

grafana-cloud logs-loki book

Chapter 2 — LogQL

LogQL's query language, parsing and pipeline stages, deriving metrics from logs, and log correlation and performance optimization.

grafana-cloud logs-loki book

Chapter 3 — Log Management

Log collection, processing, filtering, retention policies, and cost optimization across a Grafana Cloud logging pipeline.

grafana-cloud logs-loki book

Chapter 1 — Grafana Tempo

Tempo's distributed tracing architecture, trace collection and storage, TraceQL, and sampling strategy.

grafana-cloud traces-and-profiling book

Chapter 2 — Grafana Pyroscope

Continuous profiling with Pyroscope — CPU and memory profiling, flame graphs, and using profiles for performance analysis.

grafana-cloud traces-and-profiling book

Chapter 3 — Correlations

Navigating between metrics, logs, traces, and profiles as one investigation flow, and using cross-signal correlation for root cause analysis.

grafana-cloud traces-and-profiling book

Chapter 1 — Dashboards

Dashboard design, variables, panels, transformations, library panels, and dashboard provisioning in Grafana.

grafana-cloud visualization-and-alerting book

Chapter 2 — Explore & Drilldowns

Using Explore and Drilldowns for ad hoc metrics, log, and trace investigation, correlation, and saved queries.

grafana-cloud visualization-and-alerting book

Chapter 3 — Alerting

Grafana's unified alerting — alert rules, contact points, notification policies, silences, templates, and the alert lifecycle.

grafana-cloud visualization-and-alerting book

Chapter 4 — Reporting & Sharing

Snapshots, public dashboards, scheduled reporting, and PDF export for sharing Grafana Cloud dashboards.

grafana-cloud visualization-and-alerting book

Chapter 1 — Application Observability

Automatic service discovery, RED metrics, application performance, and error/latency analysis in Grafana Cloud's Application Observability solution.

grafana-cloud application-observability book

Chapter 2 — Entity Catalog

Entity discovery, metadata, ownership, and labeling as the inventory layer underneath Grafana Cloud's observability graph.

grafana-cloud application-observability book

Chapter 3 — Entity Graph

Infrastructure and service relationships, dependency mapping, and topology visualization across the entity graph.

grafana-cloud application-observability book

Chapter 4 — Service Graph

Service dependencies, request flows, critical paths, and bottleneck analysis derived from trace data.

grafana-cloud application-observability book

Chapter 1 — Kubernetes Monitoring

Cluster, node, workload, container, networking, and storage monitoring via the Kubernetes integration and grafana-k8s-monitoring.

grafana-cloud specialized-monitoring book

Chapter 2 — Frontend Observability

Grafana Faro, real user monitoring, Web Vitals, session analysis, and JavaScript error tracking for browser-side observability.

grafana-cloud specialized-monitoring book

Chapter 3 — Synthetic Monitoring

HTTP, DNS, and ping checks, browser tests, and private probes for proactively monitoring endpoint availability.

grafana-cloud specialized-monitoring book

Chapter 4 — k6 Performance Testing

Load, stress, spike, and browser testing with k6, plus cloud execution and result analysis.

grafana-cloud specialized-monitoring book

Chapter 1 — Grafana SLO

Defining SLIs and SLOs, tracking error budgets, and configuring burn-rate alerts and reliability reporting in Grafana Cloud's SLO app.

grafana-cloud reliability-engineering book

Chapter 2 — Grafana Incident

Incident lifecycle, timeline, collaboration, runbooks, and postmortems in Grafana Incident.

grafana-cloud reliability-engineering book

Chapter 3 — Grafana OnCall

Escalation policies, on-call schedules, alert routing, and integrations in Grafana OnCall.

grafana-cloud reliability-engineering book

Chapter 4 — Incident Response & Management (IRM)

Incident coordination, response automation, analytics, and operational workflows in Grafana IRM.

grafana-cloud reliability-engineering book

Chapter 1 — GCX CLI

Installation, authentication, context management, and resource/dashboard/alerting/SLO/synthetic-monitoring workflows via the gcx CLI, including AI agent integration, GitOps, CI/CD, and migration from grafanactl.

grafana-cloud developer-experience-and-platform-engineering book

Chapter 2 — Grafana Cloud APIs

Authenticating against and automating Grafana Cloud's REST APIs — access policies, service accounts, pagination, and rate limits.

grafana-cloud developer-experience-and-platform-engineering book

Chapter 3 — Terraform Provider

Provisioning dashboards, data sources, alerting, teams, RBAC, SLOs, and synthetic checks through the Grafana Terraform provider.

grafana-cloud developer-experience-and-platform-engineering book

Chapter 4 — Observability as Code

GitOps for dashboards and alerting, provisioning, promotion pipelines, and drift detection across Grafana Cloud environments.

grafana-cloud developer-experience-and-platform-engineering book

Chapter 1 — Security

RBAC, authentication, SSO, access policies, service accounts, and secrets management across a Grafana Cloud organization.

grafana-cloud administration-and-governance book

Chapter 2 — Billing & Cost Management

Usage metrics, billing, quotas, retention, and cost optimization levers in Grafana Cloud.

grafana-cloud administration-and-governance book

Chapter 3 — Adaptive Telemetry

Cardinality reduction, drop rules, sampling, and data-governance controls for keeping telemetry cost under control.

grafana-cloud administration-and-governance book

Chapter 4 — Fleet Management

Managing an Alloy agent fleet — configuration distribution, remote configuration, policy management, and upgrades.

grafana-cloud administration-and-governance book

Chapter 5 — Grafana Assistant

AI-assisted investigations, dashboard and query generation, alert analysis, and root-cause assistance via Grafana Assistant.

grafana-cloud administration-and-governance book

Chapter 6 — Platform Governance

Naming standards, folder strategy, multi-tenancy, and operational standards for running Grafana Cloud as a shared platform.

grafana-cloud administration-and-governance book

Chapter 1 — Azure Reference Architecture

Reference architecture for Grafana Cloud alongside Azure Monitor, AKS, Container Apps, Functions, SQL, and Cosmos DB.

grafana-cloud enterprise-architectures book

Chapter 2 — AWS Reference Architecture

Reference architecture for Grafana Cloud alongside EKS, ECS, Lambda, EC2, and CloudWatch.

grafana-cloud enterprise-architectures book

Chapter 3 — Kubernetes Platform Architecture

Multi-cluster GitOps, the Prometheus Operator, and Alloy deployment patterns at platform scale.

grafana-cloud enterprise-architectures book

Chapter 4 — Hybrid & Multi-Cloud

Hybrid and multi-region architecture, and disaster recovery/high-availability design for Grafana Cloud deployments spanning multiple clouds.

grafana-cloud enterprise-architectures book

Chapter 5 — Production Best Practices

Scalability, performance, security, reliability, and operational excellence checklists for running Grafana Cloud in production.

grafana-cloud enterprise-architectures book

Chapter 6 — Troubleshooting Playbook

A playbook for missing metrics/logs/traces, broken dashboards, alert issues, query performance, and data collection problems.

grafana-cloud enterprise-architectures book

Chapter 1 — CLI & Utilities Reference

A quick reference across gcx, the Grafana HTTP API, the Terraform provider, the Foundation SDK, Alloy, Mimirtool, LogCLI, Tempo CLI, k6 CLI, Faro SDK, and the OpenTelemetry Collector/Operator.

grafana-cloud appendices book

Chapter 2 — Query Language Cheat Sheets

Side-by-side cheat sheets for PromQL, LogQL, TraceQL, the River language, and common regex patterns.

grafana-cloud appendices book

Chapter 3 — Grafana Cloud APIs Reference

A terse reference for authentication, the resource model, API endpoints, pagination, error codes, and rate limits.

grafana-cloud appendices book

Chapter 4 — Observability Patterns

Dashboard design patterns, alert design patterns, labeling strategy, entity modeling, and multi-tenancy patterns as a pattern-library appendix.

grafana-cloud appendices book

Chapter 5 — Reference Architectures

A rollup of deployment-size reference architectures — small team, enterprise, multi-region, SaaS, Kubernetes, and hybrid cloud.

grafana-cloud appendices book

Chapter 6 — Certification & Interview Preparation

Best-practice checklists, troubleshooting scenarios, incident walkthroughs, architecture review checklists, interview Q&A, hands-on labs, and capstone projects for Grafana Cloud certification and interview prep.

grafana-cloud appendices book

Grafana Cloud

A book-shaped table of contents for Grafana Cloud: platform foundations through telemetry collection, Mimir/Loki/Tempo/Pyroscope, visualization, application observability, reliability tooling, developer experience, governance, and enterprise reference architectures — cross-linking existing notes instead of duplicating them.

grafana-cloud book reference maang-prep

# Infrastructure Platform Engineering

All Infrastructure Platform Engineering notes →

1 — From Infrastructure Operations to Infrastructure Platforms

Traces how infrastructure management evolved from ticket-driven operations into a product built by a platform team for internal infrastructure consumers.

infrastructure-platform-engineering intro book

2 — What Is an Infrastructure Platform?

Defines an infrastructure platform in terms of its capabilities, shared services, APIs, self-service surface, and the abstractions it exposes to consumers.

infrastructure-platform-engineering intro book

3 — Infrastructure Platform Architecture

Breaks an infrastructure platform into its control plane, execution plane, cloud provider integrations, interfaces, and lifecycle stages.

infrastructure-platform-engineering intro book

4 — Infrastructure Maturity Model

Maps the maturity curve from manual infrastructure through Infrastructure as Code and self-service to fully autonomous infrastructure.

infrastructure-platform-engineering intro book

1 — Infrastructure as Code Principles

Covers the core IaC principles — declarative vs. imperative style, desired state, idempotency, drift management, and immutability.

infrastructure-platform-engineering iac-foundations book

2 — Infrastructure Lifecycle

Walks the full infrastructure lifecycle from planning and provisioning through configuration, operation, and retirement.

infrastructure-platform-engineering iac-foundations book

3 — State Management

Covers Terraform/OpenTofu state management — local vs. remote state, locking, securing state, and recovering from state corruption.

infrastructure-platform-engineering iac-foundations book

4 — Infrastructure Versioning

Applies Git-based version control, semantic versioning, and release strategies to infrastructure code and modules.

infrastructure-platform-engineering iac-foundations book

1 — Terraform/OpenTofu Architecture

Explains Terraform/OpenTofu's core architecture — providers, resources, modules, and workspaces — as the building blocks of a platform's IaC layer.

infrastructure-platform-engineering terraform book

2 — Designing Reusable Modules

Covers designing reusable Terraform/OpenTofu modules — structure, inputs/outputs, composition, and registry distribution.

infrastructure-platform-engineering terraform book

3 — Enterprise Module Design

Extends module design to enterprise scale — versioning strategy, automated testing, documentation, and publishing workflows.

infrastructure-platform-engineering terraform book

4 — Infrastructure Pipelines

Designs the CI/CD pipeline for infrastructure changes — plan, review, apply, rollback, and continuous drift detection.

infrastructure-platform-engineering terraform book

5 — Policy & Validation

Adds policy and validation gates to infrastructure pipelines — variable validation, static analysis, security scanning, and cost estimation.

infrastructure-platform-engineering terraform book

1 — Cloud Architecture Principles

Covers foundational cloud architecture principles — scalability, high availability, fault domains, and the shared responsibility model.

infrastructure-platform-engineering cloud-architecture book

2 — Landing Zones

Designs a cloud landing zone — account/subscription structure, organizational units, and resource hierarchy — as the platform's foundational boundary.

infrastructure-platform-engineering cloud-architecture book

3 — Multi-Cloud Architecture

Examines multi-cloud architecture — abstraction layers, common services, provider differences, and workload portability trade-offs.

infrastructure-platform-engineering cloud-architecture book

4 — Hybrid Cloud Platforms

Covers hybrid cloud platform design — on-premises integration, connectivity, identity federation, and workload placement decisions.

infrastructure-platform-engineering cloud-architecture book

1 — Networking Fundamentals

Covers cloud networking fundamentals — VPC/VNet design, subnetting, routing, and DNS as the base layer of the infrastructure platform.

infrastructure-platform-engineering networking book

2 — Enterprise Network Architecture

Designs enterprise network architecture — hub-spoke topology, transit networks, shared services, and segmentation for multi-tenant platforms.

infrastructure-platform-engineering networking book

3 — Connectivity

Covers hybrid and cross-cloud connectivity options — VPN, ExpressRoute, Direct Connect, PrivateLink, and service endpoints.

infrastructure-platform-engineering networking book

4 — Network Security

Covers network security controls for the platform — firewalls, NSGs/security groups, load balancers, WAF, and DDoS protection.

infrastructure-platform-engineering networking book

1 — Identity Architecture

Covers identity architecture for the platform — identity providers, federation, authentication, and authorization models.

infrastructure-platform-engineering identity-access book

2 — Infrastructure IAM

Applies IAM to infrastructure provisioning — roles, permissions, least privilege, and service principals used by automation.

infrastructure-platform-engineering identity-access book

3 — Secrets Management

Covers secrets management for infrastructure — secret stores, key management, rotation policy, and encryption at rest/in transit.

infrastructure-platform-engineering identity-access book

4 — Identity Automation

Automates identity operations — provisioning, access requests, temporary access, and just-in-time access grants.

infrastructure-platform-engineering identity-access book

1 — Virtual Machines

Covers VM-based compute as a platform offering — provisioning, images, scaling, and lifecycle management.

infrastructure-platform-engineering compute book

2 — Containers

Covers container compute offerings — managed Kubernetes, container platforms, and serverless containers as platform building blocks.

infrastructure-platform-engineering compute book

3 — Serverless Infrastructure

Covers serverless infrastructure — functions, event-driven compute, and fully managed services as a platform compute tier.

infrastructure-platform-engineering compute book

4 — Platform Service Offerings

Designs the platform's compute catalog — standardized runtime offerings and selection guidance for consumers.

infrastructure-platform-engineering compute book

1 — Storage Services

Covers the platform's storage service catalog — object, block, and file storage offerings.

infrastructure-platform-engineering storage book

2 — Managed Databases

Covers managed database offerings on the platform — relational, NoSQL, in-memory, and data warehouse services.

infrastructure-platform-engineering storage book

3 — Backup & Recovery

Covers backup and recovery design for platform-provisioned storage — backup policy, replication, and recovery strategy.

infrastructure-platform-engineering storage book

4 — Data Governance

Covers data governance for platform storage — classification, encryption, retention, and lifecycle policy enforcement.

infrastructure-platform-engineering storage book

1 — Golden Images

Covers golden image pipelines — VM images, container base images, build pipelines, and image versioning.

infrastructure-platform-engineering images-environments book

2 — Immutable Infrastructure

Covers immutable infrastructure principles — image-based deployments, rollback strategy, and blue-green infrastructure patterns.

infrastructure-platform-engineering images-environments book

3 — Environment Provisioning

Covers provisioning environments across the dev/test/staging/production spectrum, including ephemeral, on-demand environments.

infrastructure-platform-engineering images-environments book

4 — Environment Lifecycle Management

Covers environment lifecycle management — creation, updates, retirement, and cost control for provisioned environments.

infrastructure-platform-engineering images-environments book

1 — Infrastructure APIs

Covers the API surface an infrastructure platform exposes to its consumers and to automation.

infrastructure-platform-engineering automation book

2 — Self-Service Infrastructure

Covers designing self-service infrastructure provisioning — catalogs, request flows, and guardrails for developer-initiated provisioning.

infrastructure-platform-engineering automation book

3 — Workflow Automation

Covers workflow automation for infrastructure operations — orchestrating multi-step provisioning and change processes.

infrastructure-platform-engineering automation book

4 — Event-Driven Infrastructure

Covers event-driven infrastructure automation — reacting to platform and cloud events to trigger provisioning actions.

infrastructure-platform-engineering automation book

5 — Platform Orchestration

Covers orchestration across the infrastructure platform's automation components, tying provisioning, policy, and workflow together.

infrastructure-platform-engineering automation book

1 — Infrastructure Standards

Covers defining and enforcing infrastructure standards across teams and environments.

infrastructure-platform-engineering governance book

2 — Policy as Code

Covers policy as code for infrastructure — encoding governance rules as automatically enforced, version-controlled policy.

infrastructure-platform-engineering governance book

3 — Compliance Automation

Covers automating compliance checks and evidence collection for infrastructure against regulatory and internal standards.

infrastructure-platform-engineering governance book

4 — Tagging & Metadata

Covers tagging and metadata strategy for infrastructure resources — ownership, cost allocation, and discoverability.

infrastructure-platform-engineering governance book

5 — Cost Governance

Covers cost governance for infrastructure — budgets, showback/chargeback, and guardrails against runaway spend.

infrastructure-platform-engineering governance book

6 — Infrastructure Auditing

Covers auditing infrastructure changes and access for security and compliance visibility.

infrastructure-platform-engineering governance book

1 — Infrastructure Monitoring

Covers monitoring the infrastructure platform itself — compute, networking, storage, and managed cloud services.

infrastructure-platform-engineering observability book

2 — Logging Infrastructure

Covers logging for infrastructure platform components and provisioning operations.

infrastructure-platform-engineering observability book

3 — Infrastructure Tracing

Covers tracing infrastructure provisioning and orchestration workflows to diagnose latency and failure points.

infrastructure-platform-engineering observability book

4 — Capacity Planning

Covers capacity planning for the infrastructure platform — forecasting demand and provisioning headroom.

infrastructure-platform-engineering observability book

5 — Infrastructure SLOs

Covers defining SLOs for the infrastructure platform itself — provisioning latency, availability, and success rate targets.

infrastructure-platform-engineering observability book

1 — High Availability

Covers high availability design for infrastructure platform components and the workloads they provision.

infrastructure-platform-engineering reliability book

2 — Disaster Recovery

Covers disaster recovery planning for infrastructure platforms — RTO/RPO targets and cross-region recovery.

infrastructure-platform-engineering reliability book

3 — Infrastructure Scaling

Covers scaling strategy for infrastructure platform components under growing consumer and workload demand.

infrastructure-platform-engineering reliability book

4 — Infrastructure Resilience

Covers resilience patterns for infrastructure platforms — graceful degradation and fault isolation.

infrastructure-platform-engineering reliability book

5 — Infrastructure Incident Response

Covers incident response specific to infrastructure platform failures — provisioning outages, control-plane degradation, and recovery.

infrastructure-platform-engineering reliability book

1 — Multi-Account Platforms

Covers running an infrastructure platform across many cloud accounts/subscriptions at enterprise scale.

infrastructure-platform-engineering enterprise-platforms book

2 — Enterprise Landing Zones

Extends landing zone design to enterprise scale — multi-business-unit account vending and governance.

infrastructure-platform-engineering enterprise-platforms book

3 — Platform Team Operating Model

Covers the operating model for an infrastructure platform team — ownership, staffing, and how it interfaces with consumer teams.

infrastructure-platform-engineering enterprise-platforms book

4 — Infrastructure Product Management

Applies product management discipline to infrastructure platforms — roadmap, adoption metrics, and consumer feedback loops.

infrastructure-platform-engineering enterprise-platforms book

5 — Infrastructure Platform Evolution

Covers how an infrastructure platform evolves over time as adoption, scale, and organizational needs change.

infrastructure-platform-engineering enterprise-platforms book

1 — ClickOps

Covers ClickOps — manual console-driven infrastructure changes — and why it undermines a platform's IaC guarantees.

infrastructure-platform-engineering anti-patterns book

2 — Copy-Paste Infrastructure

Covers copy-paste infrastructure — duplicated, drifted configuration instead of shared modules — and its long-term cost.

infrastructure-platform-engineering anti-patterns book

3 — Module Sprawl

Covers module sprawl — uncontrolled proliferation of near-duplicate Terraform/OpenTofu modules — and how it erodes reuse.

infrastructure-platform-engineering anti-patterns book

4 — Infrastructure Drift

Covers infrastructure drift — divergence between declared and actual state — and why it undermines platform guarantees.

infrastructure-platform-engineering anti-patterns book

5 — Shared Cloud Accounts

Covers the shared-cloud-account anti-pattern — blast-radius and blame-attribution problems from unsegmented accounts.

infrastructure-platform-engineering anti-patterns book

6 — Poor IAM Design

Covers common IAM anti-patterns — overly broad roles, standing access, and shared credentials — and their platform risk.

infrastructure-platform-engineering anti-patterns book

7 — Manual Environment Provisioning

Covers manual environment provisioning as an anti-pattern — the toil and inconsistency it creates versus self-service.

infrastructure-platform-engineering anti-patterns book

1 — Infrastructure Platform System Design

Works through infrastructure platform system design at the MAANG Staff/Principal bar — control plane, execution plane, and multi-tenant trade-offs.

infrastructure-platform-engineering interview-prep book

2 — Designing Self-Service Infrastructure

Works through a self-service infrastructure design exercise — catalog, request flow, guardrails, and approval automation.

infrastructure-platform-engineering interview-prep book

3 — Terraform/OpenTofu Architecture Discussions

Covers interview-style discussion points on Terraform/OpenTofu architecture — module design, state, and pipeline trade-offs.

infrastructure-platform-engineering interview-prep book

4 — Landing Zone Design Exercises

Works through landing zone design exercises for interview practice — account structure, governance, and network topology trade-offs.

infrastructure-platform-engineering interview-prep book

5 — Infrastructure Governance Case Studies

Works through infrastructure governance case studies — policy as code, cost governance, and compliance trade-offs under interview conditions.

infrastructure-platform-engineering interview-prep book

6 — Staff/Principal Infrastructure Scenarios

Covers open-ended Staff/Principal-level infrastructure platform scenarios that probe judgment under ambiguity and organizational constraints.

infrastructure-platform-engineering interview-prep book

1 — Infrastructure Platform Reference Architecture

A reference architecture diagram and component breakdown for a complete infrastructure platform.

infrastructure-platform-engineering appendix book

2 — Terraform/OpenTofu Project Structures

Reference project structures for organizing Terraform/OpenTofu code at module, workload, and enterprise scale.

infrastructure-platform-engineering appendix book

3 — Enterprise Landing Zone Reference Models

Reference landing zone models for enterprise cloud account/subscription structures.

infrastructure-platform-engineering appendix book

4 — Module Design Best Practices

A best-practices checklist for designing reusable, enterprise-grade infrastructure modules.

infrastructure-platform-engineering appendix book

5 — Infrastructure Maturity Assessment

A self-assessment rubric for scoring an organization's infrastructure platform maturity.

infrastructure-platform-engineering appendix book

6 — Cloud Architecture Decision Records (ADRs)

Reference ADR templates and examples for capturing cloud architecture decisions.

infrastructure-platform-engineering appendix book

7 — Infrastructure Platform Patterns & Checklists

A consolidated reference of infrastructure platform patterns and operational checklists.

infrastructure-platform-engineering appendix book

Infrastructure Platform Engineering

A book-shaped table of contents for infrastructure platform engineering: from infrastructure operations to self-service platforms, IaC foundations, Terraform/OpenTofu, cloud platform design, networking, identity, compute, storage, golden images, automation, governance, observability, reliability, enterprise platforms, anti-patterns, and MAANG interview prep — cross-linking existing sre/networks/kubernetes/patterns/internal-developer-platforms notes instead of duplicating them.

infrastructure-platform-engineering book reference maang-prep

# Internal Developer Platforms

All Internal Developer Platforms notes →

1 — The Rise of Internal Developer Platforms

Traces why IDPs emerged from the developer productivity crisis and clarifies how the term relates to, and differs from, platform engineering more broadly.

internal-developer-platforms introduction book

2 — What Is an Internal Developer Platform?

Defines an IDP by its consumers, providers, and boundaries rather than by any specific tool stack.

internal-developer-platforms introduction book

3 — Platform Goals

Lays out the goals, self-service, consistency, reliability, security, developer experience, and operational excellence, every later Part in this book is designed against.

internal-developer-platforms introduction book

4 — Build vs Buy

A decision framework for choosing between a custom-built platform, a commercial IDP product, and composing one from the open-source ecosystem.

internal-developer-platforms introduction book

1 — IDP Reference Architecture

A reference architecture for an IDP spanning logical layers, physical deployment topology, and the interfaces between them.

internal-developer-platforms architecture book

2 — Platform Building Blocks

Enumerates the building blocks, portal, catalog, templates, APIs, automation engine, identity, and observability, that recur across every IDP implementation, each expanded in its own later Part.

internal-developer-platforms architecture book

3 — Control Plane vs Data Plane

Separates what the platform's control plane decides from what actually executes on the runtime plane, and why conflating the two is a common architecture mistake.

internal-developer-platforms architecture book

4 — Platform Domains

Maps the platform's scope across infrastructure, application, security, networking, data, and observability domains.

internal-developer-platforms architecture book

1 — Self-Service Philosophy

The philosophy behind self-service: removing the platform team as an approval bottleneck so engineering autonomy scales independently of platform headcount.

internal-developer-platforms self-service book

2 — Self-Service Workflows

Catalogs the concrete workflows, environment provisioning, service creation, infrastructure and access requests, deployments, a self-service platform must expose end to end.

internal-developer-platforms self-service book

3 — Service Provisioning

Covers provisioning mechanics from infrastructure and runtime through resource lifecycle management, and where approval workflows still belong.

internal-developer-platforms self-service book

4 — Platform APIs

API design principles for the resource, infrastructure, and event APIs that make self-service programmable rather than portal-only.

internal-developer-platforms self-service book

1 — What Are Golden Paths?

Defines golden paths as opinionated, standardized workflows, and is honest about their benefits and their limitations.

internal-developer-platforms golden-paths book

2 — Designing Golden Paths

A design process for golden paths that encodes technology, architecture, operational, and security standards into a single opinionated path.

internal-developer-platforms golden-paths book

3 — Golden Path Examples

Worked golden-path examples across six common workload shapes: new microservice, API service, scheduled job, event-driven service, frontend application, and data pipeline.

internal-developer-platforms golden-paths book

4 — Maintaining Golden Paths

How a golden path stays alive after launch: versioning, deprecation, and incorporating user feedback without breaking every service that already adopted it.

internal-developer-platforms golden-paths book

1 — Why Software Catalogs Matter

Makes the case for a software catalog as the discoverability, ownership, documentation, and governance backbone of a platform.

internal-developer-platforms software-catalogs book

2 — Service Catalog Design

Catalog design choices, entity types, metadata schema, ownership fields, and relationship modeling, that determine whether the catalog stays trustworthy at scale.

internal-developer-platforms software-catalogs book

3 — Catalog Data Model

A concrete data model spanning services, APIs, libraries, systems, components, and resources as first-class catalog entities.

internal-developer-platforms software-catalogs book

4 — Ownership Models

Ownership models, team, domain, business-unit, and product-based, and the trade-offs each makes for accountability at scale.

internal-developer-platforms software-catalogs book

1 — Introduction to Backstage

Introduces Backstage's architecture, core concepts, and plugin ecosystem as the most widely adopted open-source IDP foundation.

internal-developer-platforms backstage book

2 — Backstage Software Catalog

How Backstage implements the software catalog concepts from Part V: entity descriptors, catalog-info.yaml, and the catalog processing pipeline.

internal-developer-platforms backstage book

3 — Backstage Scaffolder

Backstage's Scaffolder plugin as the software-template execution engine: how a template becomes a running service.

internal-developer-platforms backstage book

4 — Backstage TechDocs

TechDocs as Backstage's docs-as-code layer: how documentation stays attached to its owning entity in the catalog.

internal-developer-platforms backstage book

5 — Backstage Plugins

Surveys the Backstage plugin ecosystem, Kubernetes, GitHub, Argo CD, Grafana, PagerDuty, Jenkins, and where a custom plugin becomes necessary.

internal-developer-platforms backstage book

6 — Extending Backstage

Extending Backstage beyond off-the-shelf plugins: custom plugin development, component overrides, authentication providers, and branding.

internal-developer-platforms backstage book

1 — Why Templates Matter

Why software templates, not documentation, are the mechanism that actually makes a golden path get followed.

internal-developer-platforms templates book

2 — Service Templates

Service-level templates that scaffold a new microservice with the organization's standards already applied.

internal-developer-platforms templates book

3 — Infrastructure Templates

Infrastructure-level templates for provisioning the cloud resources a service depends on alongside its code scaffold.

internal-developer-platforms templates book

4 — Organization Standards

How organization-wide standards, language versions, CI pipelines, security baselines, get encoded into templates rather than enforced after the fact.

internal-developer-platforms templates book

5 — Template Versioning

Versioning strategy for templates so that already-scaffolded services can adopt improvements without a breaking migration.

internal-developer-platforms templates book

6 — Template Governance

Governance over who can publish a template, how it gets reviewed, and how deprecation of an old template is communicated.

internal-developer-platforms templates book

1 — API-Driven Platforms

Why every platform capability should be reachable by API first, with the portal UI as a client of that API rather than the source of truth.

internal-developer-platforms automation book

2 — Event-Driven Automation

Event-driven automation, reacting to catalog and provisioning events rather than polling, as the backbone of platform responsiveness.

internal-developer-platforms automation book

3 — Workflow Engines

Workflow engines for orchestrating multi-step platform operations (provision, configure, register, notify) with retries and visibility.

internal-developer-platforms automation book

4 — Platform Orchestration

Orchestration patterns that coordinate multiple platform capabilities, catalog, templates, provisioning, access, into a single self-service action.

internal-developer-platforms automation book

5 — Infrastructure Automation

Infrastructure automation, Terraform/Crossplane-style provisioning, as the execution layer behind self-service infrastructure requests.

internal-developer-platforms automation book

6 — Policy Automation

Policy-as-code automation (OPA/Kyverno-style admission and provisioning guardrails) that enforces governance without a manual approval queue.

internal-developer-platforms automation book

1 — Understanding Developer Experience

Defines developer experience as a first-class platform outcome, not a soft add-on to infrastructure capability.

internal-developer-platforms devex book

2 — Measuring DevEx

Measurement approaches for DevEx, from qualitative surveys to the quantitative signals a platform can instrument directly.

internal-developer-platforms devex book

3 — Reducing Cognitive Load

Cognitive load reduction as a design goal: what a golden path and a good abstraction are actually optimizing for.

internal-developer-platforms devex book

4 — Developer Journeys

Mapping the end-to-end developer journey, from first day on a team to shipping a change to production, to find where the platform actually helps or hinders.

internal-developer-platforms devex book

5 — Documentation as a Platform Feature

Treats documentation as a platform feature with its own ownership and freshness contract, not an afterthought bolted onto the wiki.

internal-developer-platforms devex book

6 — Platform UX Design

UX design principles for a developer portal, where the user is an engineer under time pressure, not a general consumer audience.

internal-developer-platforms devex book

1 — Identity and Access Management

IAM foundations for a platform: how identity, group membership, and service accounts map onto catalog and provisioning permissions.

internal-developer-platforms governance book

2 — Platform Security

Security responsibilities that belong to the platform itself, distinct from the security posture of the services running on top of it.

internal-developer-platforms governance book

3 — Platform Policies

Policy definition and enforcement points across the platform: what gets checked at request time versus at admission time.

internal-developer-platforms governance book

4 — Platform Guardrails

Guardrails as the difference between a self-service platform and an ungoverned free-for-all: constraints that don't require a human in the loop.

internal-developer-platforms governance book

5 — Compliance by Default

Building compliance requirements into golden paths and templates so services are compliant by construction, not by later audit.

internal-developer-platforms governance book

6 — Auditability

Audit trail requirements for platform actions: who provisioned what, when, and under which approval.

internal-developer-platforms governance book

1 — Platform Operations

Day-two operational responsibilities for running the platform itself as a production system.

internal-developer-platforms operations book

2 — Platform Reliability

Reliability engineering applied to the platform's own control plane: the platform going down blocks every team behind it, not just one service.

internal-developer-platforms operations book

3 — Platform Observability

Observability requirements for the platform's own control plane and workflows, distinct from the observability the platform provides to its tenants.

internal-developer-platforms operations book

4 — Platform Support Models

Support models for a platform team, from ticket queues to embedded support to fully self-service, and when each is appropriate.

internal-developer-platforms operations book

5 — Incident Management

Incident management specific to platform outages, where the blast radius is every consuming team rather than a single service's users.

internal-developer-platforms operations book

6 — Platform Evolution

How a platform evolves after initial adoption: deprecating capabilities, migrating tenants, and avoiding a permanent legacy tax.

internal-developer-platforms operations book

1 — Adoption Metrics

Adoption metrics, active users, service coverage, template usage, self-service rate, that show whether the platform is actually being used, not just built.

internal-developer-platforms metrics book

2 — Productivity Metrics

Productivity metrics, time to first deployment, lead time, developer wait time, deployment velocity, the platform is ultimately accountable for moving.

internal-developer-platforms metrics book

3 — Platform Reliability Metrics

Reliability metrics for the platform's own APIs and workflows: availability, latency, workflow success rate, provisioning success.

internal-developer-platforms metrics book

4 — Developer Satisfaction

Developer satisfaction measurement, surveys, NPS, structured feedback loops, as the qualitative complement to the quantitative metrics above.

internal-developer-platforms metrics book

1 — Portal Without Automation

The anti-pattern of a developer portal that's a pretty UI over the same manual, ticket-driven fulfillment underneath.

internal-developer-platforms anti-patterns book

2 — Platform Team as Ticket Queue

How a platform team backslides into being a ticket queue with extra steps, and why that failure mode undoes the entire self-service premise.

internal-developer-platforms anti-patterns book

3 — Too Many Golden Paths

The failure mode of proliferating golden paths until being opinionated becomes as confusing as having no standard at all.

internal-developer-platforms anti-patterns book

4 — Ignoring Developer Feedback

What happens when a platform team stops listening to the engineers it serves, and the trust cost of getting this wrong once.

internal-developer-platforms anti-patterns book

5 — Over-Engineered Platforms

Over-engineering, building for hypothetical scale or hypothetical tenants before real ones exist, as a platform-specific waste pattern.

internal-developer-platforms anti-patterns book

6 — Poor Adoption

Diagnosing poor adoption after launch: is it a discoverability problem, a trust problem, or a real capability gap.

internal-developer-platforms anti-patterns book

1 — Multi-Team Platforms

Platform design considerations once dozens of independent teams, not one pilot team, depend on the same golden paths.

internal-developer-platforms enterprise book

2 — Multi-Cloud IDPs

IDP design for organizations spanning multiple cloud providers, where the catalog and templates must abstract over provider differences.

internal-developer-platforms enterprise book

3 — Multi-Region Platforms

Multi-region platform design: where the control plane lives relative to the regions it provisions into.

internal-developer-platforms enterprise book

4 — Domain-Oriented Platforms

Domain-oriented platform structuring, where catalog ownership and golden paths are organized around business domains rather than one flat namespace.

internal-developer-platforms enterprise book

5 — Platform Product Management

Product management discipline applied to an internal platform: roadmaps, prioritization, and internal stakeholder management.

internal-developer-platforms enterprise book

6 — Scaling an Internal Developer Platform

What has to change structurally, team topology, catalog scale, template governance, as an IDP scales from one pilot team to the whole engineering org.

internal-developer-platforms enterprise book

1 — Internal Developer Platform System Design

A worked IDP system-design prompt at the Staff/Principal bar: requirements, architecture, and the trade-offs an interviewer will probe.

internal-developer-platforms interview-prep book

2 — Designing Self-Service Platforms

A self-service-focused design exercise, distinct from the general IDP prompt, that probes provisioning workflows and approval boundaries specifically.

internal-developer-platforms interview-prep book

3 — Backstage Architecture Interview Questions

A question bank on Backstage's own architecture, catalog processing, scaffolder internals, plugin boundaries, for platform-engineering-flavored interviews.

internal-developer-platforms interview-prep book

4 — Golden Path Design Exercises

Whiteboard exercises for designing a golden path from scratch for a given workload shape under interview time pressure.

internal-developer-platforms interview-prep book

5 — Platform API Design Interviews

API design interview practice specific to platform resource, infrastructure, and event APIs.

internal-developer-platforms interview-prep book

6 — Staff/Principal Platform Engineering Case Studies

End-to-end case studies calibrated to the Staff/Principal (L6/L7) bar for platform engineering interviews.

internal-developer-platforms interview-prep book

1 — IDP Reference Architecture

Quick-reference version of the IDP reference architecture from Part II, for lookup without re-reading the full chapter.

internal-developer-platforms appendices book

2 — Backstage Entity Reference

Quick reference for Backstage's built-in entity kinds (Component, API, System, Domain, Resource, User, Group) and their required fields.

internal-developer-platforms appendices book

3 — Software Catalog Schema Examples

Worked catalog schema examples for the entity types introduced in Part V, as copy-adaptable starting points.

internal-developer-platforms appendices book

4 — Platform API Design Patterns

A pattern catalog for platform API design: pagination, idempotency keys, async operation status, specific to provisioning-style APIs.

internal-developer-platforms appendices book

5 — Developer Journey Mapping Templates

Blank developer-journey mapping templates for running the exercise from Part IX with a real team.

internal-developer-platforms appendices book

6 — IDP Capability Maturity Model

A capability maturity model for scoring an IDP's coverage across self-service, golden paths, catalog, and DevEx.

internal-developer-platforms appendices book

7 — Platform Engineering Reading List

A curated reading list of books, papers, and engineering blogs that shaped the practice of platform engineering and IDPs.

internal-developer-platforms appendices book

Internal Developer Platforms

A book-shaped table of contents for Internal Developer Platforms: IDP fundamentals, architecture, self-service, golden paths, software catalogs, Backstage, templates, platform APIs and automation, developer experience, governance, operations, success metrics, anti-patterns, enterprise scale, and MAANG interview preparation — cross-linking existing platform-engineering-fundamentals/sre/observability notes instead of duplicating them.

internal-developer-platforms book reference maang-prep

# Kubernetes Platform Engineering

All Kubernetes Platform Engineering notes →

1 — Why Kubernetes Became the Platform Standard

Covers Evolution of Container Orchestration, Kubernetes as a Platform, Platform Engineering on Kubernetes, and Platform Responsibilities.

kubernetes-platform-engineering kubernetes book

2 — Kubernetes Platform Architecture

Covers Control Plane, Worker Nodes, Cluster Services, Platform Layers, and Platform Boundaries.

kubernetes-platform-engineering kubernetes book

3 — Kubernetes as an Internal Developer Platform

Covers Platform Users, Platform Services, Shared vs Dedicated Clusters, and Platform Interfaces.

kubernetes-platform-engineering kubernetes book

4 — Kubernetes Platform Maturity Model

Covers Foundational Platform, Self-Service Platform, Enterprise Platform, and Autonomous Platform.

kubernetes-platform-engineering kubernetes book

1 — Reference Platform Architecture

Covers Compute Layer, Networking Layer, Storage Layer, Security Layer, and Observability Layer.

kubernetes-platform-engineering kubernetes book

2 — Cluster Architecture Patterns

Covers Single Cluster, Multi-Cluster, Regional Clusters, Global Clusters, and Fleet Architecture.

kubernetes-platform-engineering kubernetes book

3 — Control Plane Design

Covers High Availability, Managed vs Self-Managed, Upgrade Strategies, and API Server Scaling.

kubernetes-platform-engineering kubernetes book

4 — Node Architecture

Covers Node Pools, Specialized Nodes, Autoscaling, Spot Nodes, and GPU Nodes.

kubernetes-platform-engineering kubernetes book

1 — Understanding Multi-Tenancy

Covers Soft vs Hard Multi-Tenancy, Isolation Models, and Shared Responsibility.

kubernetes-platform-engineering multi book

2 — Namespace Strategies

Covers Team-Based, Environment-Based, Application-Based, and Hybrid Models.

kubernetes-platform-engineering multi book

3 — Resource Isolation

Covers ResourceQuota, LimitRange, QoS Classes, and Fair Resource Sharing.

kubernetes-platform-engineering multi book

4 — Network Isolation

Covers Network Policies, Service Isolation, East-West Traffic, and Zero Trust Networking.

kubernetes-platform-engineering multi book

5 — Security Isolation

Covers RBAC, Service Accounts, Pod Security Admission, and Secrets Isolation.

kubernetes-platform-engineering multi book

1 — GitOps for Platform Teams

Covers GitOps Principles, Desired State, Reconciliation, and Drift Detection.

kubernetes-platform-engineering platform book

2 — Cluster Bootstrapping

Covers Declarative Cluster Creation, Day-0 Automation, and Cluster Provisioning.

kubernetes-platform-engineering platform book

3 — Platform Automation Pipelines

Covers Infrastructure Automation, Application Automation, Platform Automation, and Event-Driven Workflows.

kubernetes-platform-engineering platform book

4 — Kubernetes Operators

Covers Operator Pattern, Custom Controllers, Operator Lifecycle, and Platform Operators.

kubernetes-platform-engineering platform book

1 — Kubernetes Packaging

Covers Why Packaging Matters, Helm Concepts, and OCI Artifacts.

kubernetes-platform-engineering helm book

2 — Enterprise Helm

Covers Repository Management, Versioning, Dependency Management, and Release Management.

kubernetes-platform-engineering helm book

3 — Platform Charts

Covers Base Charts, Shared Charts, Library Charts, and Organizational Standards.

kubernetes-platform-engineering helm book

4 — Helm Governance

Covers Chart Testing, Security, Validation, and Promotion Pipelines.

kubernetes-platform-engineering helm book

1 — Cluster API Fundamentals

Covers Architecture, Providers, Machine Deployments, and Bootstrap Providers.

kubernetes-platform-engineering cluster book

2 — Cluster Provisioning

Covers Self-Service Clusters, Lifecycle Management, Upgrades, and Scaling.

kubernetes-platform-engineering cluster book

3 — Cluster Fleet Management

Covers Fleet Architecture, Registration, Inventory, and Cluster Health.

kubernetes-platform-engineering cluster book

4 — Day-2 Cluster Operations

Covers Maintenance, Upgrades, Disaster Recovery, and Cluster Retirement.

kubernetes-platform-engineering cluster book

1 — Introduction to Crossplane

Covers Control Planes, Managed Resources, Compositions, and Claims.

kubernetes-platform-engineering crossplane book

2 — Platform APIs

Covers Abstract Infrastructure, Resource Claims, Self-Service Infrastructure, and API Contracts.

kubernetes-platform-engineering crossplane book

3 — Compositions

Covers Composite Resources, Reusable Infrastructure, and Platform Abstractions.

kubernetes-platform-engineering crossplane book

4 — Building Cloud Platforms

Covers Multi-Cloud APIs, Infrastructure Products, and Service Offerings.

kubernetes-platform-engineering crossplane book

1 — Ingress & Gateway Platforms

Covers Ingress Controllers, Gateway API, API Gateways, and Traffic Management.

kubernetes-platform-engineering platform book

2 — Service Discovery

Covers DNS, Internal Services, External Services, and Service Registry.

kubernetes-platform-engineering platform book

3 — Storage Platforms

Covers CSI, Dynamic Provisioning, Storage Classes, and Backup.

kubernetes-platform-engineering platform book

4 — Secret Management

Covers External Secrets, Secret Stores, Rotation, and Encryption.

kubernetes-platform-engineering platform book

5 — Platform Networking

Covers CNI, Load Balancing, Service Networking, and Egress Management.

kubernetes-platform-engineering platform book

1 — Observability Architecture

Covers Metrics, Logs, Traces, and Profiles.

kubernetes-platform-engineering observability book

2 — Platform Monitoring

Covers Cluster Monitoring, Node Monitoring, Control Plane Monitoring, and Workload Monitoring.

kubernetes-platform-engineering observability book

3 — Logging Platforms

Covers Centralized Logging, Log Pipelines, Multi-Tenant Logging, and Retention.

kubernetes-platform-engineering observability book

4 — Platform Alerting

Covers SLO-Based Alerting, Alert Routing, Runbooks, and Incident Response.

kubernetes-platform-engineering observability book

5 — Platform Dashboards

Covers Platform KPIs, Capacity, Reliability, and Developer Metrics.

kubernetes-platform-engineering observability book

1 — Kubernetes Security Architecture

The layered security model for a Kubernetes platform — cluster boundary, workload boundary, and identity boundary — and how they compose into defense in depth.

kubernetes-platform-engineering platform book

2 — Admission Controllers

How admission controllers intercept and validate or mutate API requests before they're persisted, and where platform-wide policy enforcement belongs in that pipeline.

kubernetes-platform-engineering platform book

3 — Policy as Code

Covers Kyverno, and OPA Gatekeeper.

kubernetes-platform-engineering platform book

4 — Supply Chain Security

Covers Image Signing, SBOM, and Provenance.

kubernetes-platform-engineering platform book

5 — Runtime Security

Covers Falco, Runtime Detection, and Threat Response.

kubernetes-platform-engineering platform book

1 — High Availability

Designing a Kubernetes platform's control plane and workloads to survive node, zone, and region failures without service interruption.

kubernetes-platform-engineering platform book

2 — Autoscaling

Covers HPA, VPA, Cluster Autoscaler, and KEDA.

kubernetes-platform-engineering platform book

3 — Capacity Planning

Forecasting cluster and node-pool capacity against workload growth, and the signals that trigger a scale-up decision before it becomes an incident.

kubernetes-platform-engineering platform book

4 — Platform Disaster Recovery

Recovery objectives, backup strategy, and failover procedures for restoring a Kubernetes platform after a catastrophic failure.

kubernetes-platform-engineering platform book

5 — Chaos Engineering

Deliberately injecting failure into a Kubernetes platform to validate that its resilience assumptions hold under real conditions.

kubernetes-platform-engineering platform book

1 — Multi-Cluster Management

Operating a fleet of Kubernetes clusters as a single managed estate rather than a collection of independently administered clusters.

kubernetes-platform-engineering enterprise book

2 — Hybrid Cloud Platforms

Extending a Kubernetes platform across on-premises and public cloud environments with a consistent operating model.

kubernetes-platform-engineering enterprise book

3 — Multi-Cloud Kubernetes

Running Kubernetes platforms across multiple public cloud providers, and the portability tradeoffs that decision introduces.

kubernetes-platform-engineering enterprise book

4 — Platform Governance

The policies, guardrails, and approval workflows that keep a large-scale Kubernetes platform compliant and consistent across teams.

kubernetes-platform-engineering enterprise book

5 — Cost Optimization

Identifying and eliminating waste in cluster compute, storage, and networking spend without degrading platform reliability.

kubernetes-platform-engineering enterprise book

6 — Platform Standardization

Establishing shared conventions, templates, and golden paths across teams so platform capabilities compose predictably.

kubernetes-platform-engineering enterprise book

1 — Shared Cluster Without Governance

What happens when teams share a cluster with no tenancy boundaries, quotas, or ownership model in place.

kubernetes-platform-engineering platform book

2 — Namespace Sprawl

How unmanaged namespace creation erodes a platform's ability to reason about ownership, cost, and blast radius.

kubernetes-platform-engineering platform book

3 — Manual Cluster Operations

The operational debt that accumulates when cluster lifecycle tasks are performed by hand instead of through automation.

kubernetes-platform-engineering platform book

4 — Platform Team as Cluster Admins

Why routing every developer request through platform-team cluster-admin access defeats the purpose of a self-service platform.

kubernetes-platform-engineering platform book

5 — Poor Multi-Tenancy Design

Common tenancy-isolation mistakes — under-isolating shared resources or over-isolating to the point self-service breaks down.

kubernetes-platform-engineering platform book

6 — Ignoring Developer Experience

How a platform that is technically correct but hard to use pushes developers toward workarounds that undermine the platform itself.

kubernetes-platform-engineering platform book

1 — Kubernetes Platform System Design

System-design framing for Kubernetes platform questions at the Staff/Principal interview bar — scope, constraints, and tradeoffs.

kubernetes-platform-engineering maang book

2 — Designing Multi-Tenant Kubernetes Platforms

A worked interview scenario for designing tenancy isolation, quotas, and shared services on a multi-tenant Kubernetes platform.

kubernetes-platform-engineering maang book

3 — GitOps Platform Design Interviews

Interview scenarios that probe GitOps repository structure, reconciliation design, and drift-handling decisions.

kubernetes-platform-engineering maang book

4 — Crossplane & Control Plane Design

Interview scenarios that probe control-plane abstraction design using Crossplane compositions and claims.

kubernetes-platform-engineering maang book

5 — Cluster Architecture Case Studies

Case-study-style interview questions built around real cluster architecture tradeoffs at scale.

kubernetes-platform-engineering maang book

6 — Staff/Principal Platform Engineering Scenarios

Open-ended platform engineering scenarios calibrated to the ambiguity and scope expected at Staff/Principal level.

kubernetes-platform-engineering maang book

1 — Kubernetes Platform Reference Architecture

A consolidated reference diagram and component list for the platform architecture described across this book.

kubernetes-platform-engineering appendices book

2 — Cluster Design Decision Matrix

A decision matrix for choosing cluster topology, control-plane management, and node architecture given a set of constraints.

kubernetes-platform-engineering appendices book

3 — Multi-Tenancy Design Patterns

A catalog of multi-tenancy isolation patterns and when each is the right fit.

kubernetes-platform-engineering appendices book

4 — GitOps Repository Structures

Reference repository layouts for GitOps-managed Kubernetes platforms, from single-cluster to fleet scale.

kubernetes-platform-engineering appendices book

5 — Platform API Design Examples

Worked examples of platform API and resource-claim design for self-service infrastructure.

kubernetes-platform-engineering appendices book

6 — Kubernetes Platform Maturity Model

A reference version of the maturity model introduced in Part I, expanded with assessment criteria per stage.

kubernetes-platform-engineering appendices book

7 — CNCF Landscape for Platform Engineers

A curated map of the CNCF project landscape relevant to building and operating a Kubernetes platform.

kubernetes-platform-engineering appendices book

Kubernetes Platform Engineering

A book-shaped table of contents for Kubernetes platform engineering: architecture, multi-tenancy, platform automation, Helm, Cluster API, Crossplane, platform services, observability, security, reliability, and enterprise operations — cross-linking existing kubernetes/observability/platform-engineering notes instead of duplicating them.

kubernetes-platform-engineering book reference maang-prep

1 — Why Kubernetes Exists

Why declarative, self-healing reconciliation beat hand-rolled scripts and imperative config management once server fleets outgrew what humans could reconcile by hand.

kubernetes foundations book

2 — Linux Fundamentals

Why a container is just a regular Linux process wearing namespaces for isolation and cgroups for resource limits, not a lightweight virtual machine.

kubernetes foundations book

3 — Containers & OCI

Why the OCI image and runtime specs matter more than Docker itself — they let containerd, CRI-O, and Podman run the same artifact without vendor lock-in.

kubernetes foundations book

4 — Kubernetes Architecture

Why the control plane's continuous reconciliation loop, not the scheduler alone, is what makes Kubernetes self-healing rather than merely self-installing.

kubernetes foundations book

5 — Installing Kubernetes

Why kubeadm, managed control planes, and kubeadm-free distros mainly differ in who owns lifecycle and upgrade risk, not in what a conformant cluster actually runs.

kubernetes foundations book

6 — Kubernetes API & Object Model

Why kubectl is just a REST client — every object is a resource in the API server's store, making the API server the only legitimate path to change cluster state.

kubernetes foundations book

1 — Pods

Why a Pod, not a container, is the atomic unit of scheduling — containers sharing a Pod share network namespace and IPC but never share a lifecycle.

kubernetes core-objects book

2 — Labels, Selectors & Annotations

Labels are indexed and queryable for selection and grouping; annotations hold non-identifying metadata the scheduler never selects on.

kubernetes core-objects book

3 — ReplicaSets

A ReplicaSet only guarantees replica count and pod-template match — it has no concept of rollout history, which is why Deployments layer on top of it.

kubernetes core-objects book

4 — Deployments

Deployments add rollout history and rollback on top of ReplicaSets by keeping old ReplicaSets scaled to zero instead of deleting them.

kubernetes core-objects book

5 — StatefulSets

StatefulSets trade the Deployment's disposable-replica model for stable pod identity and ordinal-indexed PersistentVolumeClaims that survive rescheduling.

kubernetes core-objects book

6 — DaemonSets

DaemonSets bind pod placement to node lifecycle rather than replica count — one pod per matching node, added and removed as nodes join or leave the cluster.

kubernetes core-objects book

7 — Jobs & CronJobs

Jobs track completion count rather than desired replica count, which is why a CrashLoopBackOff in a Job looks nothing like one in a Deployment.

kubernetes core-objects book

8 — Namespaces

Namespaces partition names and quota, not network or security — RBAC and NetworkPolicy have to be added explicitly, isolation is never implied by the namespace boundary alone.

kubernetes core-objects book

9 — Resource Management (Requests, Limits, QoS)

The scheduler only reads requests, never limits — the requests-to-limits ratio instead decides the pod's QoS class, which is what actually governs eviction order under node pressure.

kubernetes core-objects book

1 — ConfigMaps

ConfigMaps mounted as volumes update live on the filesystem when the source changes, but env vars sourced from a ConfigMap are frozen at container start until the pod restarts.

kubernetes config book

10 — ResourceQuota & LimitRange

ResourceQuota caps aggregate consumption per namespace while LimitRange sets per-object defaults and min/max — without a LimitRange, one pod that omits resource requests can exhaust the whole namespace's quota.

kubernetes config book

2 — Secrets

Kubernetes Secrets are base64-encoded, not encrypted, by default — real confidentiality at rest requires enabling etcd encryption or an external secrets store, not just using the Secret object.

kubernetes config book

3 — Downward API

The Downward API lets a container read its own pod's metadata — labels, annotations, resource limits, IP — as env vars or files, avoiding an API server round trip and the RBAC permissions that would require.

kubernetes config book

4 — Environment Variables

Env vars are resolved once when the container process starts, so a downstream ConfigMap or Secret edit has no effect until the pod is recreated — unlike a mounted volume, which the kubelet syncs live.

kubernetes config book

5 — Probes (Liveness, Readiness, Startup)

Startup probes exist to hold off liveness checks during a slow boot, since without one a container that's merely still initializing gets killed and crash-looped as if it were actually hung.

kubernetes config book

6 — Init Containers

Init containers run sequentially to completion before any app container starts, making them the natural place for one-time setup like schema migrations or dependency wait-checks that shouldn't re-run on every app-container restart.

kubernetes config book

7 — Sidecars

A sidecar shares the pod's network namespace and volumes with the main container, which is exactly what lets patterns like a local Envoy proxy or log shipper attach without any code change to the primary app.

kubernetes config book

8 — Multi-Container Pods

Containers in the same pod are always co-scheduled on one node and share the same lifecycle, which is why you can't scale or restart one container independently of the others in the pod.

kubernetes config book

9 — Application Health Patterns

Conflating liveness (should this be restarted) with readiness (should this receive traffic) causes cascading restarts when a pod is merely overloaded and slow rather than actually broken.

kubernetes config book

1 — Scheduler Internals

Why the scheduler's filter-then-score two-phase pipeline exists instead of just placing a pod on the first node that fits.

kubernetes scheduling book

10 — Upgrades & Version Skew

Why the N-2 kubelet-to-API-server version skew policy is what lets a large fleet upgrade gradually instead of needing a synchronized all-at-once cutover.

kubernetes scheduling book

2 — nodeSelector

Why nodeSelector's exact-match label equality makes it too blunt for anything beyond simple hardware-tier pinning.

kubernetes scheduling book

3 — Node Affinity

Why splitting node affinity into required (hard) and preferred (soft) rules lets you express 'must have SSD' and 'prefer us-east' in the same spec.

kubernetes scheduling book

4 — Pod Affinity & Anti-Affinity

Why the topology key, not just 'same node' or 'different node', is what actually spreads replicas across real failure domains.

kubernetes scheduling book

5 — Taints & Tolerations

Why taints repel pods by default while tolerations only grant permission to land there — they never force placement the way affinity does.

kubernetes scheduling book

6 — Priority Classes

Why priority classes only matter at eviction and preemption time under resource pressure, not as a routine scheduling hint.

kubernetes scheduling book

7 — Topology Spread Constraints

Why maxSkew is the one knob that finally balances replicas evenly across zones without the all-or-nothing rigidity of anti-affinity.

kubernetes scheduling book

8 — Node Maintenance

Why cordon-then-drain, not a bare delete, is the only sequence that respects PodDisruptionBudgets while evacuating a node.

kubernetes scheduling book

9 — Cluster Lifecycle

Why control-plane and etcd lifecycle, not just worker node churn, is the part of 'cluster lifecycle' most operators under-plan for.

kubernetes scheduling book

1 — Kubernetes Networking Model

Why the flat 'every Pod gets a routable IP, no NAT' contract is what lets Kubernetes treat networking as a pluggable implementation detail instead of a per-app concern.

kubernetes networking book

2 — CNI Architecture

CNI is a thin exec-based plugin contract, not a networking stack itself — which is why Calico, Cilium, and Flannel can implement wildly different dataplanes (iptables, eBPF, VXLAN) behind the same interface.

kubernetes networking book

3 — Services

A Service is a stable virtual IP backed by an ever-changing Endpoints/EndpointSlice list — the abstraction exists precisely because Pod IPs are ephemeral and cannot be a load-balancing target.

kubernetes networking book

4 — kube-proxy

kube-proxy doesn't proxy traffic in the IPVS/iptables modes — it only programs kernel-level NAT rules on each node, so a kube-proxy crash doesn't break existing connections, only new rule updates.

kubernetes networking book

5 — CoreDNS

CoreDNS resolves Service names by querying the API server, not by watching iptables — so a Service can be DNS-resolvable milliseconds before kube-proxy has actually wired up a route to it.

kubernetes networking book

6 — Ingress

The Ingress resource is a portable schema with no built-in implementation — every annotation you add to make it actually do something ties you to one specific controller, quietly breaking portability.

kubernetes networking book

7 — Gateway API

Gateway API splits the single Ingress object into role-scoped resources (GatewayClass, Gateway, HTTPRoute) specifically so platform teams and app teams can own different layers without stepping on each other's config.

kubernetes networking book

8 — Network Policies

NetworkPolicy is default-permissive until the first policy selects a Pod — the moment you write one ingress rule for a Pod, all other traffic to it is implicitly denied, which is a common outage-by-surprise.

kubernetes networking book

9 — Service Mesh Overview

A service mesh moves retries, mTLS, and traffic shaping out of application code into a sidecar proxy — trading a real latency and operational-complexity cost for uniform policy enforcement across every service.

kubernetes networking book

1 — Volumes

A Kubernetes volume is scoped to the pod, not the container, so it survives container crashes and restarts but is deleted the moment the pod itself is removed.

kubernetes storage book

2 — Persistent Volumes

PersistentVolumes decouple storage provisioning from pod scheduling by making storage a cluster-scoped resource with its own lifecycle, independent of any pod or namespace.

kubernetes storage book

3 — Persistent Volume Claims

A PVC lets an application manifest request storage abstractly, by size and access mode, so developers never need to know or care which physical backend actually satisfies it.

kubernetes storage book

4 — Storage Classes

StorageClasses turn PV provisioning into a self-service API, letting a PVC request storage by named profile instead of an admin having to hand-create a matching PV first.

kubernetes storage book

5 — CSI Drivers

The Container Storage Interface moved vendor-specific storage code out of Kubernetes core entirely, so new backends can ship as independently versioned plugins instead of waiting on a Kubernetes release.

kubernetes storage book

6 — Stateful Storage Design

Pairing StatefulSet ordinal identity with per-replica PVCs is what lets a rescheduled database pod reattach to its own disk instead of a peer's, which is the whole trick behind running stateful workloads on Kubernetes.

kubernetes storage book

1 — Authentication

Kubernetes has no built-in user database — every request is authenticated by delegating identity checks to external mechanisms like X.509 client certs, OIDC tokens, or webhook callouts.

kubernetes authn-authz book

2 — Authorization

Authorization modes configured on the API server are OR'd together and evaluated in sequence, so a single permissive authorizer overrides every stricter one you also enabled.

kubernetes authn-authz book

3 — RBAC

RBAC bindings are purely additive with no deny rule, so a subject's effective permissions are the union of every Role and ClusterRole granted across all its bindings, not just the narrowest one.

kubernetes authn-authz book

4 — Service Accounts

Every pod is auto-mounted a default ServiceAccount token whether it calls the API or not, which is why disabling automountServiceAccountToken is a low-cost baseline hardening step.

kubernetes authn-authz book

5 — kubeconfig

A kubeconfig keeps clusters, users, and contexts as three independent lists, which is why one merged file (via the KUBECONFIG env var) can cleanly mix-and-match many identities across many clusters.

kubernetes authn-authz book

6 — Admission Controllers

Admission runs in two strict phases — all mutating webhooks complete before any validating webhook fires — so validation always inspects the final, already-mutated object, never the raw request.

kubernetes authn-authz book

7 — API Server Security

The API server is the single choke point for every cluster interaction, so disabling anonymous-auth and turning on audit logging there closes more risk surface than hardening any individual workload.

kubernetes authn-authz book

8 — Secret Encryption

Secrets are only base64-encoded in etcd by default, not encrypted, so without an EncryptionConfiguration enabling envelope encryption (ideally via a KMS provider) anyone with etcd access reads them in plaintext.

kubernetes authn-authz book

1 — Pod Security Standards

Pod Security Standards replaced the removed PodSecurityPolicy admission controller with three built-in profiles (Privileged, Baseline, Restricted) enforced declaratively via namespace labels.

kubernetes security book

10 — Protecting the Control Plane

Because etcd stores every cluster secret unencrypted by default, encryption at rest, mutual TLS between control plane components, and tightly scoped RBAC on kube-system are the highest-leverage hardening steps, not just API server firewalling.

kubernetes security book

2 — Security Contexts

A securityContext can be set at both pod and container level to drop capabilities, force non-root execution, or make the root filesystem read-only, and container-level fields always override pod-level defaults.

kubernetes security book

3 — Seccomp

Seccomp filters which syscalls a container's process is allowed to make at the kernel level, and the RuntimeDefault profile alone blocks dozens of dangerous syscalls that ordinary application workloads never legitimately need.

kubernetes security book

4 — AppArmor

AppArmor confines a process with path-based file, network, and capability rules rather than syscall filtering, and since Kubernetes 1.30 it is configured as a first-class securityContext field instead of only through legacy annotations.

kubernetes security book

5 — SELinux

SELinux enforces mandatory access control by comparing security-context labels on processes and objects rather than relying on discretionary Unix permissions, and label mismatches are the most common cause of unexplained permission-denied errors in hardened clusters.

kubernetes security book

6 — Capabilities

Linux capabilities split root's monolithic power into roughly forty discrete privileges, so dropping ALL and adding back only what's needed, like NET_BIND_SERVICE, is a far narrower grant than running the container as root.

kubernetes security book

7 — Linux Kernel Isolation

Containers isolate processes using namespaces and cgroups on a single shared host kernel rather than virtualizing hardware, so a kernel-level exploit inside one container can compromise every other container scheduled on that node.

kubernetes security book

8 — RuntimeClass

RuntimeClass lets a pod select a different container runtime, such as runc, gVisor, or Kata, so untrusted or multi-tenant workloads can get stronger isolation without changing the cluster-wide default runtime for every other workload.

kubernetes security book

9 — Sandboxed Containers (gVisor, Kata)

gVisor intercepts syscalls through a userspace kernel while Kata runs each pod inside a lightweight VM, and both trade some raw performance for a dramatically smaller attack surface than a shared-kernel container runtime.

kubernetes security book

1 — Image Security

Why minimal or distroless base images shrink the attack surface far more than patching CVEs in a bloated one ever will.

kubernetes supply-chain book

2 — Image Signing

A signature only proves who built the image, not that it's safe — signing and scanning solve different problems and neither substitutes for the other.

kubernetes supply-chain book

3 — Sigstore & Cosign

Keyless signing binds an image to an OIDC identity and a public transparency log instead of a long-lived private key that can leak or expire.

kubernetes supply-chain book

4 — SBOM

An SBOM turns 'are we affected by this CVE' from a multi-day manual audit into a single query against a manifest already generated at build time.

kubernetes supply-chain book

5 — Vulnerability Scanning

Scanning only at build time catches CVEs known when the image shipped — rescanning at admission and runtime is what catches the ones disclosed afterward.

kubernetes supply-chain book

6 — Trusted Registries

A registry allowlist enforced at the admission layer is what actually stops an untrusted image from running — scanning alone only warns, it doesn't block.

kubernetes supply-chain book

7 — Policy Enforcement (OPA Gatekeeper, Kyverno)

Kyverno's native Kubernetes-resource policies trade Rego's expressiveness for a much shorter path from 'write policy' to 'policy enforced'.

kubernetes supply-chain book

8 — Software Supply Chain Security

Most real-world breaches like SolarWinds and xz-utils compromised the build pipeline itself, not the shipped artifact — securing the artifact after the fact is too late.

kubernetes supply-chain book

9 — SLSA Framework

SLSA's levels grade the provenance of the build process, not the code's security — a perfectly secure app built on an untrusted pipeline still fails the bar.

kubernetes supply-chain book

1 — Falco

Falco flags anomalous behavior by matching live kernel syscalls against declarative rules, catching threats that only manifest at runtime and never show up in a static image scan.

kubernetes runtime-security book

2 — eBPF Security

eBPF lets security tooling observe and enforce policy directly in the kernel without loading custom kernel modules or injecting sidecars, trading portability risk for near-zero-overhead visibility.

kubernetes runtime-security book

3 — Runtime Threat Detection

Runtime threat detection catches attacks that exist only as live processes or in-memory payloads — exactly the class of compromise that image scanning and admission control cannot see because nothing malicious was ever written to disk.

kubernetes runtime-security book

4 — Audit Logs

Kubernetes audit logs record every API server request as a structured, replayable trail of who-did-what-when, but a loosely scoped audit policy can silently omit the exact response stage where a compromise actually happened.

kubernetes runtime-security book

5 — Incident Response

Kubernetes incident response means isolating a compromised pod with a NetworkPolicy or node cordon before killing it, because deleting it first destroys the ephemeral evidence needed to determine how the attacker got in.

kubernetes runtime-security book

6 — Forensics

Container forensics is a race against ephemeral filesystems and pod rescheduling, so memory dumps, process trees, and network state must be captured at detection time, not after triage begins.

kubernetes runtime-security book

7 — Container Escape Techniques

Most container escapes exploit a workload's own misconfiguration — privileged mode, a hostPath mount, or a mounted container-runtime socket — rather than a kernel zero-day, making prevention primarily a policy problem, not a patching problem.

kubernetes runtime-security book

8 — Mitigations

Layered runtime controls — seccomp profiles, AppArmor/SELinux, Pod Security Admission, and non-root enforcement — each close a different escape vector, so relying on any single control leaves the others wide open.

kubernetes runtime-security book

9 — Security Monitoring

Security monitoring only works when signals from the control plane (audit logs), the kernel (eBPF/Falco), and the network (CNI flow logs) are correlated together, since any single layer alone leaves a blind spot an attacker can walk through.

kubernetes runtime-security book

1 — Logging

Why Kubernetes has no built-in log aggregation by design — stdout/stderr capture by the kubelet is node-local and ephemeral, so durability is a platform-team responsibility, not a cluster feature.

kubernetes observability book

2 — Metrics

Why metrics-server only ever powers kubectl top and the HPA — it holds no history by design, which is exactly the gap Prometheus was built to fill in every real cluster.

kubernetes observability book

3 — Tracing

Why distributed tracing across a cluster is a service-mesh and instrumentation problem, not a kubelet one — Kubernetes has no native concept of a request, so context has to survive every sidecar hop on its own.

kubernetes observability book

4 — Events

Why Kubernetes Events default to a 1-hour TTL in etcd — they're built as a live debugging signal for right-now, not an audit trail, and vanish before most incident retros even start.

kubernetes observability book

5 — kubectl Debug

Why kubectl debug's ephemeral containers can attach to a running pod's process namespace without restarting it — the only clean way to get a shell into a distroless container that ships none of its own.

kubernetes observability book

6 — Troubleshooting Production Clusters

Why most production cluster incidents trace back to control-plane pressure or misconfigured resource requests rather than application bugs — the debugging path starts at the scheduler and kubelet, not the pod logs.

kubernetes observability book

1 — Scheduler Deep Dive

Why the scheduler keeps three separate queues (active, backoff, unschedulable) instead of one, so a pod that can't yet be placed doesn't hot-loop the whole pipeline.

kubernetes internals book

2 — Controller Manager

Why every built-in controller is level-triggered against the informer cache rather than edge-triggered off individual watch events, which is what makes reconciliation idempotent after a restart.

kubernetes internals book

3 — kubelet Internals

How the kubelet's PLEG polls the container runtime out-of-band from the main SyncLoop, trading a few seconds of detection latency for immunity to missed or coalesced CRI events.

kubernetes internals book

4 — etcd Internals

How etcd's MVCC revision counter, not object timestamps, is what makes watch resumption after a disconnect and optimistic concurrency via resourceVersion possible.

kubernetes internals book

5 — API Server Internals

Why every request, regardless of which controller or kubectl call triggered it, passes through the same authn -> authz -> admission -> validation chain, making the API server the single enforcement point for cluster policy.

kubernetes internals book

6 — Admission Webhooks

Why mutating webhooks always run before validating webhooks in the admission chain, so validation only ever sees the final, defaulted version of an object.

kubernetes internals book

7 — Aggregated APIs

How the aggregation layer lets extension API servers, like metrics-server, register under the same /apis path so kubectl, RBAC, and discovery treat them identically to built-in resources.

kubernetes internals book

1 — Helm

Helm's Go-template-over-YAML approach turns configuration into string manipulation instead of structured data, trading type safety for reusability across charts.

kubernetes platform-tooling book

2 — Kustomize

Kustomize edits valid YAML with strategic-merge patches instead of templating it, so every intermediate step stays parseable and diffable.

kubernetes platform-tooling book

3 — Argo CD

Argo CD's pull-based reconciliation means the cluster fetches its own desired state from Git, so a compromised CI pipeline never gets a credential that can write to the cluster.

kubernetes platform-tooling book

4 — Flux

Flux splits GitOps into composable controllers — source, kustomize, and notification — so drift detection and reconciliation are independent concerns instead of one monolithic sync job.

kubernetes platform-tooling book

5 — Operator Framework

The Operator Framework's real value isn't wrapping CRUD around a CRD — it's encoding an SRE's operational runbook into a reconcile loop so failure recovery happens without a human paging in.

kubernetes platform-tooling book

1 — AKS

AKS makes the control plane free specifically so Azure can win on node-hour billing, which is why the real cost and design battle moves to node pool sizing, availability zones, and Azure CNI IP exhaustion.

kubernetes multi-cluster book

2 — EKS

EKS charges for the control plane yet still leaves CoreDNS, kube-proxy, and the CNI as self-managed add-ons, proving that 'managed Kubernetes' is a spectrum of responsibility rather than a single guarantee.

kubernetes multi-cluster book

3 — GKE

GKE Autopilot bills per-pod resource request rather than per-node, which inverts the usual capacity-planning problem by making the scheduler itself the thing you optimize for cost, not the node pool.

kubernetes multi-cluster book

4 — Cluster API

Cluster API models a whole cluster's lifecycle (bootstrap, upgrade, scale, teardown) as Kubernetes custom resources, turning fleet management into just another reconciliation loop instead of a bespoke provisioning script.

kubernetes multi-cluster book

5 — Federation

KubeFed's decline in favor of GitOps-pushed manifests showed that replicating API objects across clusters is the wrong abstraction — the failure mode isn't the sync mechanism, it's treating clusters as one logical API server.

kubernetes multi-cluster book

6 — Multi-Cluster Networking

Flat pod-to-pod routing across clusters (Submariner, Cilium ClusterMesh) is the easy part; the hard part is keeping service identity and mTLS trust consistent once two clusters' CAs and DNS zones have to agree.

kubernetes multi-cluster book

7 — Multi-Region Architecture

Active-active multi-region Kubernetes trades away a single source of truth for lower latency, so the design question stops being 'how do we replicate' and becomes 'how do we resolve conflicting writes during a partition.'

kubernetes multi-cluster book

8 — Hybrid Kubernetes

Hybrid Kubernetes (Anthos, Azure Arc) only holds together when the control plane's API surface is identical on-prem and in cloud; the moment it diverges, workloads behave differently depending on where they land.

kubernetes multi-cluster book

1 — Resource Optimization

Why requests should track real p95 usage while limits stay loose — tight CPU limits throttle a container even when the node has idle capacity sitting unused right next to it.

kubernetes performance book

2 — Scheduler Performance

Why scheduling throughput degrades non-linearly past a few thousand nodes unless percentageOfNodesToScore is tuned down from its default of scoring every feasible node.

kubernetes performance book

3 — Cluster Autoscaler

Why Cluster Autoscaler scales purely on unschedulable pending pods rather than utilization metrics, making it reactive by design and blind to a burst until pods have already failed to schedule.

kubernetes performance book

4 — Karpenter

Why Karpenter provisions right-sized nodes directly from pending pod shape instead of scaling pre-defined node groups, collapsing the ASG-and-node-group abstraction Cluster Autoscaler depends on.

kubernetes performance book

5 — Vertical Pod Autoscaler

Why VPA's Auto and Recreate update modes still evict and restart a pod to resize it — true in-place resize without disruption only lands with the still-maturing InPlacePodVerticalScaling feature.

kubernetes performance book

6 — Horizontal Pod Autoscaler

Why HPA's polling-interval and stabilization-window defaults make it structurally too slow for sub-minute traffic spikes, forcing teams toward custom metrics or KEDA to react in time.

kubernetes performance book

7 — Network Performance

Why the CNI's choice between an overlay (VXLAN/IPIP encapsulation) and native BGP routing is usually the single biggest lever on pod-to-pod latency and throughput, ahead of kube-proxy mode.

kubernetes performance book

8 — Storage Performance

Why local NVMe (local-path or a CSI ephemeral volume) beats network-attached PVs on latency, but only by trading away the pod-to-node decoupling that makes rescheduling safe.

kubernetes performance book

9 — Large Cluster Design

Why Kubernetes' official node-count ceiling is really an etcd write-throughput and API server watch-fanout limit, which is why hyperscalers split fleets into many smaller clusters instead of pushing past it.

kubernetes performance book

1 — High Availability

Running three or more control-plane replicas behind a load balancer only buys availability if etcd quorum, not just the API server, survives the loss of any single node.

kubernetes production book

2 — Disaster Recovery

Disaster recovery is defined by RTO and RPO targets negotiated before an outage, not by how fast a runbook can be executed after one.

kubernetes production book

3 — Backup & Restore

Backing up etcd snapshots without also capturing PV data and CRDs restores a control plane that boots but manages nothing.

kubernetes production book

4 — Multi-Tenancy

Namespace isolation alone is not a security boundary; without NetworkPolicies, ResourceQuotas, and PodSecurityAdmission, one hostile tenant can starve or reach every other tenant on the same node.

kubernetes production book

5 — Cost Optimization

Most Kubernetes clusters waste money on the requested-vs-used gap, not on compute price: pods routinely request two to three times what they actually consume, so right-sizing requests beats chasing spot-instance discounts.

kubernetes production book

6 — Reliability Engineering

Kubernetes self-healing masks the symptoms of reliability problems, not the causes, so an SLO-driven error budget is what actually tells you whether the system is healthy.

kubernetes production book

7 — Production Anti-Patterns

Missing resource requests/limits, floating 'latest' image tags, and skipped liveness/readiness probes are the three anti-patterns responsible for the majority of production Kubernetes incidents.

kubernetes production book

8 — Kubernetes Failure Modes

The most dangerous Kubernetes failures are control-plane and etcd degradations, not pod crashes, because they fail silently — the API server keeps serving stale state while nothing can actually be scheduled or reconciled.

kubernetes production book

9 — Real Production Case Studies

Post-incident reviews from real Kubernetes outages consistently trace root cause to a control-plane or DNS bottleneck — CoreDNS, etcd, API server throttling — rather than the workload code itself.

kubernetes production book

1 — Kubernetes in Distributed Systems

Why the reconciliation loop — declare desired state, continuously converge toward it — replaces imperative orchestration as Kubernetes' core distributed-systems primitive.

kubernetes system-design book

2 — Running Thousands of Microservices

Why organizational boundaries, not etcd or scheduler limits, become the real constraint on cluster and namespace design once service count crosses into the thousands.

kubernetes system-design book

3 — Event-Driven Platforms

Why event-driven platforms on Kubernetes trade request-response simplicity for the ability to absorb bursty load and isolate producer and consumer failure domains.

kubernetes system-design book

4 — AI/ML Platforms on Kubernetes

Why GPU scheduling — bin-packing, MIG partitioning, gang scheduling for distributed training — is the hard problem in running ML workloads on Kubernetes, not container orchestration itself.

kubernetes system-design book

5 — Platform Engineering at Scale

Why platform teams that ship a self-service golden path scale sublinearly with tenant count, while teams that field tickets scale linearly with headcount.

kubernetes system-design book

6 — Large-Scale Observability

Why cardinality, not raw data volume, is the constraint that breaks observability pipelines first once a platform spans hundreds of clusters.

kubernetes system-design book

7 — Designing Control Planes

Why every control plane is a distributed consensus problem in disguise — the API server and etcd exist to answer 'what is true right now' under concurrent writers.

kubernetes system-design book

8 — Architecture Interview Case Studies

Why the strongest system-design interview answers name the failure mode they're trading against, not just the components drawn on the whiteboard.

kubernetes system-design book

1 — CKAD Objectives

Maps the CNCF CKAD curriculum domains (application design, deployment, observability, networking, state) to weighted exam percentages and the specific kubectl imperative commands each domain tests

kubernetes certification book

10 — Incident Response Exercises

Simulated compromise scenarios (exposed API server, malicious container escape, leaked service account token) that train the CKS incident-response workflow: isolate, capture forensic evidence, and remediate

kubernetes certification book

11 — CKS Mock Exams

Full-length timed mock exams that simulate the CKS's 2-hour, security-remediation task format to train fast triage of hardening gaps, admission-control debugging, and forensic response under time pressure

kubernetes certification book

2 — CKAD Hands-on Labs

Timed lab exercises that drill Deployment/Job/CronJob manifests, ConfigMap and Secret wiring, and multi-container Pod patterns using only kubectl and vim under the exam's browser-terminal constraints

kubernetes certification book

3 — CKAD Mock Exams

Full-length timed mock exams that simulate the CKAD's 2-hour, 15-19 task format to train question triage, kubectl imperative speed, and flagging-for-review under real exam time pressure

kubernetes certification book

4 — CKA Objectives

Maps the CNCF CKA curriculum domains (cluster architecture/installation, workloads, services/networking, storage, troubleshooting) to weighted exam percentages and the kubeadm/etcd/control-plane operations each domain tests

kubernetes certification book

5 — Cluster Administration Labs

Hands-on labs covering kubeadm cluster bootstrap, etcd backup/restore, node cordon/drain/upgrade sequencing, and control-plane component troubleshooting via static pod manifests

kubernetes certification book

6 — CKA Mock Exams

Full-length timed mock exams that simulate the CKA's 2-hour, multi-cluster task format to train fast context-switching between kubeconfig contexts, ssh-into-node debugging, and etcd/control-plane recovery under time pressure

kubernetes certification book

7 — CKS Objectives

Maps the CNCF CKS curriculum domains (cluster hardening, minimize microservice vulnerabilities, supply chain security, monitoring/logging/runtime security) to weighted exam percentages and their required CIS benchmark and admission-control tooling

kubernetes certification book

8 — CKS Security Labs

Hands-on labs applying PodSecurity admission, NetworkPolicy default-deny, image signature verification, and kube-bench CIS hardening remediation against a live cluster

kubernetes certification book

9 — Runtime Security Labs

Hands-on labs using Falco rule tuning and seccomp/AppArmor profile enforcement to detect and block anomalous syscalls, container drift, and privilege escalation at runtime

kubernetes certification book

1 — Kubernetes Design Questions

Why the strongest answer to a multi-tenant platform design question starts from isolation boundaries (namespace vs. cluster vs. node) rather than jumping straight to YAML.

kubernetes interview-prep book

2 — Kubernetes Troubleshooting Interviews

Why interviewers grade the diagnostic sequence (events, describe, logs, then metrics) more heavily than whether you name the eventual root cause.

kubernetes interview-prep book

3 — Kubernetes Internals Interviews

Why grasping the reconciliation loop (watch, diff, act) explains almost every 'why didn't my change take effect' internals question the interviewer can ask.

kubernetes interview-prep book

4 — Production Incident Walkthroughs

Why a credible incident narrative names the blast-radius containment step before the root cause, since sequencing is what separates senior candidates from mid-level ones.

kubernetes interview-prep book

5 — Leadership & Architecture Discussions

Why staff+ architecture interviews probe how you built cross-team consensus on a platform decision, not just whether the decision itself was technically correct.

kubernetes interview-prep book

6 — Common MAANG Kubernetes Questions

Why 'what happens when a pod is scheduled' and 'what happens when a node dies' stay the two highest-frequency questions because they force you to narrate the whole control plane.

kubernetes interview-prep book

7 — Whiteboard Exercises

Why whiteboard Kubernetes exercises reward drawing the control plane and data plane as separate boxes first, since conflating them is the most common early mistake.

kubernetes interview-prep book

8 — Final Revision Checklist

Why a pre-interview revision checklist should be organized by failure mode (scheduling, networking, storage, control plane) rather than by Kubernetes object type.

kubernetes interview-prep book

Kubernetes

A book-shaped table of contents for Kubernetes: cloud-native foundations, the CKAD/CKA/CKS certification tracks, control-plane internals, platform tooling, multi-cluster architecture, and MAANG-level system design and interview prep — cross-linking the existing Prometheus, Observability, and Platform Engineering chapters instead of duplicating them.

kubernetes book reference maang-prep ckad cka cks

1 — What is Low-Level Design?

How Low-Level Design differs from High-Level Design, where it sits in the software development lifecycle, and the criteria MAANG interviewers actually use to evaluate it.

low-level-design foundations-of-object-oriented-design book

2 — Object-Oriented Programming Refresher

A fast recap of the four OOP pillars — encapsulation, abstraction, inheritance, and polymorphism — plus the composition-over-inheritance tradeoff the rest of this book leans on.

low-level-design foundations-of-object-oriented-design book

3 — Relationships Between Objects

The association, aggregation, composition, and dependency relationships objects can hold with each other, grounded in real-world examples.

low-level-design foundations-of-object-oriented-design book

4 — Object Lifecycle

How an object comes into existence and who owns it — creation, memory allocation, constructors, factory-based creation, and ownership semantics.

low-level-design foundations-of-object-oriented-design book

1 — SOLID Principles

The five SOLID principles — Single Responsibility through Dependency Inversion — as the baseline design discipline every LLD interview answer gets measured against.

low-level-design object-oriented-design-principles book

2 — GRASP Principles

The nine GRASP patterns — Information Expert, Creator, Controller, Low Coupling, High Cohesion, and more — for assigning responsibility to the right class.

low-level-design object-oriented-design-principles book

3 — OO Design Heuristics

Practical heuristics beyond SOLID and GRASP — favoring composition, programming to interfaces, the Law of Demeter, Tell Don't Ask, and Command Query Separation.

low-level-design object-oriented-design-principles book

4 — Clean Code

The clean-code habits — naming, small methods, spotting code smells, and refactoring for readability — that keep a well-principled design from decaying in practice.

low-level-design object-oriented-design-principles book

1 — UML Fundamentals

The UML notation vocabulary — classes, interfaces, relationships, visibility, and multiplicity — needed to read or draw any diagram in this Part.

low-level-design uml-and-modeling book

2 — Class Diagrams

How class diagrams capture a design's static structure — classes, attributes, methods, and the relationships between them — before any code gets written.

low-level-design uml-and-modeling book

3 — Sequence Diagrams

How sequence diagrams trace the message flow between objects over time to check that a design actually satisfies a use case.

low-level-design uml-and-modeling book

4 — State Diagrams

How state diagrams model an object's lifecycle as a finite set of states and transitions, useful for anything with a status field.

low-level-design uml-and-modeling book

5 — Activity Diagrams

How activity diagrams map the control flow and branching logic of a workflow or business process, independent of any single class.

low-level-design uml-and-modeling book

6 — Object Diagrams

How object diagrams snapshot a specific set of instances and their links at a point in time, useful for validating a class diagram against a concrete scenario.

low-level-design uml-and-modeling book

7 — Package Diagrams

How package diagrams organize classes into higher-level modules and show the dependencies between them, the tool for reasoning about a design's overall structure.

low-level-design uml-and-modeling book

1 — Introduction to Design Patterns

What a design pattern actually is, why the Gang-of-Four catalog still matters in interviews, and how to recognize which category a problem is asking for.

low-level-design design-patterns book

2 — Creational Patterns

The five creational patterns — Singleton, Factory Method, Abstract Factory, Builder, and Prototype — for controlling how and when objects get created.

low-level-design design-patterns book

3 — Structural Patterns

The seven structural patterns — Adapter, Bridge, Composite, Decorator, Facade, Flyweight, and Proxy — for composing classes and objects into larger structures.

low-level-design design-patterns book

4 — Behavioral Patterns

The eleven behavioral patterns — from Strategy and Observer through Visitor and Interpreter — for managing communication and responsibility between objects.

low-level-design design-patterns book

5 — Pattern Selection Guide

A decision framework for picking the right pattern under interview pressure — when to reach for one, when it's overkill, and the trade-offs behind each choice.

low-level-design design-patterns book

1 — Dependency Injection

Compares constructor, setter, and interface injection as ways to supply an object's dependencies from outside itself rather than constructing them internally.

low-level-design dependency-management book

2 — Inversion of Control

Explains how inverting control of object creation and lifecycle from application code to a framework or container reshapes dependency flow in a design.

low-level-design dependency-management book

3 — Service Locator vs DI

Contrasts the service locator pattern with dependency injection, weighing hidden dependency lookups against explicit, visible constructor contracts.

low-level-design dependency-management book

4 — Object Factories

Covers factory patterns that encapsulate object construction logic and decouple it from the code that consumes the resulting objects.

low-level-design dependency-management book

1 — Exception Design

Looks at how to design exception hierarchies and error-signaling contracts so that failures are informative and recoverable rather than opaque.

low-level-design error-handling-and-reliability book

2 — Validation Strategies

Surveys strategies for validating input and state at system boundaries versus deep within business logic, and where each belongs.

low-level-design error-handling-and-reliability book

3 — Defensive Programming

Examines defensive programming techniques for guarding against invalid state and unexpected input without over-defending against impossible cases.

low-level-design error-handling-and-reliability book

4 — Immutability

Explains how immutable objects eliminate mutation after construction, closing off a whole class of concurrency and state-corruption bugs.

low-level-design error-handling-and-reliability book

5 — Value Objects

Introduces value objects as small, immutable types defined by their attributes rather than identity, and where they should replace bare primitives.

low-level-design error-handling-and-reliability book

1 — Thread Safety

Defines what it means for a class or method to be thread-safe and the correctness guarantees a design must uphold under concurrent access.

low-level-design concurrency-design book

2 — Synchronization

Covers synchronization mechanisms that coordinate access to shared mutable state across multiple threads.

low-level-design concurrency-design book

3 — Locks

Examines lock types — mutexes, read-write locks, reentrant locks — and the tradeoffs each makes between safety and throughput.

low-level-design concurrency-design book

4 — Concurrent Collections

Surveys concurrent collection types designed for safe multi-threaded access without requiring external locking by the caller.

low-level-design concurrency-design book

5 — Producer Consumer

Walks through the producer-consumer pattern for decoupling work generation from work processing via a shared bounded queue.

low-level-design concurrency-design book

6 — Thread Pools

Explains thread pool design for bounding concurrency and reusing worker threads instead of spawning a new thread per task.

low-level-design concurrency-design book

7 — Deadlocks

Analyzes how deadlocks arise from circular resource dependencies among threads and the design practices that prevent them.

low-level-design concurrency-design book

8 — Race Conditions

Examines how race conditions emerge from unsynchronized access to shared mutable state and how a design can eliminate them.

low-level-design concurrency-design book

9 — Lock-Free Design

Introduces lock-free and wait-free design techniques that use atomic operations instead of locks to coordinate concurrent access.

low-level-design concurrency-design book

1 — Identifying Entities

Covers how to identify entities in a domain model — objects with a persistent identity that spans changes to their attributes over time.

low-level-design domain-modeling book

2 — Value Objects

Revisits value objects in the context of domain modeling, where they capture descriptive attributes of an entity without carrying identity of their own.

low-level-design domain-modeling book

3 — Aggregates

Explains aggregates as consistency boundaries that group entities and value objects behind a single root for transactional integrity.

low-level-design domain-modeling book

4 — Domain Services

Covers domain services for modeling operations that don't naturally belong to any single entity or value object in the model.

low-level-design domain-modeling book

5 — Repositories

Introduces the repository pattern for abstracting aggregate persistence and retrieval behind a collection-like interface.

low-level-design domain-modeling book

6 — Domain Events

Explains domain events as a way to capture and propagate significant state changes within a domain model to other parts of a system.

low-level-design domain-modeling book

1 — Interface Design

Defines how a service's public surface is shaped so consumers depend on a stable contract rather than on internal implementation details.

low-level-design api-oriented-design book

2 — DTOs

Explains why data transfer objects decouple wire formats from domain models, so internal refactors don't ripple into API consumers.

low-level-design api-oriented-design book

3 — Validation Layers

Distinguishes syntactic, semantic, and business-rule validation so each concern is enforced at the layer best suited to catch it.

low-level-design api-oriented-design book

4 — Mapping Objects

Covers translating between domain models and DTOs at the API boundary without leaking persistence details or business logic across it.

low-level-design api-oriented-design book

5 — Pagination

Compares offset-based and cursor-based pagination strategies and how each behaves under concurrent writes and large result sets.

low-level-design api-oriented-design book

6 — Error Responses

Defines a consistent error response shape and status-code taxonomy so API consumers can handle failures programmatically rather than by parsing prose.

low-level-design api-oriented-design book

1 — Unit Testing

Covers writing isolated, fast, deterministic tests that verify a single unit of behavior without touching external dependencies.

low-level-design testing-design book

2 — Testable Design

Explains how explicit dependency boundaries and small units of behavior make code inherently easier to exercise in isolation.

low-level-design testing-design book

3 — Mocking

Covers using test doubles to isolate the unit under test from collaborators that are slow, external, or nondeterministic.

low-level-design testing-design book

4 — Dependency Injection for Testing

Explains how injecting dependencies rather than constructing them internally lets tests substitute fakes without touching production code.

low-level-design testing-design book

5 — Contract Testing

Covers verifying that a producer and consumer agree on an API or message contract without standing up the full integration.

low-level-design testing-design book

1 — Refactoring Techniques

Surveys the catalog of small, behavior-preserving transformations used to improve code structure without changing external behavior.

low-level-design refactoring book

2 — Identifying Code Smells

Covers recognizing structural warning signs — long methods, feature envy, shotgun surgery — that signal a refactor is due before the design breaks down.

low-level-design refactoring book

3 — Replace Conditional with Polymorphism

Explains replacing branching type-checks with polymorphic dispatch so new cases extend the code rather than modify a growing switch statement.

low-level-design refactoring book

4 — Extract Object

Covers pulling a cohesive group of fields and behavior out of a bloated class into a new, focused collaborator.

low-level-design refactoring book

5 — Introduce Parameter Object

Explains grouping a repeated cluster of parameters into a single object to reduce signature churn and clarify caller intent.

low-level-design refactoring book

6 — Builder Refactoring

Covers migrating a telescoping constructor or setter-heavy object into a builder that enforces a valid construction order.

low-level-design refactoring book

1 — Parking Lot

Models a multi-level parking lot with heterogeneous vehicle and spot types, exercising strategy-based spot allocation and a clean split between lot, floor, and spot entities.

low-level-design classic-lld-interview-problems book

10 — ATM

Models an ATM's cash withdrawal, deposit, and balance-inquiry flows, exercising the state pattern across card-inserted, PIN-entry, and transaction states plus the greedy cash-dispensing algorithm.

low-level-design classic-lld-interview-problems book

11 — Vending Machine

Models a vending machine's product inventory, coin/payment handling, and dispensing logic, exercising the state pattern across idle, selection, payment, and dispense states.

low-level-design classic-lld-interview-problems book

12 — Coffee Machine

Models a coffee machine with multiple beverage recipes and shared ingredient inventories, exercising the recipe/ingredient composition model and low-stock/refill handling.

low-level-design classic-lld-interview-problems book

13 — Cricbuzz

Models live cricket match scoring, commentary, and scorecards, exercising the observer pattern for pushing real-time score updates to subscribed clients.

low-level-design classic-lld-interview-problems book

14 — Amazon Locker

Models a package-locker system for deliveries and pickups, exercising locker-size-to-package-size allocation strategy and the notification flow for one-time pickup codes.

low-level-design classic-lld-interview-problems book

15 — Cab Booking

Models a ride-hailing service matching riders to nearby drivers, exercising the driver-matching/dispatch strategy and dynamic surge-pricing calculation.

low-level-design classic-lld-interview-problems book

16 — Food Delivery

Models restaurants, menus, orders, and delivery-partner assignment for a food-delivery platform, exercising order-state-machine design and partner-assignment strategy.

low-level-design classic-lld-interview-problems book

17 — Notification Service

Models a multi-channel notification system spanning email, SMS, and push, exercising the strategy pattern for channel selection and template-based message rendering.

low-level-design classic-lld-interview-problems book

18 — Cache (LRU/LFU)

Implements an in-memory cache with fixed capacity, exercising O(1) get/put eviction design via a hash map paired with a doubly linked list for LRU or frequency buckets for LFU.

low-level-design classic-lld-interview-problems book

19 — Rate Limiter

Designs an API rate limiter enforcing per-client request quotas, exercising the tradeoffs between token-bucket, sliding-window, and fixed-window algorithms.

low-level-design classic-lld-interview-problems book

2 — Elevator System

Designs a multi-elevator dispatch system for a building, exercising the SCAN/LOOK scheduling algorithm choice and the state machine governing elevator direction and door control.

low-level-design classic-lld-interview-problems book

20 — Logging Framework

Designs a pluggable logging library with configurable levels, formatters, and appenders, exercising the chain-of-responsibility pattern for log-level filtering and multi-destination output.

low-level-design classic-lld-interview-problems book

21 — File System

Models a hierarchical in-memory file system with files and directories, exercising the composite pattern for uniform file/directory traversal and path resolution.

low-level-design classic-lld-interview-problems book

22 — Linux `find`

Implements a simplified version of the Unix find command over a directory tree, exercising predicate composition for filter chaining by name, type, size, and depth during traversal.

low-level-design classic-lld-interview-problems book

23 — Kafka-like Queue

Models a simplified publish-subscribe message queue with partitions and consumer groups, exercising partition-assignment strategy and offset-tracking for at-least-once delivery.

low-level-design classic-lld-interview-problems book

24 — Pub/Sub System

Models a generic publish-subscribe messaging system decoupling publishers from subscribers, exercising the observer pattern and topic-based routing/fan-out design.

low-level-design classic-lld-interview-problems book

3 — Library Management System

Models book catalog, members, and lending/reservation workflows for a library, exercising due-date and fine-calculation logic and the relationship between books, copies, and holds.

low-level-design classic-lld-interview-problems book

4 — Hotel Booking System

Models room inventory, reservations, and pricing across a hotel chain, exercising availability search and overlapping-date conflict resolution for bookings.

low-level-design classic-lld-interview-problems book

5 — Movie Ticket Booking

Models cinemas, shows, and seat inventory for booking movie tickets, exercising the concurrent seat-locking strategy needed to prevent double booking during checkout.

low-level-design classic-lld-interview-problems book

6 — Splitwise

Models shared expenses and running balances among a group of users, exercising the debt-simplification algorithm that minimizes the number of settlement transactions.

low-level-design classic-lld-interview-problems book

7 — Snake and Ladder

Models the classic board game with dice, snakes, and ladders for multiple players, exercising the board's jump-mapping design and the turn-based game-loop control flow.

low-level-design classic-lld-interview-problems book

8 — Chess

Models a full chess board, pieces, and move validation, exercising the polymorphic per-piece move-rule design and check/checkmate detection.

low-level-design classic-lld-interview-problems book

9 — Tic Tac Toe

Models a simple two-player grid game, exercising win-condition detection and a pluggable player strategy for human versus AI opponents.

low-level-design classic-lld-interview-problems book

1 — Hexagonal Architecture

Isolates core domain logic behind ports and adapters so infrastructure choices like databases or messaging can be swapped without touching business rules.

low-level-design advanced-object-oriented-design book

2 — Clean Architecture

Layers a system into entities, use cases, interface adapters, and frameworks so dependencies always point inward toward stable business rules.

low-level-design advanced-object-oriented-design book

3 — Domain-Driven Design Essentials

Introduces bounded contexts, aggregates, and ubiquitous language as the core tools for modeling complex business domains in code.

low-level-design advanced-object-oriented-design book

4 — Event-Driven Design

Decouples components by having them communicate through published events rather than direct calls, trading immediate consistency for looser coupling.

low-level-design advanced-object-oriented-design book

5 — CQRS Basics

Splits read and write models into separate paths so each can be optimized and scaled independently instead of sharing one general-purpose model.

low-level-design advanced-object-oriented-design book

6 — Event Sourcing Basics

Persists state as an append-only log of domain events rather than the current snapshot, letting past state be reconstructed by replay.

low-level-design advanced-object-oriented-design book

7 — Plug-in Architectures

Defines a stable extension point contract so third-party or optional modules can be discovered and loaded without modifying the host application.

low-level-design advanced-object-oriented-design book

8 — Extensible Framework Design

Covers the inversion-of-control hooks, template methods, and configuration surfaces that let a framework be extended by consumers without forking it.

low-level-design advanced-object-oriented-design book

1 — Memory Optimization

Examines how object layout, field ordering, and reference graphs drive per-instance memory footprint and garbage collector pressure.

low-level-design performance-oriented-design book

2 — Object Pooling

Reuses a fixed set of expensive-to-construct objects instead of allocating and discarding them, trading extra bookkeeping for reduced allocation churn.

low-level-design performance-oriented-design book

3 — Lazy Initialization

Defers construction of a costly resource until its first actual use, at the cost of added complexity around thread safety and null checks.

low-level-design performance-oriented-design book

4 — Caching Strategies

Compares eviction policies, invalidation triggers, and cache placement so repeated lookups can be served without recomputation or a round trip.

low-level-design performance-oriented-design book

5 — Efficient Collections

Matches collection data structures to their access patterns so lookup, insertion, and iteration costs stay aligned with the workload's actual shape.

low-level-design performance-oriented-design book

6 — Profiling Object-Oriented Applications

Walks through using profilers to locate hot paths and allocation hotspots in object-oriented code before applying any optimization technique.

low-level-design performance-oriented-design book

1 — LLD Interview Framework

Walks through the repeatable ten-step LLD interview sequence, from clarifying requirements through naming trade-offs, that anchors every chapter in this Part.

low-level-design maang-interview-masterclass book

2 — Communicating During LLD Interviews

Covers how to narrate design decisions out loud during an LLD interview so the interviewer can follow the reasoning, not just the diagram.

low-level-design maang-interview-masterclass book

3 — Whiteboard Design Techniques

Covers layout and sequencing techniques for sketching classes, relationships, and flows on a whiteboard (or shared doc) under interview time pressure.

low-level-design maang-interview-masterclass book

4 — Common Interview Mistakes

Catalogs the recurring LLD interview failure modes — jumping to code too early, over-engineering, skipping requirement clarification — and how to avoid them.

low-level-design maang-interview-masterclass book

5 — Time Management in 45–60 Minute Interviews

Breaks a 45–60 minute LLD interview into timed phases so requirement clarification, design, and coding each get a fair share of the clock.

low-level-design maang-interview-masterclass book

6 — Complete Mock Interview Walkthroughs

Presents full end-to-end mock LLD interview transcripts, applying the Chapter 1 framework against representative interview prompts.

low-level-design maang-interview-masterclass book

1 — Appendix A: UML Cheat Sheet

Quick-reference summary of UML notation — class, sequence, and relationship symbols — for fast lookup while sketching an LLD design.

low-level-design appendices book

2 — Appendix B: SOLID & GRASP Cheat Sheet

Quick-reference summary of the five SOLID principles and the GRASP responsibility-assignment patterns, condensed for interview recall.

low-level-design appendices book

3 — Appendix C: Design Pattern Decision Matrix

Cross-references common design problems against candidate GoF patterns so the right pattern can be picked quickly instead of pattern-matched from memory.

low-level-design appendices book

4 — Appendix D: LLD Interview Checklist

A pre-interview and in-interview checklist condensing the Chapter 1 framework into a single pass/fail list to run through before finishing.

low-level-design appendices book

5 — Appendix E: Java Implementation Guidelines

Language-specific guidance for translating an LLD whiteboard design into idiomatic Java — interfaces, access modifiers, and collection choices.

low-level-design appendices book

6 — Appendix F: C# Implementation Guidelines

Language-specific guidance for translating an LLD whiteboard design into idiomatic C# — properties, interfaces, and access modifiers.

low-level-design appendices book

7 — Appendix G: C++ Implementation Guidelines

Language-specific guidance for translating an LLD whiteboard design into idiomatic C++ — ownership semantics, virtual dispatch, and RAII.

low-level-design appendices book

8 — Appendix H: Go Implementation Guidelines

Language-specific guidance for translating an LLD whiteboard design into idiomatic Go — implicit interfaces, composition over inheritance, and goroutine-safe state.

low-level-design appendices book

9 — Appendix I: Python Implementation Guidelines

Language-specific guidance for translating an LLD whiteboard design into idiomatic Python — duck typing, ABCs, and dataclass-based value objects.

low-level-design appendices book

Low-Level Design for MAANG Interviews

A book-shaped table of contents for LLD interview prep: OOP fundamentals through SOLID, design principles, UML, design patterns, dependency management, reliability, concurrency, domain modeling, API design, testing, refactoring, classic interview problems, advanced architecture, and performance — cross-linking Object-Oriented Programming and Patterns instead of duplicating them.

low-level-design book reference maang-prep

1 — Why Computer Networks Matter

Why computer networks exist and matter: the evolution of networking, internet architecture, client-server and peer-to-peer models, and how distributed systems and cloud networking build on top of them.

networks networking-fundamentals book

2 — Data Communication Basics

The core data-communication metrics — signals, bandwidth, latency, throughput, jitter, packet loss, serialization delay, and propagation delay — that every later performance discussion depends on.

networks networking-fundamentals book

4 — Network Devices

What NICs, repeaters, hubs, bridges, switches, routers, gateways, firewalls, load balancers, and reverse proxies each actually do, and where each sits in a real network path.

networks networking-fundamentals book

1 — Ethernet

Ethernet framing, MAC addressing, MTU and jumbo frames, and VLANs/trunk ports as the mechanics of a single local network segment.

networks ethernet book

2 — ARP

How ARP resolves IP addresses to MAC addresses, plus gratuitous ARP, the ARP cache, and proxy ARP.

networks ethernet book

3 — Switching

Learning switches, CAM tables, broadcast vs. collision domains, and how Spanning Tree Protocol prevents loops.

networks ethernet book

1 — IPv4

The IPv4 header, CIDR notation, subnetting and supernetting, reserved address ranges, and the public-vs-private IP distinction.

networks internet-protocol book

2 — IPv6

The IPv6 header and address types, and how Stateless Address Autoconfiguration and Neighbor Discovery replace IPv4's DHCP/ARP mechanics.

networks internet-protocol book

3 — Routing

Static vs. dynamic routing, how routing tables and longest-prefix-match actually pick a next hop, and the role of a default gateway.

networks internet-protocol book

4 — Routing Protocols

RIP, OSPF, and BGP as routing protocols at different scales, plus ECMP and how routing actually holds the internet together.

networks internet-protocol book

1 — UDP

UDP's datagram model and reliability trade-offs, and why DNS, VoIP, and gaming traffic choose it over TCP.

networks transport-layer book

2 — TCP Fundamentals

The TCP three-way handshake and four-way termination, the TCP header, sequence numbers, and ACKs that make reliable delivery possible.

networks transport-layer book

3 — Reliable Transmission

How TCP achieves reliability in practice — sliding window, flow control, congestion control, slow start, AIMD, and fast recovery.

networks transport-layer book

4 — TCP Optimization

Production TCP tuning: the Nagle algorithm, delayed ACK, keep-alive, window scaling, and TCP Fast Open.

networks transport-layer book

5 — QUIC

Why QUIC exists, what it changes by moving transport onto UDP, and how it enables HTTP/3, connection migration, and stream multiplexing.

networks transport-layer book

1 — DNS Fundamentals

Name resolution end to end: recursive resolvers, authoritative servers, and the root server hierarchy behind every DNS lookup.

networks dns book

2 — DNS Records

The DNS record types — A, AAAA, CNAME, TXT, NS, MX, SRV, PTR — and what each one actually resolves.

networks dns book

3 — DNS Performance

TTL and caching behavior, plus split-horizon DNS, GeoDNS, and anycast DNS as the levers for DNS-driven performance and routing.

networks dns book

1 — HTTP Fundamentals

The HTTP request lifecycle — methods, status codes, headers, and cookies — as the foundation every later chapter in this Part builds on.

networks http-ecosystem book

3 — REST

REST resource design, idempotency, pagination, versioning, and content negotiation as the conventions behind most production HTTP APIs.

networks http-ecosystem book

4 — GraphQL

GraphQL's query, mutation, and subscription model, and the performance trade-offs it makes relative to REST.

networks http-ecosystem book

6 — WebSockets

The WebSocket upgrade handshake and persistent, full-duplex connections that make real-time systems possible over HTTP.

networks http-ecosystem book

1 — Cryptography Fundamentals

Symmetric and asymmetric encryption, hashing, and HMAC as the cryptographic primitives every later security chapter depends on.

networks security book

3 — HTTPS

Certificate validation, HSTS, OCSP, and session resumption as the mechanics that turn TLS into HTTPS in practice.

networks security book

4 — Authentication Protocols

OAuth2, OIDC, JWT, SAML, and Kerberos as the authentication protocols that show up repeatedly in distributed-systems interviews.

networks security book

5 — Network Security

VPNs, IPSec, WAFs, IDS/IPS, and DDoS protection as the network-level security controls layered on top of TLS.

networks security book

1 — Virtual Networking

VPCs/VNets, subnets, route tables, and security groups as the building blocks of a cloud network.

networks cloud-networking book

2 — Kubernetes Networking

The Kubernetes networking model — pod network, CNI, kube-proxy, Services, Ingress, and the Gateway API.

networks cloud-networking book

3 — Service Mesh

Istio, Linkerd, and Envoy as service mesh implementations, and how sidecars and mTLS turn a mesh into a security and traffic-control layer.

networks cloud-networking book

4 — Load Balancing

L4 vs. L7 load balancing, round robin, least connections, consistent hashing, and health checks as the mechanics behind traffic distribution.

networks cloud-networking book

5 — CDN

Edge nodes, cache invalidation, Cache-Control, and origin shield as the mechanics behind a CDN's performance and cost story.

networks cloud-networking book

1 — Network Performance

Bandwidth vs. latency, bufferbloat, tail latency, and head-of-line blocking as the performance concepts that separate a fast network from a merely working one.

networks performance-engineering book

2 — Connection Management

Connection pools, keep-alive, timeouts, retries, and circuit breakers as the client-side levers for managing unreliable network connections.

networks performance-engineering book

3 — Compression

gzip, Brotli, and HTTP compression as the payload-optimization techniques that trade CPU for bandwidth.

networks performance-engineering book

4 — Caching

Browser cache, CDN cache, reverse-proxy cache, and application cache as the layered caching strategy behind most low-latency systems.

networks performance-engineering book

5 — Network Benchmarking

iperf, wrk, k6, Vegeta, and tc as the tools used to actually measure and simulate network performance.

networks performance-engineering book

1 — Packet Analysis

tcpdump and Wireshark as the tools for capturing and reading raw packets and TCP streams.

networks observability-and-debugging book

2 — Linux Networking

The Linux networking command-line toolkit — ss, netstat, ip, ifconfig, route, traceroute, and ping — for diagnosing a network from the box itself.

networks observability-and-debugging book

3 — DNS Debugging

dig, nslookup, and host as the tools for debugging DNS resolution problems.

networks observability-and-debugging book

4 — HTTP Debugging

curl, Postman, and HTTPie as the tools for debugging HTTP requests and responses directly.

networks observability-and-debugging book

5 — Kubernetes Network Debugging

kubectl exec, ephemeral containers, BusyBox, Network Policies, and Cilium monitor as the toolkit for debugging networking inside a Kubernetes cluster.

networks observability-and-debugging book

1 — RPC Systems

The RPC call lifecycle, serialization, and timeouts as the networking concerns underneath every remote procedure call.

networks distributed-systems-networking book

2 — Message Brokers

Kafka, RabbitMQ, NATS, and Pulsar as message brokers, and how each handles the networking side of asynchronous messaging.

networks distributed-systems-networking book

3 — Event Streaming

Partitions, consumer groups, and delivery guarantees as the mechanics behind event-streaming systems built on top of message brokers.

networks distributed-systems-networking book

4 — CAP and Networking

How network partitions force the availability-vs-consistency trade-off the CAP theorem describes.

networks distributed-systems-networking book

5 — Cross-Region Communication

Replication, WAN latency, and multi-region design as the networking concerns specific to systems that span regions.

networks distributed-systems-networking book

1 — Common MAANG Networking Questions

Recurring MAANG networking interview questions — why TCP over UDP, HTTP/2 vs HTTP/3, why TLS needs certificates, what happens when you type google.com, and why latency matters.

networks interview-mastery book

2 — Production Incidents

DNS outages, BGP leaks, SYN floods, TLS expiration, and network partitions as the production incident patterns worth knowing cold.

networks interview-mastery book

3 — Cloud Networking Case Studies

How Netflix, Google, Meta, Amazon, and Cloudflare have approached networking at planet scale, and the transferable lessons across them.

networks interview-mastery book

4 — Networking Design Interviews

API gateway, CDN, global load balancer, edge computing, and service mesh as the recurring networking system-design interview prompts.

networks interview-mastery book

5 — Review & Cheat Sheets

A consolidated review across TCP flags, HTTP status codes, the TLS handshake, DNS resolution, the OSI model, and CIDR — the interview quick-reference for this entire book.

networks interview-mastery book

1 — Common Ports

A reference table of common ports across the 20–65535 range and the services conventionally bound to them.

networks appendix book

10 — Wireshark Filters

A cheat sheet of commonly used Wireshark display filters for isolating traffic during packet analysis.

networks appendix book

11 — tcpdump Cheat Sheet

A cheat sheet of common tcpdump invocations and filter expressions for capturing traffic from the command line.

networks appendix book

12 — curl Cheat Sheet

A cheat sheet of common curl flags and invocations for debugging HTTP requests from the command line.

networks appendix book

13 — Linux Networking Commands

A consolidated command reference for Linux networking tools — ss, ip, netstat, route, traceroute, and ping.

networks appendix book

14 — Kubernetes Networking Commands

A consolidated command reference for debugging Kubernetes networking — kubectl exec, ephemeral containers, and Cilium monitor.

networks appendix book

15 — Cloud Networking Terminology

A glossary of cloud networking terminology — VPC, VNet, NSG, peering, and related terms — for quick lookup across cloud providers.

networks appendix book

16 — Common Interview Pitfalls

A list of common networking interview pitfalls and the misconceptions behind each one.

networks appendix book

2 — HTTP Status Codes

A reference table of HTTP status codes grouped by class, with what each one actually signals.

networks appendix book

3 — TCP Flags

A reference table of the TCP header's control flags — SYN, ACK, FIN, RST, PSH, URG — and what each means in a packet capture.

networks appendix book

4 — ICMP Message Types

A reference table of ICMP message types and codes, including the ones behind ping and traceroute.

networks appendix book

5 — CIDR Cheat Sheet

A CIDR notation cheat sheet mapping prefix length to subnet size and usable host count.

networks appendix book

6 — IPv4 Reserved Ranges

A reference table of reserved and special-use IPv4 address ranges — private ranges, loopback, link-local, and multicast.

networks appendix book

7 — IPv6 Address Types

A reference table of IPv6 address types — unicast, multicast, anycast, link-local, and unique local — and how to recognize each.

networks appendix book

8 — TLS Cipher Suites

A reference table of TLS cipher suites and what their naming convention actually encodes.

networks appendix book

9 — DNS Record Types

A consolidated reference table of DNS record types for quick lookup alongside Part IV's DNS chapters.

networks appendix book

Computer Networks

A book-shaped table of contents for computer networking, from first principles to production systems: Ethernet through IP, TCP/UDP/QUIC, DNS, the HTTP ecosystem, security, cloud/Kubernetes networking, performance engineering, observability/debugging, and distributed-systems networking — cross-linking existing kubernetes/sre/system-design/tech notes instead of duplicating them.

networks book reference maang-prep

# Object Oriented Programming

All Object Oriented Programming notes →

1 — Evolution of Programming Paradigms

Surveys Machine Programming, Procedural Programming, Structured Programming, Modular Programming, Object-Oriented Programming, Functional Programming, Event-Driven Programming, Reactive Programming, and Comparing Programming Paradigms as the core sub-topics of evolution of programming paradigms.

object-oriented-programming foundations book

2 — Why OOP Exists

Surveys Software Complexity, Code Reusability, Maintainability, Real-world Modeling, Separation of Concerns, and Abstraction vs Implementation as the core sub-topics of why oop exists.

object-oriented-programming foundations book

3 — Objects and Classes

Surveys Objects, Classes, State, Behavior, Identity, Object Lifetime, and Object Relationships as the core sub-topics of objects and classes.

object-oriented-programming foundations book

1 — Fields and Methods

Covers Instance Variables, Static Variables, Instance Methods, Static Methods, Constructors, Method Invocation, and Object Initialization as the core sub-topics of fields and methods.

object-oriented-programming core-building-blocks book

2 — Access Modifiers

Covers Public, Private, Protected, Package/Internal, Visibility Rules, and Encapsulation Boundaries as the core sub-topics of access modifiers.

object-oriented-programming core-building-blocks book

3 — Object Lifecycle

Covers Object Creation, Constructors, Initialization Order, Finalization, Garbage Collection, Resource Management, and RAII vs GC as the core sub-topics of object lifecycle.

object-oriented-programming core-building-blocks book

1 — Encapsulation

Explains Information Hiding, Data Protection, Getters & Setters, Immutable Objects, and Defensive Copying as the core sub-topics of encapsulation.

object-oriented-programming four-pillars book

2 — Abstraction

Explains Interfaces, Abstract Classes, APIs, Implementation Hiding, and Domain Modeling as the core sub-topics of abstraction.

object-oriented-programming four-pillars book

3 — Inheritance

Explains IS-A Relationship, Base Classes, Derived Classes, Method Overriding, Constructor Chaining, Multiple Inheritance, and Diamond Problem as the core sub-topics of inheritance.

object-oriented-programming four-pillars book

4 — Polymorphism

Explains Compile-Time Polymorphism, Runtime Polymorphism, Method Overloading, Method Overriding, Virtual Functions, Dynamic Dispatch, VTables, and Late Binding as the core sub-topics of polymorphism.

object-oriented-programming four-pillars book

1 — Association

Distinguishes One-to-One, One-to-Many, and Many-to-Many as the core sub-topics of association.

object-oriented-programming object-relationships book

2 — Aggregation

Distinguishes Weak Ownership, Shared Objects, and Lifecycle Independence as the core sub-topics of aggregation.

object-oriented-programming object-relationships book

3 — Composition

Distinguishes Strong Ownership, Lifecycle Dependency, and Composition over Inheritance as the core sub-topics of composition.

object-oriented-programming object-relationships book

4 — Dependency

Distinguishes Uses-A Relationship, Constructor Injection, Method Injection, and Dependency Graph as the core sub-topics of dependency.

object-oriented-programming object-relationships book

1 — SOLID Principles

Breaks down Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion — the five pillars of class-level design discipline.

object-oriented-programming design-principles book

2 — GRASP Principles

Breaks down Information Expert, Creator, Controller, Low Coupling, High Cohesion, Indirection, Pure Fabrication, and Protected Variations as the core sub-topics of grasp principles.

object-oriented-programming design-principles book

3 — Object-Oriented Metrics

Breaks down Coupling, Cohesion, Complexity, Stability, and Maintainability as the core sub-topics of object-oriented metrics.

object-oriented-programming design-principles book

1 — Interfaces vs Abstract Classes

Examines Differences, Trade-offs, Language Implementations, and Interview Questions as the core sub-topics of interfaces vs abstract classes.

object-oriented-programming advanced-concepts book

2 — Object Equality

Examines Identity, Equality, Hash Codes, Value Objects, and Reference Objects as the core sub-topics of object equality.

object-oriented-programming advanced-concepts book

3 — Immutability

Examines Immutable Objects, Thread Safety, Builders, and Persistent Data Structures as the core sub-topics of immutability.

object-oriented-programming advanced-concepts book

4 — Object Cloning

Examines Shallow Copy, Deep Copy, Copy Constructors, and Prototype Pattern as the core sub-topics of object cloning.

object-oriented-programming advanced-concepts book

5 — Object Serialization

Examines Serialization, Deserialization, Versioning, and Security Concerns as the core sub-topics of object serialization.

object-oriented-programming advanced-concepts book

1 — Memory Layout

Explains Stack, Heap, Object Headers, References, and Object Alignment as the core sub-topics of memory layout.

object-oriented-programming memory-and-runtime book

2 — Dynamic Dispatch

Explains Virtual Tables, Interface Dispatch, Runtime Type Information, and Reflection as the core sub-topics of dynamic dispatch.

object-oriented-programming memory-and-runtime book

3 — Garbage Collection

Explains Reachability, Mark & Sweep, Generational GC, Reference Counting, and Memory Leaks as the core sub-topics of garbage collection.

object-oriented-programming memory-and-runtime book

1 — Creational Patterns

Catalogs Singleton, Factory Method, Abstract Factory, Builder, and Prototype — the patterns that control how objects get created.

object-oriented-programming design-patterns book

2 — Structural Patterns

Catalogs Adapter, Bridge, Composite, Decorator, Facade, Flyweight, and Proxy — the patterns that compose objects into larger structures.

object-oriented-programming design-patterns book

3 — Behavioral Patterns

Catalogs Observer, Strategy, State, Command, Chain of Responsibility, Visitor, Iterator, Mediator, Template Method, Interpreter, and Memento — the patterns that govern how objects communicate and share responsibility.

object-oriented-programming design-patterns book

1 — Java OOP

Tours Object Model, JVM, Interfaces, Default Methods, Records, and Sealed Classes as the core sub-topics of java oop.

object-oriented-programming language-specific book

2 — C# OOP

Tours Properties, Delegates, Events, Records, Extension Methods, and Partial Classes as the core sub-topics of c# oop.

object-oriented-programming language-specific book

3 — C++ OOP

Tours Multiple Inheritance, Virtual Functions, Templates, RAII, and Smart Pointers as the core sub-topics of c++ oop.

object-oriented-programming language-specific book

4 — Python OOP

Tours Duck Typing, Multiple Inheritance, Mixins, and Metaclasses as the core sub-topics of python oop.

object-oriented-programming language-specific book

5 — JavaScript & TypeScript OOP

Tours Prototype Chain, Classes, Mixins, and Decorators as the core sub-topics of javascript & typescript oop.

object-oriented-programming language-specific book

1 — Domain-Driven Design Basics

Examines Entities, Value Objects, Aggregates, Repositories, and Domain Services as DDD's core building blocks.

object-oriented-programming large-systems book

2 — OOP in Distributed Systems

Examines how object modeling changes once objects cross process boundaries — Microservices, Service Boundaries, DTOs, Contracts, and APIs.

object-oriented-programming large-systems book

3 — OOP and Concurrency

Examines how Shared State, Synchronization, Immutable Objects, and the Actor Model interact with object design.

object-oriented-programming large-systems book

4 — OOP Anti-Patterns

Examines God Object, Blob, Anemic Domain Model, Shotgun Surgery, Spaghetti Objects, and Inheritance Abuse as the core sub-topics of oop anti-patterns.

object-oriented-programming large-systems book

1 — Frequently Asked Interview Questions

Drills Explain OOP to a Beginner, Why Encapsulation Matters, Why Composition Over Inheritance, Interface vs Abstract Class, Overloading vs Overriding, Static vs Dynamic Binding, Object vs Class, Equality vs Identity, Deep Copy vs Shallow Copy, and SOLID Interview Questions as the core sub-topics of frequently asked interview questions.

object-oriented-programming interview-mastery book

2 — Coding Problems

Drills Design Parking Lot, Design Library System, Design Hotel Booking, Design Elevator, Design ATM, Design Chess, Design Tic Tac Toe, and Design Notification System as classic OOD interview prompts.

object-oriented-programming interview-mastery book

3 — Object-Oriented Design Interviews

Drills Requirement Gathering, Identifying Objects, Relationships, Responsibilities, UML Sketching, Applying SOLID, Trade-off Analysis, and Extensibility as the core sub-topics of object-oriented design interviews.

object-oriented-programming interview-mastery book

1 — UML Class Diagrams

Reference appendix entry for sketching class diagrams — classes, attributes, methods, and relationship notation used throughout this book.

object-oriented-programming appendix book

10 — 200+ MAANG OOP Interview Questions

Reference bank of 200+ OOP interview questions spanning conceptual, coding, and design-interview formats.

object-oriented-programming appendix book

2 — UML Sequence Diagrams

Reference appendix entry for sequence diagrams — object interactions and message ordering over time.

object-oriented-programming appendix book

3 — UML State Diagrams

Reference appendix entry for state diagrams — modeling object lifecycle and state transitions.

object-oriented-programming appendix book

4 — UML Activity Diagrams

Reference appendix entry for activity diagrams — modeling control flow and business logic across objects.

object-oriented-programming appendix book

5 — Common OOP Interview Pitfalls

Reference appendix entry cataloging recurring mistakes candidates make when applying OOP concepts under interview pressure.

object-oriented-programming appendix book

6 — OOP Cheat Sheet

One-page reference summarizing every OOP concept covered in this book for rapid pre-interview review.

object-oriented-programming appendix book

7 — SOLID Cheat Sheet

One-page reference summarizing the five SOLID principles and their interview-ready one-liners.

object-oriented-programming appendix book

8 — Design Pattern Selection Matrix

Reference matrix mapping problem shapes to the GoF pattern that solves them, for quick pattern selection under interview time pressure.

object-oriented-programming appendix book

9 — Language Feature Comparison

Side-by-side comparison of how Java, C#, C++, Python, and TypeScript implement core OOP features.

object-oriented-programming appendix book

Object-Oriented Programming for MAANG Interviews

A book-shaped table of contents for OOP: paradigm foundations, the four pillars, object relationships, SOLID/GRASP design principles, memory and runtime internals, GoF design patterns, language-specific OOP, and OOP at system scale — cross-linking existing pattern, concurrency, and low-level-design notes instead of duplicating them.

object-oriented-programming book reference maang-prep

1 — What is an Operating System?

Covers the evolution of operating systems, the goals of an OS, types of operating systems, kernel vs. user space, monolithic vs. microkernel vs. hybrid kernels, system calls, and the boot process overview.

operating-system foundations book

2 — Computer Architecture Essentials

Covers CPU architecture, registers, the memory hierarchy, caches, interrupts, DMA, timers, device controllers, and NUMA basics — the hardware substrate an OS manages.

operating-system foundations book

3 — OS Interfaces

Covers ABI vs. API, POSIX, the shell, the CLI, libraries, executables, the ELF format, and dynamic linking.

operating-system foundations book

1 — Process Fundamentals

Covers the process lifecycle, the process control block (PCB), process states, process context, the process image, and parent/child process relationships.

operating-system processes book

2 — Process Creation

Covers fork(), exec(), wait(), copy-on-write, zombie processes, orphan processes, and daemons.

operating-system processes book

3 — Context Switching

Covers kernel mode vs. user mode, saving registers, scheduling context, context switch cost, and process switching.

operating-system processes book

4 — Interprocess Communication

Covers pipes, named pipes, shared memory, message queues, signals, sockets, RPC, and mmap().

operating-system processes book

1 — Threads

Covers threads vs. processes, the thread lifecycle, user threads, kernel threads, thread pools, and thread-local storage.

operating-system threads book

2 — Multithreading

Covers thread scheduling, thread creation models, thread safety, false sharing, and CPU affinity.

operating-system threads book

3 — Synchronization Primitives

Covers mutexes, spinlocks, read-write locks, semaphores, condition variables, barriers, and futexes.

operating-system threads book

1 — Race Conditions

Covers critical sections, atomic operations, compare-and-swap (CAS), load-link/store-conditional (LL/SC), and memory visibility.

operating-system concurrency book

2 — Deadlocks

Covers the necessary conditions for deadlock, prevention, avoidance, detection, recovery, and the Banker's algorithm.

operating-system concurrency book

3 — Classical Synchronization Problems

Covers the dining philosophers, readers-writers, producer-consumer, sleeping barber, and cigarette smokers problems.

operating-system concurrency book

4 — Memory Ordering

Covers CPU reordering, compiler reordering, acquire/release semantics, sequential consistency, memory fences, and happens-before relationships.

operating-system concurrency book

1 — Scheduling Fundamentals

Covers scheduling goals: throughput, turnaround time, waiting time, response time, and fairness.

operating-system scheduling book

2 — Scheduling Algorithms

Covers FCFS, SJF, SRTF, round robin, priority scheduling, multilevel queue scheduling, MLFQ, and lottery scheduling.

operating-system scheduling book

3 — Modern Scheduler Design

Covers the Linux Completely Fair Scheduler (CFS), the Windows scheduler, CPU affinity, load balancing, and NUMA-aware scheduling.

operating-system scheduling book

1 — Memory Fundamentals

Covers logical vs. physical memory, address spaces, relocation, protection, and memory allocation basics.

operating-system memory-management book

2 — Paging

Covers pages, frames, page tables, multi-level paging, huge pages, and the translation lookaside buffer (TLB).

operating-system memory-management book

3 — Virtual Memory

Covers demand paging, page faults, swapping, working sets, and thrashing.

operating-system memory-management book

4 — Page Replacement

Covers FIFO, LRU, the clock algorithm, second chance, LFU, and Belady's anomaly.

operating-system memory-management book

5 — Memory Allocation

Covers the buddy allocator, the slab allocator, the heap, malloc(), and fragmentation.

operating-system memory-management book

1 — File System Basics

Covers files, directories, metadata, inodes, and links.

operating-system file-systems book

2 — File System Internals

Covers journaling, copy-on-write, and the internals of ext4, XFS, Btrfs, NTFS, and APFS.

operating-system file-systems book

3 — Storage Management

Covers disk scheduling, RAID, SSD internals, TRIM, and the filesystem cache.

operating-system file-systems book

1 — I/O Architecture

Covers blocking I/O, non-blocking I/O, buffered I/O, DMA, and device drivers.

operating-system io book

2 — Event Driven Systems

Covers select(), poll(), epoll(), kqueue(), IOCP, and io_uring.

operating-system io book

1 — Operating System Security

Covers user accounts, permissions, ACLs, capabilities, SELinux, and AppArmor.

operating-system security book

2 — Isolation

Covers chroot, namespaces, cgroups, containers, and sandboxing.

operating-system security book

1 — Linux Kernel Overview

Covers the Linux kernel architecture, the scheduler, the memory manager, the VFS, and the networking stack.

operating-system linux book

2 — Linux Process Management

Covers procfs, sysfs, signals, jobs, nice, and cgroups.

operating-system linux book

3 — Linux Performance

Covers top, htop, vmstat, iostat, perf, strace, ltrace, and eBPF basics.

operating-system linux book

1 — OS in Cloud Computing

Covers virtual machines, hypervisors, containers, microVMs, and resource isolation.

operating-system distributed-systems book

2 — Operating Systems for Kubernetes

Covers cgroups, namespaces, OverlayFS, the PID namespace, the network namespace, and the mount namespace.

operating-system distributed-systems book

3 — Operating Systems for Observability

Covers process metrics, CPU metrics, memory metrics, I/O metrics, context switches, syscalls, and eBPF observability.

operating-system distributed-systems book

1 — Lock-Free Programming

Covers compare-and-swap (CAS), the ABA problem, hazard pointers, and RCU.

operating-system advanced book

2 — NUMA Systems

Covers memory locality, CPU pinning, and NUMA-aware scheduling.

operating-system advanced book

3 — Kernel Synchronization

Covers spinlocks, RCU, seqlocks, wait queues, softirqs, and tasklets.

operating-system advanced book

4 — High Performance I/O

Covers zero-copy I/O, sendfile(), splice(), mmap(), and io_uring.

operating-system advanced book

5 — Emerging Operating System Technologies

Covers unikernels, library OSes, WebAssembly runtimes, confidential computing, and secure enclaves.

operating-system advanced book

1 — Classic Interview Problems

Covers producer-consumer, readers-writers, dining philosophers, deadlock detection, memory allocation, page replacement, and scheduling problems as interview prompts.

operating-system interview-prep book

2 — System Design Connections

Covers how threads in web servers, process models, database memory management, scheduler impact on latency, caching/paging, and storage systems connect back to OS fundamentals.

operating-system interview-prep book

3 — Linux Interview Questions

Covers common Linux questions, debugging scenarios, process investigation, memory leak investigation, high CPU diagnosis, the OOM killer, and kernel panic basics.

operating-system interview-prep book

4 — MAANG Interview Masterclass

Covers frequently asked questions, whiteboard explanations, common pitfalls, optimization techniques, and mock interview scenarios.

operating-system interview-prep book

Operating Systems for MAANG Interviews

A book-shaped table of contents for operating systems at MAANG interview depth: foundations through processes, threads, concurrency, CPU scheduling, memory management, file systems, I/O, security & isolation, Linux internals, cloud/Kubernetes/observability, advanced kernel topics, and interview preparation — cross-linking existing sre/linux-networking, kubernetes-security, and patterns/concurrency notes instead of duplicating them.

operating-system book reference maang-prep

01 — What Is a Pattern?

The history and vocabulary of pattern thinking — Christopher Alexander's pattern language, the Gang of Four's catalog, anti-patterns, and how a pattern differs from a one-off design decision.

patterns pattern-thinking book maang-prep

02 — Pattern Selection & Trade-offs

How to choose between competing patterns under real forces: naming the context, weighing trade-offs and consequences, composing multiple patterns together, and recognizing when a pattern has outlived its fit.

patterns pattern-thinking book maang-prep

03 — SOLID Revisited — Principal-Level Framing

SRP, OCP, LSP, ISP, and DIP reframed at architecture scale — stable dependencies and stable abstractions as the load-bearing idea, not the five-bullet mnemonic.

patterns pattern-thinking book maang-prep

01 — Creational Patterns

Controlling object instantiation at the composition-root level: Singleton, Factory Method, Abstract Factory, Builder, and Prototype — when each earns its complexity and how they compose in a real dependency graph.

patterns gof-patterns book maang-prep

02 — Structural Patterns

Composing objects and classes into larger structures without duplicating behavior: Adapter, Bridge, Composite, Decorator, Facade, Flyweight, and Proxy.

patterns gof-patterns book maang-prep

03 — Behavioral Patterns

Distributing responsibility and communication between objects: Strategy, Observer, Command, Chain of Responsibility, Mediator, Memento, Interpreter, Iterator, State, Template Method, and Visitor.

patterns gof-patterns book maang-prep

01 — Layering Patterns

Layered Architecture, Hexagonal (Ports & Adapters), Onion, Clean Architecture, and Screaming Architecture — how each draws the boundary between domain logic and infrastructure, and what that boundary costs.

patterns enterprise-patterns book maang-prep

02 — Domain Modeling Patterns

DDD's tactical toolkit: Rich Domain Model vs. Anemic Model, Aggregate, Entity, Value Object, Repository, Factory, and Specification — the vocabulary a domain model needs to stay consistent under concurrent writes.

patterns enterprise-patterns book maang-prep

03 — Transaction Patterns

Unit of Work, Identity Map, Lazy Loading, and Optimistic vs. Pessimistic Locking — the patterns that keep an object graph and its persisted state from drifting apart.

patterns enterprise-patterns book maang-prep

04 — Integration Patterns

DTO, Gateway, Data Mapper, Service Layer, Table Data Gateway, and Active Record — the patterns that mediate between a domain model and everything outside it (databases, external services, the wire).

patterns enterprise-patterns book maang-prep

01 — Dependency Management Patterns

Constructor, Method, and Property Injection, Service Locator, and IoC Containers — how a dependency graph gets assembled and why constructor injection is the default the others are exceptions to.

patterns dependency-injection book maang-prep

02 — Extensibility Patterns

Plugin Architecture, Module Pattern, Strategy Registration, Reflection, and Dynamic Loading — how a system stays open to new behavior without recompiling its core.

patterns dependency-injection book maang-prep

03 — Service Decomposition

Decomposing by business capability, domain, or bounded context, and building self-contained systems — the remaining decomposition axes beyond the Monolith-vs-Strangler-Fig choice already covered in this book.

patterns microservice-patterns book maang-prep

06 — Service Communication

Request-Response, Async Messaging, Event Streaming, Pub/Sub, and RPC/gRPC — the communication styles a service boundary can choose between, beyond the Fan-Out/Fan-In and Backpressure patterns already covered in this book.

patterns microservice-patterns book maang-prep

11 — Reliability Patterns (Microservice Building Blocks)

Timeout, Rate Limiter, Fallback, and Adaptive Concurrency — the remaining resilience building blocks beyond Circuit Breaker, Retry, Bulkhead, and Hedged Requests, which already have their own chapters in this book.

patterns microservice-patterns book maang-prep

16 — Data Patterns (Microservice)

Database-per-Service, Shared Database, and Materialized View — the remaining data-ownership patterns beyond CQRS, Event Sourcing, Outbox, and Saga, which already have their own chapters in this book.

patterns microservice-patterns book maang-prep

01 — Consensus Patterns

Raft, Paxos, Leader Election, and Quorum — how a distributed system agrees on a single value or leader despite node failures and network partitions.

patterns distributed-systems book maang-prep

02 — Coordination Patterns

Distributed Lock, Lease, Heartbeat, Membership, and Gossip — the primitives nodes use to coordinate without a single point of failure.

patterns distributed-systems book maang-prep

03 — Replication Patterns

Leader-Follower, Leaderless, Multi-Leader, and Read Replica replication — how copies of the same data stay available and how they diverge under partition.

patterns distributed-systems book maang-prep

04 — Consistency Patterns

Strong, Eventual, Causal, Read-Your-Writes, and Monotonic Reads consistency models — what guarantee a client actually gets, and what it costs in latency and availability.

patterns distributed-systems book maang-prep

01 — Message Broker Patterns

Queue, Topic, Fan-out, Dead Letter Queue, and Delayed Queue — the delivery topologies a message broker offers and when each one fits.

patterns messaging-patterns book maang-prep

02 — Event Patterns

Event Notification vs. Event-Carried State Transfer, and Choreography vs. Orchestration — how services stay decoupled through events, building on the Event Sourcing and Saga patterns already covered in this book.

patterns messaging-patterns book maang-prep

03 — Streaming Patterns

Windowing, Watermarks, and Exactly-Once vs. At-Least-Once vs. At-Most-Once delivery semantics — the vocabulary for reasoning about correctness in a stream processing pipeline.

patterns messaging-patterns book maang-prep

01 — REST Patterns

Resource modeling, pagination, filtering, HATEOAS, and versioning — the design decisions that separate a well-behaved REST API from an RPC call wearing HTTP verbs.

patterns api-patterns book maang-prep

02 — RPC Patterns

gRPC and Protobuf, and the unary, streaming, and bidirectional-streaming call shapes — when RPC's tighter contract and lower overhead beat REST's looser one.

patterns api-patterns book maang-prep

03 — API Gateway Patterns

Gateway, Backend for Frontend, Aggregation, and Federation — where cross-cutting API concerns (auth, rate limiting, fan-out) belong relative to the services behind them.

patterns api-patterns book maang-prep

01 — Database Design Patterns

Normalization, denormalization, sharding, partitioning, and archiving — the structural decisions that determine how a database scales and how expensive its queries stay.

patterns data-patterns book maang-prep

02 — Caching Patterns

Cache-Aside, Read-Through, Write-Through, Write-Back, and Refresh-Ahead — the five ways an application and its cache can disagree about who owns writing to the source of truth.

patterns data-patterns book maang-prep

03 — Search Patterns

Inverted Index, Secondary Index, Bloom Filter, and Skip List — the data structures that make search and existence-checks fast at scale.

patterns data-patterns book maang-prep

02 — Kubernetes Patterns

Ambassador, Adapter, Init Container, and Operator — the remaining multi-container and control-plane patterns beyond Sidecar, which already has its own chapter in this book.

patterns cloud-native book maang-prep

03 — Cloud Infrastructure Patterns

Immutable Infrastructure, Auto Scaling, and the Blue-Green, Canary, and Rolling Update deployment strategies — how infrastructure changes roll out without a full-stop cutover.

patterns cloud-native book maang-prep

04 — Multi-Region Patterns

Active-Passive, Active-Active, Geo-Replication, and Traffic Steering — the patterns that keep a system available when an entire region fails.

patterns cloud-native book maang-prep

01 — Monitoring Patterns

RED, USE, the Four Golden Signals, and Saturation — the metric frameworks that decide what to measure on a service before an incident forces the question.

patterns observability book maang-prep

02 — Logging Patterns

Structured Logging, Correlation IDs, Log Sampling, and Log Aggregation — how logs stay searchable and affordable at scale instead of becoming a second, worse metrics system.

patterns observability book maang-prep

03 — Tracing Patterns

Distributed Tracing, Context Propagation, and Tail vs. Head Sampling — how a single request's path across services becomes reconstructable instead of a pile of disconnected spans.

patterns observability book maang-prep

04 — Alerting Patterns

Multi-window Burn Rate alerts, SLO Alerts, Composite Alerts, and Noise Reduction — the alerting design that pages on user-facing pain instead of every internal wobble.

patterns observability book maang-prep

01 — Resilience Patterns

Graceful Degradation, Load Shedding, Fail Fast, and Self-Healing — the system-level resilience postures that sit above any single pattern like Circuit Breaker or Bulkhead.

patterns reliability book maang-prep

02 — Availability Patterns

High Availability, Disaster Recovery, Backup/Restore, and Chaos Engineering — the practices that turn an availability target into something actually tested, not just assumed.

patterns reliability book maang-prep

03 — Scalability Patterns

Horizontal vs. Vertical Scaling, Elasticity, and Partitioning — the levers for handling more load, and why horizontal scaling is usually the one worth designing for first.

patterns reliability book maang-prep

01 — Authentication Patterns

OAuth, OpenID Connect, API Keys, and Mutual TLS — proving identity between a client and a service, and between services themselves.

patterns security-patterns book maang-prep

02 — Authorization Patterns

RBAC, ABAC, ReBAC, and Capability-Based Security — the models for deciding what an authenticated identity is allowed to do.

patterns security-patterns book maang-prep

03 — Secure Communication Patterns

Zero Trust, Service Mesh, and Secrets Management — how a system stops trusting the network itself and starts verifying every call.

patterns security-patterns book maang-prep

01 — Threading Patterns

Thread Pool, Producer-Consumer, and Reader-Writer — the foundational patterns for sharing work and data across threads without corrupting either.

patterns concurrency-patterns book maang-prep

02 — Lock-Free Programming

Compare-and-Swap, Atomic Variables, and Wait-Free vs. Lock-Free Queues — trading locks for retry loops to avoid blocking, priority inversion, and deadlock.

patterns concurrency-patterns book maang-prep

03 — Async Patterns

Futures, Promises, Reactive Streams, and the Actor Model — the abstractions for composing asynchronous work without callback-driven spaghetti.

patterns concurrency-patterns book maang-prep

01 — LLM System Patterns

RAG, Multi-Agent, Tool Calling, Planner-Executor, Reflection, and Memory — the pattern vocabulary for composing LLM calls into a system, at the design layer above any single framework.

patterns ai-patterns book maang-prep

02 — AI Infrastructure Patterns

Model Routing, Prompt Chaining, Guardrails, Human-in-the-Loop, and Evaluation Pipelines — the operational scaffolding that makes an LLM system reliable enough to run in production.

patterns ai-patterns book maang-prep

01 — Team Topologies

Stream-Aligned, Platform, Enabling, and Complicated-Subsystem teams — the four fundamental team types and the interaction modes between them.

patterns organizational-patterns book maang-prep

02 — Conway's Law

Inverse Conway Maneuver, Team APIs, and Cognitive Load — why a system's architecture mirrors its org chart, and how to design the org chart on purpose instead of by accident.

patterns organizational-patterns book maang-prep

03 — Engineering Leadership Patterns

RFC Process, ADRs, Design Reviews, Technical Governance, and Architecture Council — the decision-making scaffolding that lets an organization make architecture calls without every one becoming a meeting.

patterns organizational-patterns book maang-prep

01 — Decision-Making Patterns

Buy vs. Build, Build vs. Platform, Sync vs. Async, SQL vs. NoSQL, and Monolith vs. Microservices — recurring architecture forks and the questions that actually resolve them.

patterns architecture-decisions book maang-prep

02 — Trade-off Analysis Frameworks

CAP, PACELC, Latency vs. Throughput, Cost vs. Reliability, and Simplicity vs. Flexibility — the frameworks for making a trade-off explicit instead of leaving it implicit in the design.

patterns architecture-decisions book maang-prep

01 — Combining Patterns

Pattern layering, pattern synergy, and pattern conflicts — how patterns interact once more than one is applied to the same system, and where two reasonable patterns pull against each other.

patterns pattern-composition book maang-prep

02 — Anti-Patterns

Distributed Monolith, Shared Database, God Object, Big Ball of Mud, Chatty Services, Golden Hammer, and Vendor Lock-in — the failure modes that look like patterns but are really a pattern applied without its context.

patterns pattern-composition book maang-prep

03 — Pattern Case Studies

How Amazon, Google, Netflix, Uber, Stripe, LinkedIn, and Cloudflare have combined these patterns in production — to be researched and written company by company, not as a single pass.

patterns pattern-composition book maang-prep

Patterns

A book-shaped table of contents for reusable engineering patterns spanning object-oriented design, enterprise architecture, distributed systems, messaging, APIs, cloud infrastructure, observability, security, concurrency, AI/agentic systems, and organizational design — grounded in production experience at scale.

patterns book distributed-systems reliability maang-prep

# Platform Engineering Fundamentals

All Platform Engineering Fundamentals notes →

1 — The Evolution of Infrastructure Engineering

Traces infrastructure engineering from physical servers through virtualization, the rise of cloud computing, and infrastructure automation to the point where platform engineering became necessary.

platform-engineering-fundamentals evolution book

2 — From System Administration to Platform Engineering

Contrasts traditional system administration with the DevOps revolution, cloud-native transformation, and the modern platform team model that emerged from both.

platform-engineering-fundamentals evolution book

3 — DevOps, SRE, and Platform Engineering

Separates what DevOps, SRE, and Platform Engineering each solve, where their responsibilities and boundaries lie, and how the three disciplines work together in practice.

platform-engineering-fundamentals evolution book

4 — Why Platform Engineering Exists

Grounds platform engineering's existence in scaling engineering organizations, reducing developer cognitive load, increasing velocity, and balancing standardization against flexibility.

platform-engineering-fundamentals evolution book

5 — The Evolution of Developer Experience (DevEx)

Follows developer experience (DevEx) from early pain points through self-service engineering, the developer journey, and how developer happiness gets measured.

platform-engineering-fundamentals evolution book

1 — Conway's Law

How Conway's Law ties software architecture to organizational communication structure, and what that implies for platform team boundaries.

platform-engineering-fundamentals organizational-foundations book

2 — Team Topologies

Introduces the four fundamental team types from Team Topologies — stream-aligned, platform, enabling, and complicated-subsystem — and their interaction modes.

platform-engineering-fundamentals organizational-foundations book

3 — Cognitive Load

Defines the types of cognitive load a platform absorbs on behalf of stream-aligned teams, and how a platform's scope should be sized against it.

platform-engineering-fundamentals organizational-foundations book

4 — Platform Teams

Covers a platform team's mission, responsibilities, composition, and the criteria used to judge whether it's succeeding.

platform-engineering-fundamentals organizational-foundations book

1 — Platform as a Product

Frames an internal platform as a product with real users, not an internal utility — the shift in mindset that separates platform engineering from traditional infrastructure teams.

platform-engineering-fundamentals platform-as-product book

2 — Product Management for Platforms

Applies product management discipline — understanding users, running user research, building roadmaps, and prioritizing features — to an internal platform.

platform-engineering-fundamentals platform-as-product book

3 — Developer Experience (DevEx)

Covers user-centered design, developer workflows, platform usability, and the feedback loops that keep a platform's DevEx honest.

platform-engineering-fundamentals platform-as-product book

4 — Platform Adoption

Covers adoption strategy, removing friction from onboarding, building developer trust, and the continuous improvement loop that sustains adoption.

platform-engineering-fundamentals platform-as-product book

1 — Self-Service Platforms

Why self-service matters, what developer independence looks like in practice, and how service provisioning and self-service workflows get designed.

platform-engineering-fundamentals core-principles book

2 — Golden Paths

Defines golden paths, their benefits, what a standardized workflow looks like, and how to balance a golden path against the flexibility teams still need.

platform-engineering-fundamentals core-principles book

3 — Internal Developer Platforms (Introduction)

Introduces what an Internal Developer Platform is, its core components, the capabilities it exposes, and who its consumers are.

platform-engineering-fundamentals core-principles book

4 — APIs Everywhere

Covers API-first platform design across platform APIs, infrastructure APIs, and service APIs.

platform-engineering-fundamentals core-principles book

5 — Automation First

Covers eliminating manual operations through infrastructure automation, workflow automation, and event-driven automation.

platform-engineering-fundamentals core-principles book

6 — Standardization

Covers platform standards, engineering standards, reusable building blocks, and governance enforced through standardization.

platform-engineering-fundamentals core-principles book

7 — Opinionated Platforms

Why opinionated platforms outperform unopinionated ones — guardrails versus restrictions, sensible defaults, and convention over configuration.

platform-engineering-fundamentals core-principles book

1 — Abstraction

How abstraction hides complexity behind platform interfaces, and the layers of abstraction a platform typically exposes.

platform-engineering-fundamentals design-principles book

2 — Composability

Covers modular platform design, reusable building blocks, and composable services as a platform design principle.

platform-engineering-fundamentals design-principles book

3 — Scalability

Covers organizational and technical scalability, and how a platform is expected to grow with the organization it serves.

platform-engineering-fundamentals design-principles book

4 — Reliability by Design

Covers designing for failure, platform resilience, and the reliability principles a platform bakes in by default.

platform-engineering-fundamentals design-principles book

5 — Security by Default

Covers secure defaults, least privilege, and security built into the platform rather than bolted on afterward.

platform-engineering-fundamentals design-principles book

1 — Discover

Covers understanding user needs, platform research, identifying pain points, and defining success criteria before building anything.

platform-engineering-fundamentals lifecycle book

2 — Design

Covers platform vision, platform architecture, user experience design, and platform interface design.

platform-engineering-fundamentals lifecycle book

3 — Build

Covers delivering platform capabilities through automation, APIs, and platform components.

platform-engineering-fundamentals lifecycle book

4 — Operate

Covers day-2 operations, platform reliability, support models, and operational excellence.

platform-engineering-fundamentals lifecycle book

5 — Measure

Covers platform KPIs, adoption metrics, reliability metrics, and productivity metrics.

platform-engineering-fundamentals lifecycle book

6 — Improve

Covers feedback loops, product iteration, continuous improvement, and platform evolution.

platform-engineering-fundamentals lifecycle book

1 — Developer Productivity

Covers flow efficiency, lead time, deployment frequency, and time to first deployment as developer productivity signals.

platform-engineering-fundamentals measuring-success book

2 — DORA Metrics

Covers the four DORA metrics, their known limitations, and how to read them from a platform team's perspective.

platform-engineering-fundamentals measuring-success book

3 — SPACE Framework

Covers the SPACE framework's five dimensions — satisfaction, performance, activity, communication, and efficiency.

platform-engineering-fundamentals measuring-success book

4 — Platform KPIs

Covers platform-specific KPIs: platform adoption, self-service success rate, platform reliability, and operational efficiency.

platform-engineering-fundamentals measuring-success book

1 — Ticket-Driven Platforms

Why routing every platform request through a ticket queue defeats the self-service premise a platform is supposed to deliver.

platform-engineering-fundamentals anti-patterns book

2 — Platform as an Operations Team

Why a platform team that only reacts to operational tickets has become an ops team wearing a platform label.

platform-engineering-fundamentals anti-patterns book

3 — Building Technology Instead of Products

Why building infrastructure tooling without product discipline produces technology nobody adopts.

platform-engineering-fundamentals anti-patterns book

4 — Excessive Standardization

Why over-standardizing every workflow trades away the flexibility teams need to ship.

platform-engineering-fundamentals anti-patterns book

5 — Platform Monoliths

Why an unbounded, tightly-coupled platform becomes as hard to change as the monolith it replaced.

platform-engineering-fundamentals anti-patterns book

6 — Ignoring Developer Experience

Why treating developer experience as an afterthought quietly kills platform adoption.

platform-engineering-fundamentals anti-patterns book

7 — Low Platform Adoption

Diagnosing why a platform sees low adoption despite real investment, and what usually causes it.

platform-engineering-fundamentals anti-patterns book

1 — Scaling Platform Teams

Covers organizational growth, multi-team collaboration, and platform ownership models as a platform org scales.

platform-engineering-fundamentals enterprise book

2 — Platform Governance

Covers platform standards, policies, compliance, and the decision frameworks that govern a platform at enterprise scale.

platform-engineering-fundamentals enterprise book

3 — Platform Maturity Models

Covers the crawl/walk/run maturity stages and continuous evolution of a platform engineering practice.

platform-engineering-fundamentals enterprise book

4 — Building a Platform Engineering Culture

Covers engineering excellence, shared responsibility, continuous learning, and building platform communities.

platform-engineering-fundamentals enterprise book

1 — Platform Engineering Fundamentals Interview Questions

A working set of fundamentals-level platform engineering interview questions and how to structure the answers.

platform-engineering-fundamentals interview-prep book

2 — Architecture Trade-Off Discussions

Framing for architecture trade-off discussions specific to platform engineering interviews.

platform-engineering-fundamentals interview-prep book

3 — Platform Design Case Studies

Worked platform design case studies in the style MAANG system-design interviews expect.

platform-engineering-fundamentals interview-prep book

4 — Common Staff/Principal Platform Engineering Questions

Common Staff/Principal-level platform engineering interview questions and what differentiates a strong answer at that level.

platform-engineering-fundamentals interview-prep book

5 — Whiteboard Exercises

Whiteboard exercises for practicing platform design live, under interview conditions.

platform-engineering-fundamentals interview-prep book

6 — Platform Engineering Interview Cheat Sheet

A condensed cheat sheet for last-mile review before a platform engineering interview.

platform-engineering-fundamentals interview-prep book

1 — Platform Engineering Glossary

A glossary of platform engineering terminology used throughout this book.

platform-engineering-fundamentals appendices book

2 — Team Topologies Reference

A quick reference for the Team Topologies team types and interaction modes.

platform-engineering-fundamentals appendices book

3 — Platform Principles Cheat Sheet

A cheat sheet condensing this book's platform design principles into a single reference.

platform-engineering-fundamentals appendices book

4 — DORA & SPACE Metrics Quick Reference

A quick reference for the DORA metrics and SPACE framework dimensions covered in Part VII.

platform-engineering-fundamentals appendices book

5 — Platform Maturity Assessment

A self-assessment for gauging a platform's maturity stage.

platform-engineering-fundamentals appendices book

6 — Recommended Reading & Research Papers

Recommended reading and research papers for going deeper on platform engineering.

platform-engineering-fundamentals appendices book

Platform Engineering Fundamentals

A book-shaped table of contents for platform engineering fundamentals: evolution and organizational foundations, platform-as-a-product thinking, core principles (self-service, golden paths, automation, APIs), design principles, the platform lifecycle, DORA/SPACE metrics, anti-patterns, enterprise governance, and MAANG interview prep — cross-linking existing sre/patterns/observability/projects notes instead of duplicating them.

platform-engineering-fundamentals book reference maang-prep

Busy vs Effective

Busy signals motion; effective signals output that moves a real goal — and the two are trivially easy to confuse under a full calendar.

productivity effectiveness book

What Productivity Really Means

Reframing productivity as sustainable output toward goals that matter, not busyness — and why 'doing more' is the wrong optimization target for knowledge work.

productivity effectiveness book

Compounding Small Improvements

1% better compounds into a different order of magnitude over a year — the case for optimizing the system instead of waiting for a big unlock.

productivity effectiveness book

Systems Over Motivation

Why systems beat motivation as a source of durable output — motivation is a mood; a system runs on the days motivation doesn't show up.

productivity effectiveness book

3 — Measuring Personal Effectiveness

Choosing the few metrics that actually indicate sustainable, high-leverage output — an antidote to tracking hours or activity instead of results.

productivity effectiveness book

Attention Management

Attention as a separate, spendable resource from energy — where it leaks by default, and how to budget it deliberately.

productivity self-management book

Energy Management

Physical and mental energy as the actual constraint on a day's output — capacity fluctuates on a rhythm, not a flat 8-hour line.

productivity self-management book

Decision Fatigue

Every decision draws down the same finite pool of willpower — reducing trivial daily decisions protects capacity for the ones that matter.

productivity self-management book

Motivation and Momentum

Why the first small action matters more than the plan — momentum is generated by starting, not felt before it.

productivity self-management book

3 — Building Self-Discipline

Treating discipline as a finite, trainable resource shaped by environment design and identity rather than raw willpower.

productivity self-management book

Vision, Mission, and Values

The top of the goal-setting stack — a personal vision and set of values that every annual, quarterly, and weekly goal should trace back to without contradiction.

productivity goal-setting book

2 — Long-Term Career Planning

Working backward from a 5-10 year career target to the yearly milestones that make it a deliberate plan rather than an accident.

productivity goal-setting career book

Annual Goals

Setting a small number of annual goals that a quarter's worth of work can actually move, instead of a wishlist that resets every January.

productivity goal-setting book

Quarterly Planning

The 90-day unit most annual goals actually get executed in — short enough to stay honest, long enough to finish something real.

productivity goal-setting book

Daily Execution

The daily short list that turns a weekly plan into actual hours worked — small enough to finish, honest about what a day can hold.

productivity goal-setting book

Monthly Objectives

The connective layer between a quarterly goal and a weekly plan — the objective a given month needs to hit for the quarter to stay on track.

productivity goal-setting book

Weekly Planning

Turning a monthly objective into a concrete week — the single planning session most goal-setting systems live or die on.

productivity goal-setting book

5 — Measuring Progress

Leading vs. lagging indicators for goal progress, and why a goal without a measurable proxy quietly turns into a wish.

productivity goal-setting book

Calendar Management

Treating the calendar as a single source of truth and a scarce resource — default meeting lengths, protected blocks, and who gets to put something on it.

productivity time-management book

Time Blocking

Assigning every hour a job in advance so the calendar reflects priorities instead of whoever asked last.

productivity time-management book

Buffer Time

Deliberate unscheduled time that absorbs estimation error instead of letting it cascade into every downstream commitment.

productivity time-management book

Task Estimation

Why every estimate is a probability distribution, not a number — and the planning fallacy that makes the median case feel like the best case.

productivity time-management book

The Eisenhower Matrix

Sorting work by urgent vs. important instead of urgent vs. loud — the important-not-urgent quadrant is the one that actually needs a system.

productivity time-management book

Prioritization Frameworks

A small toolkit of frameworks for ranking work when everything can't be first — of which the Eisenhower Matrix is one specific instance.

productivity time-management book

Pareto Principle (80/20)

Why roughly 80% of outcomes trace back to about 20% of effort, and what that implies for where to cut instead of where to optimize.

productivity time-management book

Parkinson's Law

Work expands to fill the time allotted to it — which argues for tighter deadlines and smaller time boxes, not more time to do it right.

productivity time-management book

5 — Managing Interruptions

Separating interruptions worth an immediate context switch from ones that should queue, and pricing in the recovery cost of every switch either way.

productivity time-management book

Context Switching

The attention-residue cost of every switch between tasks — a 5-minute interruption rarely costs 5 minutes.

productivity deep-work book

Eliminating Distractions

Removing a distraction's access before a work session starts, since willpower rarely wins a real-time fight against a notification.

productivity deep-work book

Focus Fundamentals

The baseline conditions — environment, single task, a defined stop condition — that make sustained focus possible at all.

productivity deep-work book

Deep Work Sessions

Scheduling extended, distraction-free blocks for cognitively demanding work as a deliberate practice, not an accident of a quiet afternoon.

productivity deep-work book

Flow State

The conditions — clear goal, immediate feedback, a challenge matched to skill — under which sustained focus turns into flow.

productivity deep-work book

Digital Minimalism

Deliberately curating which tools and apps earn a place in a working day, instead of accumulating them by default.

productivity deep-work book

Monotasking

Multitasking is mostly rapid task-switching with a throughput tax — monotasking is the default that protects deep work.

productivity deep-work book

PARA Method

Organizing a second brain by actionability — Projects, Areas, Resources, Archives — instead of by topic, so structure doesn't need to be redecided constantly.

productivity pkm book

Second Brain

Externalizing capture and organization into a trusted system so working memory is freed for actual thinking.

productivity pkm book

Atomic Notes

One idea per note, written to stand alone — the unit a Zettelkasten actually links, not a folder-nested outline.

productivity pkm book

Evergreen Notes

A note that keeps getting rewritten and refined as understanding grows, instead of staying a dated log entry frozen at capture time.

productivity pkm book

Zettelkasten

A densely linked slip-box of notes where structure and new ideas emerge from the network of connections instead of being decided upfront.

productivity pkm book

3 — Progressive Summarization

Layering highlights and bolding over multiple passes so a note's most useful parts surface without re-reading the whole thing.

productivity pkm book

Building Knowledge Graphs

Turning atomic notes into a retrievable network through deliberate cross-linking — the same [[wikilink]] and backlink mechanics this wiki runs on.

productivity pkm book

Knowledge Retrieval

A note that can't be found when needed has the same value as a note that was never written — search, tags, and links as the retrieval layer.

productivity pkm book

5 — Reviewing Knowledge

A deliberate resurfacing cadence for captured notes, separate from spaced repetition of facts, that keeps a growing knowledge base connected instead of write-only.

productivity pkm book

1 — Learning How to Learn

The meta-skill underneath every technique in this Part: diagnosing what kind of learning a topic actually requires before picking a method for it.

productivity learning book

Active Recall

Retrieving information from memory instead of re-reading it — the single highest-leverage substitution in most study routines.

productivity learning book

Deliberate Practice

Practicing at the edge of current ability with immediate feedback — the specific structure that separates deliberate practice from mere repetition.

productivity learning book

Feynman Technique

Explaining a concept in plain language to find the exact spot understanding breaks down — the gap is the actual study target.

productivity learning book

Interleaving

Mixing related topics or problem types in one session instead of blocking them, forcing real discrimination instead of pattern-matching on order.

productivity learning book

Spaced Repetition

Reviewing material at increasing intervals timed to the forgetting curve, so review effort concentrates on what's about to be forgotten.

productivity learning book

4 — Mental Models

A working library of cross-domain frameworks for reasoning about unfamiliar problems faster — see Philosophy for the dedicated catalog this book draws on.

productivity learning book

5 — Reading Technical Books

Reading dense technical material for retention and application rather than page-count completion.

productivity learning book

6 — Research Skills

Efficiently going from an unfamiliar topic to a working understanding — source triage, targeted questions, and knowing when to stop reading and start doing.

productivity learning book

Capturing Everything

Getting every open loop out of your head and into one trusted system — the discipline underneath every task-management method that works.

productivity task-management book

Inbox Zero

The processing discipline — not the folder structure — that actually keeps an inbox at zero: every item gets a decision, not a re-read.

productivity task-management book

2 — GTD (Getting Things Done)

Getting Things Done as a closed-loop system: capture, clarify, organize, reflect, engage — the reference implementation most personal task systems borrow from.

productivity task-management book

Kanban for Personal Work

Visualizing personal work as a flow across columns with WIP limits, so the amount of work-in-progress becomes visible instead of implicit.

productivity task-management book

Managing Backlogs

A backlog is a parking lot, not a to-do list — the triage cadence that keeps it from becoming a second, guiltier inbox.

productivity task-management book

Personal Sprints

Borrowing a fixed-length commitment cycle from team agile practice for solo work, with a lightweight review at the end of each one.

productivity task-management book

4 — Managing Multiple Projects

Portfolio-level task management once GTD and Kanban aren't enough on their own — sequencing, WIP limits, and weekly triage across concurrent projects.

productivity task-management book

Expected Value

Weighing a decision by probability-weighted outcomes rather than gut feel or the most vivid scenario alone.

productivity decision-making book

First Principles Thinking

Reasoning up from fundamentals instead of by analogy to what's already been done — slower, and the only way to beat a locally-optimized status quo.

productivity decision-making book

Opportunity Cost

What a choice actually costs is the next-best option it forecloses, not just the resources it visibly consumes.

productivity decision-making book

2 — Reversible vs Irreversible Decisions

The one-way-door / two-way-door distinction — why irreversible decisions deserve deliberate slowness and reversible ones deserve speed, and conflating the two wastes both.

productivity decision-making book

3 — Avoiding Cognitive Biases

The recurring judgment errors most likely to distort an engineering or career decision — see Philosophy for the full bias catalog this chapter draws on.

productivity decision-making book

Habit Stacking

Anchoring a new habit to an existing routine so the trigger is already reliably in place, instead of relying on remembering.

productivity habits book

Identity-Based Habits

Framing a habit around the kind of person you're becoming rather than the outcome alone — identity survives a missed day; outcome-only motivation often doesn't.

productivity habits book

Breaking Bad Habits

Inverting the habit loop — making the cue invisible, the response unattractive, or friction high enough — to dismantle a behavior deliberately.

productivity habits book

Consistency Systems

The streak and accountability mechanisms that keep a new habit alive past the initial burst of motivation.

productivity habits book

4 — Environment Design

Shaping the physical and digital environment so the desired behavior is the path of least resistance, and the unwanted one requires deliberate effort.

productivity habits book

Email Management

Batch-processing email at set times instead of live-triaging it all day, with a small number of fixed outcomes per message.

productivity digital-productivity book

Meeting Management

Defaulting to no-meeting unless a decision genuinely requires synchronous time, and running the ones that remain with an agenda and an owner.

productivity digital-productivity book

Chat Applications

Treating Slack and Teams as async-by-default communication, with response-time expectations set explicitly instead of assumed.

productivity digital-productivity book

Notification Management

Configuring notifications so interruption is opt-in per channel or person, instead of a constant ambient pull on attention.

productivity digital-productivity book

Automation

The small, recurring, mechanical tasks worth scripting away entirely — the return on a day spent automating a five-minute weekly chore.

productivity digital-productivity automation book

File Organization

A file and folder scheme simple enough to survive six months of not thinking about it, built around retrieval, not categorization purity.

productivity digital-productivity automation book

4 — AI as a Productivity Partner

Where an LLM agent genuinely removes work — drafting, triage, research synthesis — versus where it just adds a review step; see Agentic AI for the specific tools this book leans on.

productivity digital-productivity ai book

1 — Managing Technical Debt

Treating technical debt as a deliberate, tracked trade-off made consciously — not an accident discovered during an incident. See System Design's Technical Debt Management for the architecture-level treatment.

productivity engineering book

2 — Developer Workflows

The local dev loop — build, test, review — as a productivity surface in its own right, worth deliberately tuning rather than accepting as fixed.

productivity engineering book

Documentation Systems

Writing documentation that survives the person who wrote it leaving the project — the difference between a doc that gets maintained and one that quietly rots.

productivity engineering book

Personal Architecture Decision Records

Adapting the ADR format — context, decision, alternatives, consequences — to personal and career decisions, not just system architecture.

productivity engineering book

Debugging Efficiently

A general-purpose approach to root-causing an unfamiliar problem — narrowing scope, forming falsifiable hypotheses, and knowing when to stop digging and ask for help.

productivity engineering book

Research Workflows

The information-gathering loop underneath debugging and design work — source triage, spike time-boxing, and converting findings into a written artifact.

productivity engineering book

5 — Managing Large Learning Backlogs

Keeping a large backlog of things-to-learn from turning into background guilt — triage rules for a reading list that will never hit zero.

productivity engineering book

6 — Knowledge Sharing

Writing once and pointing people at it — internal docs, runbooks, and public posts as the same underlying habit of converting solved problems into reusable artifacts.

productivity engineering book

Building Career Capital

Building rare and valuable skills before chasing passion — the asset that actually buys career flexibility later.

productivity career-productivity book

Portfolio Building

Compounding visible proof of skill — writing, OSS, a portfolio site — into leverage for the next role, instead of leaving it undocumented.

productivity career-productivity book

Building Your Personal Brand

A consistent public presence anchored to real work, so opportunities arrive inbound instead of requiring cold outreach every time.

productivity career-productivity book

Networking Systems

Treating professional relationships as a maintained system — a standing cadence, not a burst of activity right before a job search.

productivity career-productivity book

3 — Interview Preparation Systems

The tracking and cadence layer around interview prep — see System Design and Data Structures & Algorithms for the curriculum itself, which this book points to rather than duplicates.

productivity career-productivity book

4 — Continuous Skill Development

Budgeting deliberate time for skills that won't pay off for a year against the constant pull of work that pays off this week.

productivity career-productivity book

Recovery Systems

Deliberate recovery — deload periods, true days off, active rest — as an engineered input to sustained output, not something that only happens by accident.

productivity health book

Sleep

Sleep as the highest-leverage recovery input, and the consistency habits (schedule, light, wind-down) that protect it more than any single trick.

productivity health book

2 — Nutrition

Eating patterns that keep energy and focus stable across a working day, instead of optimizing for a metric unrelated to cognitive output.

productivity health book

Exercise

Regular movement as a direct input to cognitive performance and mood regulation, not a separate line item competing with work hours.

productivity health book

Stress Management

Distinguishing acute stress that sharpens performance from chronic stress that erodes it, and the deliberate practices that keep it in the first category.

productivity health book

4 — Preventing Burnout

The early warning signs of burnout and the load-management habits that catch it before it forces a much larger correction.

productivity health book

Annual Reflection

The once-a-year zoom-out — across all four quarters — that a quarterly review alone is too close to the ground to see.

productivity reviews book

Quarterly Review

A strategic checkpoint one level above the weekly review — did the quarter's goals actually move, and what should change next quarter.

productivity reviews book

3 — Continuous Improvement Framework

Closing the loop across daily, weekly, monthly, quarterly, and annual reviews into one coherent feedback system instead of five disconnected habits.

productivity reviews book

1 — Systems Thinking

Seeing a problem as a set of interacting parts and feedback loops instead of an isolated cause and effect — see Philosophy for the dedicated treatment this book leans on throughout.

productivity advanced book

Delegation

Handing off work deliberately — with clear outcomes and real trust — as the lever that scales beyond what leverage and automation alone can reach.

productivity advanced book

Leverage and Automation

Code and systems leverage as the multiplier that lets one hour of work produce many hours of output — the first lever to reach for before delegation.

productivity advanced book

Operating Principles

The small set of standing rules — default-yes vs. default-no, what always gets time-blocked — that keep a personal system consistent without re-deciding daily.

productivity advanced book

Personal Dashboards

A single-glance view of the handful of numbers that indicate the system is on track, so drift is visible before a quarterly review catches it.

productivity advanced book

4 — Designing Your Personal Operating System

Assembling every prior Part into one coherent, versioned system for running your own work — the capstone chapter of this book.

productivity advanced book

Productivity for Knowledge Workers

A book-shaped table of contents for productivity as practiced by a knowledge worker: foundations, self-management, goal setting, time and deep work, personal knowledge management, learning, task systems, decision making, habits, digital productivity, engineering and career practice, health, review, and an advanced operating-system layer, plus reference appendices — cross-linking existing notes instead of duplicating them.

productivity book reference maang-prep

1 — What is Site Reliability Engineering?

What SRE actually is when you strip away the Google mythology — applying software engineering discipline to operations problems, with error budgets as the mechanism that makes reliability a measurable, negotiable trade-off instead of an absolute.

sre foundations book

2 — History of SRE (Google and Beyond)

How Ben Treynor's 2003 Google team turned an operations headcount problem into a discipline, and how the practice diverged as Amazon, Microsoft, Meta, and Netflix each adapted it to their own org shape.

sre foundations book

3 — DevOps vs SRE vs Platform Engineering

Three overlapping answers to the same organizational question — who owns production — and where each discipline's boundary actually sits when a service crosses it.

sre foundations book

4 — Reliability as an Engineering Discipline

Why reliability has to be designed and budgeted like a feature, not bolted on afterward as an operations concern.

sre foundations book

5 — Service Lifecycle

The stages a service moves through from design to deprecation, and the reliability gate that should exist at every transition.

sre foundations book

6 — Production Readiness Reviews

The structured checklist that turns 'is this ready for production' from a gut call into a repeatable, auditable gate before a service takes real traffic.

sre foundations book

7 — Reliability Engineering Mindset

The shift from reactive firefighting to designing for known failure modes — probabilistic thinking about what will break, not just how to react when it does.

sre foundations book

8 — Shared Ownership Model

Why 'you build it, you run it' only works with a real ownership contract behind it — the engagement model, escalation path, and toil ceiling that keep shared ownership from silently becoming SRE-owns-everything.

sre foundations book

9 — Cost, Reliability and Velocity Trade-offs

The three-way trade-off underneath almost every reliability decision, and why optimizing any one of cost, reliability, or shipping velocity in isolation breaks the other two.

sre foundations book

1 — Linux Internals Every SRE Must Know

The kernel-level mental model — syscalls, the VFS, the scheduler — that turns 'the server is slow' from a guess into a diagnosable claim.

sre linux-networking-os book

10 — gRPC

Why internal service-to-service calls increasingly run on gRPC instead of REST, and the deadline propagation and streaming semantics that change how you debug a slow call chain.

sre linux-networking-os book

11 — TLS and Certificates

The handshake, cipher negotiation, and certificate chain validation that fail silently until an expiry takes down a service nobody remembered depended on it.

sre linux-networking-os book

12 — Load Balancers

L4 vs L7 load balancing, health check design, and why a load balancer's own failure mode is often the single biggest blast radius in the stack.

sre linux-networking-os book

13 — Reverse Proxies

What a reverse proxy actually buys you — TLS termination, routing, buffering — and the latency and failure modes it adds in exchange.

sre linux-networking-os book

14 — CDNs

Cache hit ratio as a reliability metric, not just a cost one, and what happens to origin load the moment a CDN's cache goes cold.

sre linux-networking-os book

15 — Linux Troubleshooting

The strace/perf//proc-level toolkit for answering 'why is this box actually doing that' when the metrics dashboard has run out of answers.

sre linux-networking-os book

2 — Processes, Threads and Scheduling

How the Linux scheduler decides what runs next, and why CPU throttling in a container often has nothing to do with raw CPU usage.

sre linux-networking-os book

3 — Memory Management

Virtual memory, paging, and the OOM killer — why 'out of memory' in Kubernetes is rarely about the number top reports.

sre linux-networking-os book

4 — Filesystems and Storage

How filesystems, page cache, and I/O schedulers interact to turn a disk-bound service's latency graph into something explainable.

sre linux-networking-os book

5 — TCP/IP Deep Dive

How TCP's handshake, flow control, and congestion control actually behave under production load, and what that means when 'the network is slow' shows up in an incident.

sre linux-networking-os book

6 — DNS

Why DNS is the failure mode that takes down services that have nothing to do with DNS, and the resolution chain an SRE needs to trace under pressure.

sre linux-networking-os book

7 — HTTP/1.1

The request/response semantics, keep-alive, and head-of-line blocking behavior that still underpin most production traffic today.

sre linux-networking-os book

8 — HTTP/2

Multiplexing, stream prioritization, and header compression — what HTTP/2 actually fixed from HTTP/1.1, and the new failure modes it introduced.

sre linux-networking-os book

9 — HTTP/3

Why HTTP/3 moved off TCP entirely, and what QUIC changes about how connection loss and retransmission show up in your latency metrics.

sre linux-networking-os book

1 — CAP Theorem

Why every distributed system is already choosing between consistency and availability during a partition, whether or not the team ever wrote that choice down.

sre distributed-systems book

10 — Distributed Caching

Cache invalidation, consistency, and the thundering-herd failure mode that turns a cache miss into a cascading origin outage.

sre distributed-systems book

11 — Service Discovery

How a service finds a healthy instance of its dependency at runtime, and what happens to that discovery layer's own reliability under churn.

sre distributed-systems book

12 — API Gateways

Centralizing auth, rate limiting, and routing at the edge — and the single point of blast radius that centralization creates in exchange.

sre distributed-systems book

13 — Message Brokers

At-least-once vs. exactly-once delivery, backpressure, and why the broker's own durability guarantees are usually the real SLA you're depending on.

sre distributed-systems book

14 — Event-Driven Architectures

The reliability trade-offs of decoupling services through events — replay, ordering, and the debugging cost of a causal chain with no single call stack.

sre distributed-systems book

2 — Consensus Algorithms

The problem every consensus algorithm is solving — getting a set of unreliable nodes to agree on one value — and why it's harder than it sounds.

sre distributed-systems book

3 — Raft

Leader election, log replication, and the safety guarantees Raft trades for being easier to reason about than Paxos.

sre distributed-systems book

4 — Paxos

The original consensus protocol, why it's notoriously hard to implement correctly, and where it still shows up under the hood of production systems.

sre distributed-systems book

5 — Distributed Transactions

Two-phase commit, saga patterns, and why 'just wrap it in a transaction' stops being an option the moment a write crosses a service boundary.

sre distributed-systems book

6 — Eventual Consistency

What you're actually promising a caller when a system is 'eventually consistent,' and the read-your-own-writes gaps that turn into support tickets.

sre distributed-systems book

7 — Leader Election

How a cluster picks a single coordinator without a coordinator, and the split-brain failure mode that shows up when the election protocol itself degrades.

sre distributed-systems book

8 — Distributed Locks

Why a distributed lock is a liveness and safety trade-off, not a free primitive, and the fencing tokens that keep a stale lock holder from corrupting state.

sre distributed-systems book

9 — Time Synchronization

Clock skew, NTP, and why 'just use timestamps to order events' quietly breaks in any system spanning more than one machine.

sre distributed-systems book

1 — Virtual Machines

The hypervisor-level isolation and resource accounting that containers still inherit assumptions from, and where VM-level failure domains differ from container ones.

sre cloud-infrastructure book

10 — Multi-Region Deployments

Active-active vs. active-passive across regions, and the data-replication latency that ultimately caps how 'active' active-active can really be.

sre cloud-infrastructure book

11 — Infrastructure as Code

Why declarative infra state, not scripts, is what makes an environment reproducible — and the drift between declared and actual state that erodes that guarantee over time.

sre cloud-infrastructure book

12 — Immutable Infrastructure

Replacing instead of patching running infrastructure, and why it turns configuration drift from a chronic failure mode into one that mostly can't happen.

sre cloud-infrastructure book

13 — GitOps

Git as the single source of truth for cluster state, and the reconciliation loop that makes 'what's actually running' a query instead of a guess.

sre cloud-infrastructure book

14 — Configuration Management

Where config lives, how it's validated before rollout, and why a bad config push is still one of the most common root causes of a full-severity incident.

sre cloud-infrastructure book

2 — Containers

Namespaces and cgroups as the actual mechanism behind 'containers,' and why a container's reliability characteristics are really the host kernel's.

sre cloud-infrastructure book

3 — Kubernetes Fundamentals

The control-plane/data-plane split and reconciliation-loop model that everything else in Kubernetes — scheduling, networking, storage — is built on top of.

sre cloud-infrastructure book

4 — Kubernetes Scheduling

How the scheduler turns resource requests, affinity rules, and taints into a placement decision, and why a 'Pending' pod is almost always a scheduling constraint, not a mystery.

sre cloud-infrastructure book

5 — Networking in Kubernetes

The CNI, Service, and kube-proxy layers that turn a flat pod network into something with DNS names, load balancing, and — inevitably — new failure modes.

sre cloud-infrastructure book

6 — Storage in Kubernetes

PersistentVolumes, StorageClasses, and the CSI driver layer, and why stateful workloads are still the hardest thing to run reliably on Kubernetes.

sre cloud-infrastructure book

7 — High Availability Clusters

Multi-master control planes, etcd quorum, and the failure domains that determine whether a single zone outage takes the whole cluster with it.

sre cloud-infrastructure book

8 — Autoscaling

HPA, VPA, and cluster autoscaling, and why autoscaling on the wrong signal turns a capacity problem into a cascading one instead of solving it.

sre cloud-infrastructure book

9 — Multi-Cluster Architectures

Why teams split a single Kubernetes footprint into multiple clusters — blast radius, compliance, scale limits — and the fleet-management cost that decision buys.

sre cloud-infrastructure book

1 — Reliability Principles

The handful of first-principles ideas — redundancy, graceful degradation, known failure modes — that every other chapter in this Part is a specific application of.

sre reliability-engineering book

10 — Failure Domains

Drawing the boundary around 'what breaks together' — AZ, region, tenant, deploy group — so a single fault has a bounded, known blast radius instead of an open-ended one.

sre reliability-engineering book

11 — Redundancy Patterns

Active-active, active-passive, and N+1 redundancy, and the trade-off each makes between failover speed, cost, and the complexity of keeping replicas actually consistent.

sre reliability-engineering book

12 — Graceful Degradation

Designing a system to shed non-critical functionality under stress instead of failing completely — and deciding in advance what's non-critical.

sre reliability-engineering book

13 — Backpressure

The signal a slow consumer sends a fast producer to prevent unbounded queue growth, and why a system without backpressure fails by silently falling further behind until it doesn't.

sre reliability-engineering book

14 — Queue Management

Queue depth as a leading indicator of saturation, and the policies — bounded queues, priority lanes, dead-letter handling — that keep a backlog from becoming the outage.

sre reliability-engineering book

15 — Load Shedding

Deliberately rejecting a fraction of requests to protect the system's ability to serve the rest, and the prioritization logic that decides which fraction.

sre reliability-engineering book

16 — Circuit Breakers

Failing fast instead of piling up timeouts against a dependency that's already down, and the half-open state that decides when it's safe to try again.

sre reliability-engineering book

17 — Retry Strategies

Exponential backoff and jitter as the difference between a retry storm that takes down a recovering dependency and one that lets it heal.

sre reliability-engineering book

18 — Timeouts

Why every network call needs an explicit timeout budget, and how an unset or mismatched timeout turns one slow dependency into a resource leak upstream.

sre reliability-engineering book

19 — Bulkheads

Partitioning resources — thread pools, connection pools — per dependency so one slow downstream can't exhaust the resources every other call path also needs.

sre reliability-engineering book

2 — Service Level Indicators (SLIs)

Picking the metric that actually reflects user-perceived reliability, and why the wrong SLI makes every SLO built on top of it meaningless.

sre reliability-engineering book

20 — Idempotency

Designing an operation so a retry is safe by construction, which is what actually makes retries, at-least-once delivery, and failover recoverable instead of dangerous.

sre reliability-engineering book

3 — Service Level Objectives (SLOs)

Turning an SLI into a target with a time window, and why the window you choose changes what 'reliable' even means operationally.

sre reliability-engineering book

4 — Error Budgets

The spendable resource an SLO creates, and how a burned error budget becomes an organizational decision — freezing launches — instead of just another alert.

sre reliability-engineering book

5 — Availability Engineering

What 'three nines' actually costs to achieve, and why each additional nine is an order-of-magnitude harder engineering and financial commitment than the last.

sre reliability-engineering book

6 — Latency Engineering

Why tail latency (p99, p99.9), not the average, is what determines whether users actually experience a service as fast.

sre reliability-engineering book

7 — Capacity Planning

Forecasting demand ahead of the traffic that would otherwise turn a capacity gap into an incident, and the headroom math that makes the forecast survivable.

sre reliability-engineering book

8 — Scalability Engineering

Designing a system so growth is a capacity-planning exercise, not a rewrite — and knowing which scaling axis (vertical, horizontal, functional) actually fixes the bottleneck you have.

sre reliability-engineering book

9 — Reliability Modeling

Quantifying failure probability across a system's dependency graph before it fails, using the same math that predicts hardware MTBF applied to services.

sre reliability-engineering book

1 — Observability Foundations

The distinction between monitoring known failure modes and observability — being able to ask new questions of a system you didn't instrument in advance for that exact question.

sre observability-engineering book

10 — Grafana

Turning raw telemetry into a dashboard that actually answers 'is this system healthy' at a glance instead of requiring someone to already know what's wrong.

sre observability-engineering book

11 — Loki

Index-light, label-based log aggregation built to pair with Prometheus's label model — and the trade-off it makes against full-text search to get there.

sre observability-engineering book

12 — Tempo

Object-storage-backed trace storage designed for the exemplar-driven workflow — jump from a metric spike straight to the trace that explains it.

sre observability-engineering book

13 — Alerting Philosophy

Alerting on symptoms a human needs to act on right now, not on every cause — the design discipline that determines whether on-call trusts the pager.

sre observability-engineering book

14 — Alert Fatigue

How a noisy alerting system trains engineers to ignore the pager, and why that's a more dangerous failure mode than having no alerting at all.

sre observability-engineering book

15 — Dashboard Design

The three-question test for a vanity panel, and the top-down layout that mirrors how an actual investigation drills down from symptom to cause.

sre observability-engineering book

16 — High-Cardinality Metrics

Why an unbounded label — user ID, request ID, raw URL — turns a cheap metric into a production incident for the observability pipeline itself.

sre observability-engineering book

17 — Sampling Strategies

Head vs. tail sampling for traces, and how to keep the interesting 1% — errors, outliers — without paying to store 100% of uninteresting requests.

sre observability-engineering book

18 — Cost Optimization

Ingest volume, retention, and cardinality as the three levers that actually control an observability bill, and the FinOps discipline of tuning them without losing signal.

sre observability-engineering book

2 — Telemetry Signals

Metrics, logs, and traces as three different projections of the same underlying system behavior, and why you need more than one to actually diagnose most incidents.

sre observability-engineering book

3 — Metrics

Counters, gauges, and histograms as the aggregate signal — cheap at scale, but only as useful as the cardinality budget and label schema behind them.

sre observability-engineering book

4 — Logs

The highest-cardinality, highest-detail signal, and the structured-logging discipline that determines whether logs are searchable evidence or just noise at 2am.

sre observability-engineering book

5 — Distributed Tracing

Following a single request across every service it touches, and why trace context propagation is the one piece of plumbing the rest of tracing quietly depends on.

sre observability-engineering book

6 — OpenTelemetry

The vendor-neutral instrumentation standard that decouples how you emit telemetry from where it ends up, and why that's the whole point.

sre observability-engineering book

7 — Context Propagation

How trace and baggage context survives a hop across a network boundary, a queue, or an async job — and everywhere that propagation silently breaks.

sre observability-engineering book

8 — Instrumentation Strategies

Deciding what to instrument, at what cardinality, before you write the code — because retrofitting observability into an incident you're already in is the expensive way to learn this.

sre observability-engineering book

9 — Prometheus

Pull-based scraping, the metric data model, and the local-storage limits that are exactly why Prometheus federates or remote-writes at any real scale.

sre observability-engineering book

1 — Incident Response Lifecycle

Detect, triage, mitigate, resolve, review — the phases every incident moves through, and why skipping the review phase is how the same incident happens twice.

sre incident-management book

10 — Blameless Postmortems

Why a blameless structure is what makes Five Whys produce an honest systemic answer instead of a defensive, cover-yourself one.

sre incident-management book

11 — Communication During Incidents

Status page updates, stakeholder comms, and internal channel discipline — the incident-adjacent work that determines how the outage is remembered as much as the fix does.

sre incident-management book

12 — Chaos Engineering

Deliberately injecting failure in a controlled experiment to validate the failure modes a design only claims to handle, before production finds them for you.

sre incident-management book

13 — Game Days

Scheduled, team-wide incident simulations that build on-call muscle memory and test the runbooks nobody's had to actually use yet.

sre incident-management book

2 — Severity Classification

The objective criteria that decide how big a response an incident gets, so severity is a judgment call made once, consistently, not renegotiated mid-incident.

sre incident-management book

3 — Incident Command System

The role structure — commander, comms lead, ops lead — that keeps a live incident from collapsing onto one overloaded engineer trying to do everything at once.

sre incident-management book

4 — On-call Engineering

Designing the rotation and escalation policy itself as an engineering problem, not just a schedule — the discipline distinct from the day-to-day on-call handbook.

sre incident-management book

5 — Escalation Policies

What happens when the first responder doesn't acknowledge in time, and the escalation chain that has to be correct precisely when everyone is least likely to check it.

sre incident-management book

6 — Runbooks

Step-by-step operational procedures written before the incident, so 3am execution doesn't depend on anyone's memory of how a system behaves under stress.

sre incident-management book

7 — Playbooks

Decision trees for ambiguous or novel incidents, one level up from a runbook's fixed steps — how to reason through a failure mode nobody's documented yet.

sre incident-management book

8 — Root Cause Analysis

Moving past 'a bad deploy caused it' to the systemic condition that let a bad deploy reach production undetected in the first place.

sre incident-management book

9 — Five Whys

The simplest RCA technique that works — repeatedly asking why until you hit a structural cause — and where it breaks down on genuinely multi-causal incidents.

sre incident-management book

1 — Performance Fundamentals

Latency, throughput, and utilization as the three numbers that describe any system's performance — and why optimizing one in isolation usually degrades another.

sre performance-engineering book

10 — Soak Testing

Running sustained load over hours or days to surface the failure modes — memory leaks, connection exhaustion, log disk fill — that only appear over time.

sre performance-engineering book

11 — Capacity Testing

Finding the actual ceiling of a system's current configuration, which is the number capacity planning is supposed to be forecasting against.

sre performance-engineering book

12 — Performance Bottlenecks

Why a system's bottleneck moves once you fix the current one, and the systematic method for finding the next constraint instead of chasing symptoms.

sre performance-engineering book

13 — Performance Optimization

Measure first, optimize the actual bottleneck, measure again — the discipline that keeps performance work from becoming expensive, unmeasured guesswork.

sre performance-engineering book

2 — CPU Profiling

Sampling vs. instrumenting profilers, and reading a flame graph to find the function actually burning cycles instead of guessing from intuition.

sre performance-engineering book

3 — Memory Profiling

Heap growth, allocation patterns, and the leak-hunting workflow for the class of bug that only shows up as a slow, inevitable OOM hours into a service's uptime.

sre performance-engineering book

4 — Disk Performance

IOPS, throughput, and queue depth as the metrics that separate a genuinely disk-bound service from one that just looks that way in a dashboard.

sre performance-engineering book

5 — Network Performance

Bandwidth, latency, and packet loss as distinct failure signatures, and the tools that tell you which one is actually behind a 'the network is slow' report.

sre performance-engineering book

6 — Benchmarking

Designing a benchmark that measures what production actually does, not what's convenient to measure — and the methodology gaps that make most benchmarks lie.

sre performance-engineering book

7 — Load Testing

Validating a system behaves correctly at expected peak traffic, and the difference between a load test that proves capacity and one that just proves the test ran.

sre performance-engineering book

8 — Stress Testing

Pushing a system past its expected limits to find where and how it breaks — the failure mode, not just the breaking point, is the actual finding.

sre performance-engineering book

9 — Spike Testing

Testing a system's response to sudden, extreme traffic jumps — the autoscaling lag and cold-start behavior that a gradual ramp-up test never exposes.

sre performance-engineering book

1 — Continuous Integration

Merging and testing changes continuously so integration problems surface in minutes, not in the multi-day merge conflict that used to be normal.

sre cicd-release book

10 — Supply Chain Security

SBOMs, artifact signing, and provenance attestation — verifying what's actually being deployed is what was actually built, not something injected in between.

sre cicd-release book

2 — Continuous Delivery

Keeping every merged change in a deployable state, which is the precondition every other release-engineering practice in this Part builds on.

sre cicd-release book

3 — Deployment Strategies

The spectrum from all-at-once to fully progressive rollout, and the blast-radius-vs-speed trade-off each point on that spectrum makes.

sre cicd-release book

4 — Blue-Green Deployments

Running two full production environments and switching traffic between them atomically — instant rollback, at the cost of running double the infrastructure.

sre cicd-release book

5 — Canary Releases

Shipping a change to a small traffic slice first and watching its SLIs before a full rollout — the deployment strategy error budgets were built to gate.

sre cicd-release book

6 — Feature Flags

Decoupling deploy from release so a bad feature can be turned off in seconds instead of requiring a rollback — and the flag-debt that accumulates if they're never cleaned up.

sre cicd-release book

7 — Progressive Delivery

Combining canaries, feature flags, and automated analysis into a single rollout pipeline that promotes or rolls back on its own based on live SLI data.

sre cicd-release book

8 — Rollbacks

Why 'roll back' has to be a tested, fast, boring operation — the incident-response tool you only find out is broken during the incident where you need it.

sre cicd-release book

9 — Release Automation

Removing the manual, error-prone steps from a release so the process is identical — and equally safe — at 2pm on a Tuesday and 2am during an incident.

sre cicd-release book

1 — Identity and Access Management

Who can do what, to which system, and how that access is granted, reviewed, and revoked — the control plane every other security chapter in this Part depends on.

sre security book

10 — Business Continuity

The organizational plan for keeping the business running through a disaster, of which technical disaster recovery is only one component.

sre security book

2 — Secrets Management

Why a secret hardcoded in a config file or env var is a standing incident waiting for a git history search, and the vault-backed rotation that closes that gap.

sre security book

3 — Zero Trust

Verifying every request regardless of network origin, on the assumption the perimeter is already compromised — and what that means for how services actually authenticate to each other.

sre security book

4 — Network Security

Segmentation, firewalling, and the assumption that lateral movement is possible the moment any single node is compromised.

sre security book

5 — Kubernetes Security

RBAC, pod security standards, and network policies — the layers that keep a compromised container from becoming a compromised cluster.

sre security book

6 — Runtime Security

Detecting anomalous behavior in a running workload — the security signal that exists only after static scanning and admission control have already passed.

sre security book

7 — Incident Response for Security

Why a security incident's containment-first response differs from a reliability incident's restore-service-first one, and where the two response models collide.

sre security book

8 — Compliance

Where audit and regulatory obligations intersect with the reliability practice — access logs, retention policies, and the postmortem review process itself.

sre security book

9 — Disaster Recovery

RTO and RPO as the two numbers that actually define a DR plan, and the difference between a plan that exists on paper and one that's been tested.

sre security book

1 — Relational Databases

ACID guarantees, transaction isolation levels, and the reliability characteristics an SRE inherits the moment a service depends on one.

sre data-systems book

2 — NoSQL Systems

The consistency, availability, and schema trade-offs different NoSQL models make, and why 'NoSQL' is really a dozen different reliability postures wearing one name.

sre data-systems book

3 — Distributed Databases

How a database spreads data and consensus across nodes, and the CAP-theorem trade-off it's making on your behalf whether or not that's documented.

sre data-systems book

4 — Replication

Synchronous vs. asynchronous replication, and the replication-lag failure mode that turns a 'read your own write' assumption into an intermittent bug report.

sre data-systems book

5 — Sharding

Partitioning data across nodes to scale past a single machine's limits, and the resharding operation that's usually the actual hard part.

sre data-systems book

6 — Backup Strategies

Full, incremental, and snapshot backups, and the retention policy that has to balance recovery granularity against storage cost.

sre data-systems book

7 — Recovery Strategies

Restoring from a backup is the easy half — validating the restored data is actually correct and current is the half most recovery plans skip until it matters.

sre data-systems book

8 — Data Reliability

Durability, consistency, and corruption detection as their own reliability discipline, distinct from the service-availability SLOs the rest of this book focuses on.

sre data-systems book

1 — Platform Engineering Fundamentals

Building the internal platform other teams build on, which changes the job from operating one service to operating the thing every service depends on.

sre platform-engineering book

2 — Internal Developer Platforms

The self-service layer that turns 'file a ticket and wait' into 'click a button and get a compliant environment' — and the golden-path opinions that make that safe.

sre platform-engineering book

3 — Self-Service Infrastructure

Giving product teams the ability to provision infrastructure themselves without giving up the guardrails that keep that infrastructure compliant and reliable.

sre platform-engineering book

4 — Golden Paths

The paved, supported way to build a service on the platform — and why an easy golden path is what makes the unsupported path rare instead of forbidden.

sre platform-engineering book

5 — Kubernetes Platforms

Turning raw Kubernetes into a platform product — multi-tenancy, policy enforcement, and the abstractions that hide cluster complexity from application teams.

sre platform-engineering book

6 — Developer Experience

Treating the platform's internal users as real users with real UX expectations, because a platform nobody wants to use gets worked around, not adopted.

sre platform-engineering book

7 — Multi-Tenant Platforms

Isolating tenants sharing the same underlying infrastructure — noisy-neighbor prevention, quota enforcement, and the blast-radius containment that makes sharing safe.

sre platform-engineering book

8 — Platform Reliability

Why the platform's own SLOs matter more than any single service's — a platform outage takes down every team building on it at once.

sre platform-engineering book

1 — Designing Planet-Scale Systems

What changes architecturally once a system has to serve every region on earth — the assumptions that hold at one datacenter's scale and break at planet scale.

sre large-scale-architecture book

2 — Global Traffic Management

Routing users to the right region by latency, health, and capacity simultaneously, and the DNS- and anycast-level mechanics that make global failover fast.

sre large-scale-architecture book

3 — Edge Computing

Pushing compute and data closer to the user to cut latency, and the consistency and deployment complexity that distributing logic to the edge buys in exchange.

sre large-scale-architecture book

4 — Multi-Cloud Reliability

The real cost — not just financial — of running reliably across more than one cloud provider, and where multi-cloud actually reduces blast radius versus just adding complexity.

sre large-scale-architecture book

5 — Active-Active Systems

Serving live traffic from more than one region simultaneously, and the conflict-resolution problem that active-active pushes onto every stateful write.

sre large-scale-architecture book

6 — Active-Passive Systems

Keeping a standby ready to take over, and the failover-testing discipline that's the only thing standing between 'passive' and 'silently broken.'

sre large-scale-architecture book

7 — Disaster Recovery Patterns

The concrete architectural patterns — pilot light, warm standby, multi-site — that turn a DR strategy from a document into something that actually executes under pressure.

sre large-scale-architecture book

8 — Cost vs Reliability

Why every nine of additional availability has a real, escalating price tag, and the point past which more redundancy stops being worth what it costs.

sre large-scale-architecture book

9 — Sustainability Engineering

Carbon and energy footprint as an emerging constraint on architecture decisions, alongside cost and reliability rather than instead of them.

sre large-scale-architecture book

1 — Building an SRE Organization

The team-topology decisions — embedded vs. centralized, how many SREs per service — that determine whether SRE scales with the org or becomes its bottleneck.

sre leadership-org book

2 — Defining Reliability Strategy

Setting reliability targets and investment priorities at an org level, not per-service — the strategy layer above any individual team's SLOs.

sre leadership-org book

3 — Reliability Reviews

The recurring cadence that keeps SLO attainment, error-budget burn, and toil trends visible to leadership before they become a crisis.

sre leadership-org book

4 — Executive Reliability Metrics

Translating error budgets and burn rate into the handful of numbers an executive actually needs to make a reliability-vs-velocity call.

sre leadership-org book

5 — Engineering Culture

Why blameless postmortems and error budgets only work if the surrounding culture actually rewards surfacing problems instead of hiding them.

sre leadership-org book

6 — Hiring SREs

What to actually screen for in an SRE hire — the systems-thinking and incident judgment that don't show up in a standard coding interview.

sre leadership-org book

7 — Mentoring Engineers

Building the next generation of on-call-capable engineers deliberately, instead of letting incident experience be the only teacher.

sre leadership-org book

8 — Technical Leadership

Driving a reliability initiative across teams that don't report to you — the influence-without-authority skill every staff-plus SRE role actually runs on.

sre leadership-org book

9 — Organizational Scaling

How SRE practices that work at 10 services and one team break at 1,000 services and thirty teams, and what has to change structurally to keep up.

sre leadership-org book

1 — Linux Interview Questions

The Linux-internals questions that actually come up in SRE loops, and the level of depth — not just the right answer — that separates an L4 response from an L6 one.

sre interview-prep book

10 — System Design for SRE

How an SRE-flavored system-design interview differs from a generic one — operability, failure modes, and observability weighted as heavily as the happy-path architecture.

sre interview-prep book

11 — Troubleshooting Interviews

Live, ambiguous debugging exercises where the interviewer is grading your hypothesis-and-elimination process, not whether you guess the bug in one try.

sre interview-prep book

12 — Behavioral Interviews for SRE

STAR-format incident and leadership stories, and why 'what did you personally do' is the follow-up that separates a real story from a team-credit one.

sre interview-prep book

13 — Staff/Principal SRE Interviews

What changes at L6/L7 — cross-org influence, strategy, and ambiguous scope replace hands-on execution as the thing being evaluated.

sre interview-prep book

14 — End-to-End Production Case Studies

Full incident-to-postmortem case studies that string together design, detection, response, and review into the single narrative a real interview loop is actually testing for.

sre interview-prep book

2 — Networking Interview Questions

TCP, DNS, load balancing, and TLS questions framed the way interviewers actually ask them — as a debugging scenario, not a trivia quiz.

sre interview-prep book

3 — Kubernetes Interview Questions

The Kubernetes questions that probe whether you've actually operated a cluster under failure, not just deployed a YAML file that worked once.

sre interview-prep book

4 — Cloud Architecture Interview Questions

Designing for a specific cloud's failure domains and managed-service trade-offs — the questions that test whether you understand what you're actually building on.

sre interview-prep book

5 — Distributed Systems Interview Questions

CAP, consensus, and consistency questions posed as system-design trade-offs, which is how they actually show up in a Staff-level loop.

sre interview-prep book

6 — Observability Interview Questions

Questions that test whether you can design an SLI/SLO and instrumentation strategy from scratch, not just recite what Prometheus and OpenTelemetry do.

sre interview-prep book

7 — Incident Response Scenarios

Live incident-simulation questions that evaluate triage judgment and communication under pressure — the format most SRE loops actually weight heaviest.

sre interview-prep book

8 — Performance Debugging Interviews

Being handed a symptom — high latency, high CPU — and narrating a systematic diagnosis instead of guessing, which is what the interviewer is actually scoring.

sre interview-prep book

9 — Reliability Design Interviews

Designing SLOs, redundancy, and failure handling for a system from a one-line prompt — the reliability-flavored half of an SRE system-design loop.

sre interview-prep book

Site Reliability Engineering: From Foundations to Internet-Scale Systems

The complete 184-chapter, 15-part Site Reliability Engineering curriculum — from Linux internals and distributed-systems theory through reliability engineering, observability, incident response, platform engineering, and Staff/Principal-level MAANG interview preparation, ordered the way SRE expertise actually develops rather than as a topic index.

sre book reference maang-prep