Course map

Part 13

Advanced Specializations (Optional)

Go deeper in one field when your work needs it.

Prerequisites the core parts named in each project or topic.
Part context

Topics 209–213 (tagged Advanced) are also used by specific projects, which say so in their "Start after" line; topics 214–223 (tagged Specialist) are chosen by role. Pick at most two or three specializations aligned with your work — none is required to be competent at system design.

Reading track

13.1 Search Engine Internals

Chapter outcomes and context

Inverted indexes, tokenization and analysis, relevance scoring (TF-IDF → BM25), faceting, index sharding, near-real-time refresh, autocomplete (tries → 2); Elasticsearch and OpenSearch as examples. Basics and the simpler alternative — database full-text search — are topic 65, which Project 5 uses.

209Search engine internals: inverted indexes, relevance, facetingAdvanced

13.2 Geospatial Indexing

Chapter outcomes and context

Why B-trees fail for two-dimensional proximity; geohash (prefix-matchable cells), quadtrees (adaptive subdivision), H3 (hexagonal hierarchical cells — Uber's open-sourced system); cell-size trade-offs, "near me" queries, hot cells at dense venues. Required by Projects 14 and 15.

210Geospatial indexing: geohash, quadtree, H3Advanced

13.3 Multi-Tenant Architecture

Chapter outcomes and context

Tenant isolation models: shared schema (tenant_id column) → schema-per-tenant → database-per-tenant; the isolation/cost/operations trade-off; quotas and noisy neighbors (→ 96); tenant context propagation; per-tenant observability and billing. Required by Project 20.

211Multi-tenant architecture: tenant isolation models, quotas, noisy neighborsAdvanced

13.4 Cell-Based Architecture

Chapter outcomes and context

Partition the whole stack into independent cells (shard-nothing slices, each serving a subset of tenants or users); blast-radius containment, cell routing, cell migration; relationship to bulkheads (→ 153) and failure isolation (→ 193). Required by Project 20; Shopify's pod architecture is the published example.

212Cell-based architectureAdvanced

13.5 Data Lake and Data Warehouse

Chapter outcomes and context

OLTP vs. OLAP; columnar storage; star schemas; ELT pipelines (→ 123); lake zones and the lakehouse (Parquet/Iceberg-style table formats); feeding from CDC (→ 119). Required by Project 19's historical layer.

213Data lake and data warehouse (OLTP vs OLAP)Advanced

13.6 Real-Time Analytics

Chapter outcomes and context

Streaming OLAP stores (Druid, Pinot, ClickHouse as examples), pre-aggregation, approximate algorithms (→ 141), lambda vs. kappa architectures.

214Real-time analyticsSpecialist

13.7 Distributed File Systems

Chapter outcomes and context

Chunking, replication, metadata servers; how object storage (→ 79) differs; erasure coding vs. replication in durability economics.

215Distributed file systemsSpecialist

13.8 Recommendation System Architecture

Chapter outcomes and context

Candidate generation → ranking → re-ranking; collaborative vs. content-based filtering; offline training with online serving; feature stores; cold start and feedback loops.

216Recommendation system architectureSpecialist

13.9 IoT and Device Architecture

Chapter outcomes and context

Device identity and provisioning, MQTT and constrained protocols, intermittent connectivity, device twins and shadow state, fleet firmware updates, time-series ingestion (→ 78).

217IoT and device architectureSpecialist

13.10 Edge Computing

Chapter outcomes and context

Compute at the CDN edge and on-premise edge; latency- and bandwidth-driven placement; state synchronization between edge and core; edge-function constraints.

218Edge computingSpecialist

13.11 AI/ML System Architecture

Chapter outcomes and context

The production ML lifecycle: data pipelines → training → model registry → serving → monitoring for drift; online vs. batch inference; feature stores; shadow deployment and A/B evaluation of models.

219AI/ML system architectureSpecialist

13.12 LLM Serving and Inference Infrastructure

Chapter outcomes and context

Why LLM serving differs: autoregressive generation, KV-cache memory pressure, continuous batching, streaming token responses; time-to-first-token vs. tokens-per-second; quantization and model routing; cost per token as a design constraint.

220LLM serving and inference infrastructureSpecialist

13.13 Retrieval-Augmented Generation

Chapter outcomes and context

The RAG pipeline: ingest → chunk → embed → index → retrieve → rerank → generate with grounding; chunking trade-offs; evaluating retrieval quality separately from answer quality; corpus freshness and access control.

221Retrieval-augmented generation (RAG)Specialist

13.14 Vector Databases and Vector Search

Chapter outcomes and context

Embeddings and similarity metrics; exact vs. approximate nearest neighbor; ANN indexes (HNSW, IVF) and their recall/latency/memory trade-offs; hybrid keyword-plus-vector search; when a pgvector-style extension beats a dedicated store.

222Vector databases and vector searchSpecialist

13.15 GPU and High-Performance Infrastructure

Chapter outcomes and context

GPU scheduling and sharing; interconnects; distributed training (data, tensor, pipeline parallelism) at awareness level; batch queues; utilization economics — GPUs invert the usual "scale out cheaply" assumptions.

223GPU and high-performance infrastructureSpecialist

Done when you can

Open revision sheet and self-quiz

Search the guide