Blog

Practical notes from an AI engineer: prompts you can copy, free tools worth testing, how new models behave, and the System Design Mastermind series. Search, or pick a topic.

37 parts published · 12 coming

System Design Mastermind

Real products taken apart for Senior interviews, one interactive part at a time: the numbers, the APIs, the databases and what breaks.

AI / ML34 min37AI coding agent system design (Claude Code, Cursor, Codex): context, edits, sandboxes and evalsAI / ML33 min36LLM evaluation and guardrails platform system design: judges, guard latency, paired eval gates and safe rolloutsAI / ML34 min35Recommendation system design (TikTok-style For You feed): candidates, ranking, freshness and A/B testsAI / ML34 min34Content moderation pipeline system design: hash matching, classifiers, LLM checks and human review at a billion items a dayPlatform & Infra33 min33Payment system design (Stripe): idempotency, unknown outcomes, the ledger and reconciliationClassics32 min32Notification system design: push, email and SMS without spam, drops or duplicatesAI / ML34 min31Offline GPU batch inference system design: millions of LLM calls by a deadline, on GPUs that can vanishPlatform & Infra32 min30Ad click aggregator system design: exactly-once counts, late clicks and hot adsClassics32 min29News feed system design: fan-out, celebrities and rankingAI / ML35 min28AI agent platform system design: tools, durable runs, approvals and agents you can trustPlatform & Infra33 min27Kafka system design: a distributed log that never loses an acknowledged messageClassics32 min26Ticketmaster system design: selling seats without double-bookingAI / ML34 min25RAG assistant over company docs system design: retrieval, permissions and answers you can trustPlatform & Infra32 min24Metrics and logging system design (Datadog-style): series, roll-ups and alerts you can trustClassics32 min23WhatsApp system design: chat, offline delivery and the three ticksAI / ML34 min22LLM serving platform system design (ChatGPT-style): tokens, GPUs and safe model changesFoundations30 minF18AI foundations: inference, RAG and agentsFoundations28 minF17Data pipelines: batch and streamPlatform & Infra32 min19Distributed job scheduler system design: on time, at least once, never lostFoundations27 minF16Search, feeds and geo building blocksFoundations26 minF15Security essentials for system designFoundations25 minF14Observability and safe deploymentsFoundations25 minF13Reliability and disaster recoveryFoundations24 minF12Scaling and performanceFoundations25 minF11Idempotency, exactly-once and sagasClassics30 min12Rate limiter system design: fair limits at a million requests a secondFoundations25 minF10Queues and event streamsFoundations25 minF09Coordination: clocks, leaders, locks and consensusFoundations25 minF08Consistency, CAP and quorums: what replicas promiseFoundations24 minF07Caching: hit ratios, invalidation and stampedesFoundations25 minF06Replication and sharding: copying and splitting your dataFoundations24 minF05Databases: data models, indexes and transactionsFoundations22 minF04APIs and real-time communication: REST, gRPC, retries, webhooks and live updatesFoundations20 minF03Back-of-envelope estimation: from users to servers in one minuteFoundations22 minF02The interview framework: requirements, numbers and scope before boxesFoundations20 minF01How a request travels: DNS, load balancers, gateways and open connectionsClassics30 min01Uber system design, reverse-engineered: from tap to pickup