AI System Design - scalability
#01 Performance

Build a Continuous Batching Server for High-Throughput LLM Inference Premium

Design a continuous batching server that dynamically admits and evicts sequences mid-generation, sustaining 8,000+ tokens per second across 128 concurrent requests on 4xA100 GPUs while keeping p99 time-to-first-token under 200ms.

Read
#02 Databases

Build a Cross-Modal Embedding Store for Text, Image, and Video Premium

Design a cross-modal embedding store over 2.03 billion vectors spanning 400M text chunks, 1.2B images, and 1.8M videos, serving 2,500 queries per second at 112ms p99 with cross-modal nDCG@10 of 0.635.

Read
#03 Performance

Build a Disaggregated Prefill-Decode Inference Architecture Premium

Design a disaggregated prefill-decode inference architecture that separates compute-bound prefill from memory-bound decode across dedicated GPU pools, sustaining 12,000 decode tokens per second at sub-150ms TTFT while cutting GPU-hours 35% versus co-located serving.

Read
#04 Databases

Build a Distributed Approximate Nearest Neighbor Search Engine Premium

Design a sharded ANN engine that answers 9,400 QPS over 12.4 billion vectors across 48 shards and 144 replica nodes, holding p99 under 90ms by narrowing the fan-out, hedging the tail, and re-scoring the merge exactly.

Read
#05 Databases

Build a Geo-Filtered Vector Search System for Location-Aware AI Premium

Design a geo-filtered vector search over 180 million places that serves 22,000 peak queries per second at 120ms p99, holds recall@10 above 0.95 inside hard radii, and picks scan or graph walk per query.

Read
#06 Distributed Systems

Build a Gradient Accumulation and Synchronization Engine for Large Batches Premium

Accumulate 64 microbatches in fp32, hide a 331 ms gradient all-reduce behind a 77 ms backward window, and run a 4.19M token batch with a ramped learning rate on 512 H100 GPUs.

Read
#07 Databases

Build a Hybrid Keyword + Vector Search Engine with RRF Fusion Premium

Design a hybrid search engine over 180 million documents that fuses BM25 and HNSW retrieval with weighted reciprocal rank fusion, serving 4,000 queries per second at 45ms p99 and nDCG@10 of 0.742.

Read
#08 Caching

Build a KV-Cache Sharing Layer for Multi-Turn LLM Conversations Premium

Design a distributed KV-cache sharing layer that eliminates redundant prefill computation for 50,000 concurrent multi-turn conversations, cutting time-to-first-token from 800ms to under 80ms with 70% GPU memory savings on prefix reuse.

Read
#09 Performance

Build a Model Sharding System for Serving 70B+ Parameter Models Premium

Design a model sharding system that splits a 70B-parameter model's 140GB of FP16 weights across 8 A100 GPUs using tensor and pipeline parallelism, sustaining 40 tokens/s per replica with under 20GB of KV cache headroom per shard.

Read
#10 Performance

Build a Multi-Modal Inference Server for Text, Image, and Audio Premium

A blueprint for a multi-modal inference server that fuses text, image, and audio inputs into one decoder across 250 requests per second, encoding up to 576 visual tokens and 500 audio tokens per call while holding p99 time-to-first-token under 900ms.

Read