Articles
Engineering, one diagram at a time
Short, free articles on AI and systems engineering. Each one explains a single diagram and links to the full lesson behind it.

LLM inference · Lifecycle
After the request ends, it must own nothing
A fast kernel cannot repair an inference lifecycle that leaks state after cancellation. Trace one request, r17, and check the invariant that nothing it held survives its final event.
· 3 min read

System design · Consistency
Answer consistency per operation
Payment must never be stale. Order status can be seconds behind. A recommendation can be hours behind. Answering consistency per system forces the strictest rule onto all of them.
· 4 min read

Spring AI · Architecture
The model is not the whole application
In a Spring AI service, the model call sits inside a governed request pipeline, and four paths surround it: request, knowledge, control and evaluation. Keep all four visible in design reviews.
· 3 min read

AI security · Tool calls
The model proposes. Authority checks twice.
A model's tool call is a proposal. A policy enforcement point checks it, and the downstream service authorizes again. The model sees a capability handle, never a raw secret.
· 3 min read

Coding agents · Architecture
The smallest agent architecture that fits
Six patterns for coding agents, from one interactive agent to planner and workers. More agents do not automatically create more engineering capacity, so start with the smallest that matches the work.
· 4 min read

AI training · Architecture
Training is a governed artifact pipeline
The training script is one participant in a larger system. Data, execution and control planes stay separate, one run manifest binds the whole run, and workers never publish models directly.
· 3 min read

Fine-tuning · Adaptation layers
Which layer owns the requirement?
Fine-tuning is one layer of a stack. Current facts belong to retrieval, exact calculation to tools, revocable permissions to policy, and secrets never in the weights.
· 3 min read

GenAI system design · Sizing
12 requests a second is 1.1M tokens a minute
Size a support copilot from its workload: 250,000 daily requests become about 12 a second at peak, about 29.5 attempts in flight and about 1.10 million tokens a minute of quota.
· 3 min read

Distributed systems · Failure
A timeout is not a failure
A local call returns or throws. A network call has a third ending: no reply, and no way to know whether the work was done. Two of the three outcomes look identical to your code.
· 4 min read

LLMOps · Evaluation
Graders grade. The gate decides.
A reproducible evaluation platform runs five stages, from versioned inputs to stored evidence. The release policy gate consumes the evidence; graders never grant production authority themselves.
· 3 min read

Kafka · Topics and partitions
Ordering is a property of a partition
A Kafka topic is a name. A partition is the log, and ordering lives there. Twelve partitions are twelve independent logs that happen to share a name, so across them no order is defined.
· 3 min read

AWS · Aurora cost
Price the I/O line before you pick Aurora
Aurora I/O-Optimized costs more per instance and per GB, and charges nothing per I/O. With the course's rates the break-even is about 265 I/O per second sustained, so measure first.
· 3 min read

MCP · Architecture
Tool, resource or prompt? Who decides
An MCP server offers tools, resources and prompts. The specification separates them by who decides when each is used, and that distinction drives most design decisions.
· 4 min read

Consensus · Split brain
Two leaders, one cluster
Five nodes, a partition that splits them two and three, and an election rule that asks for no majority. Both sides elect a leader and both commit, so the balance is 300 and 500.
· 4 min read

System Design · Estimation
40 million users is 69 writes a second
Back-of-envelope estimation takes four minutes and tells you whether a design needs one database or forty. Forty million users placing 0.15 orders a day need one primary with replicas.
· 4 min read

AWS · VPC networking
98% of the VPC is free, and pod 697 won't start
On EKS with the VPC CNI, every pod takes a real address from its node's subnet. A /16 VPC cut into /24 subnets runs out at 696 pods while 98% of its addresses sit unused.
· 4 min read

AI Training · Checkpoints
A checkpoint is more than the weights
A training step changes far more state than the parameters. Leave the optimizer, scheduler, scaler, random state or data cursor out of a checkpoint and a resumed run can drift.
· 4 min read

AI Agents · RAG
Follow one question through a RAG pipeline
“can dads carry it forward?” is phrased nothing like the policy that answers it. Query rewriting, hybrid retrieval and reranking still find both facts in one pass.
· 4 min read

Containers · Kubernetes
Kubernetes is a loop, not a command
Delete a pod and it comes back. Nothing replayed your command: a controller saw two pods where you declared three. One idea explains Kubernetes, and when it is worth running.
· 4 min read

Transactions · Dual writes
Paid in the database, never announced
Commit the order, then publish its event. When the publish fails, the order is paid and nobody downstream is told. No ordering of two separate writes closes that gap.
· 3 min read

Databases · Scaling writes
Replicas copy your writes. Partitions split them.
Read replicas add read capacity and a failover target. They do not raise the write ceiling, because every replica applies every write. Splitting the data is what divides the writes.
· 3 min read

Voice AI · Audio
Why a phone call mixes up F and S
On a phone line sampled at 8 kHz, the sound that best separates S from F sits above what the channel can carry. A better model cannot recover it; a better design works around it.
· 4 min read

Fine-tuning · Training data
Your fine-tune learned the shortcut
Fifty training examples, one reviewer, and a model that scores 100% in training on length and punctuation alone. How examples teach the wrong decision, and the ones that fix it.
· 4 min read

AI Data Platform · RAG
Your vector index is not the source of truth
Search indexes, vector stores and eval sets are projections of governed canonical evidence, not authorities. A data plane moves content; a control plane decides which version is safe to serve.
· 3 min read

Containers · Kubernetes
A container is a process, not a small VM
A container is an ordinary Linux process with namespaces and cgroups around it. That one fact explains the shared kernel, the PID 1 shutdown bug and the heap sized for the whole node.
· 4 min read

AWS · DynamoDB
A filtered DynamoDB Scan still reads the whole table
On a 40-million-item table, a Query evaluates 200 items to return 200 orders and a filtered Scan evaluates 40 million. Design DynamoDB keys around the questions you know you will ask.
· 5 min read

Observability
One metric label can cost 648 GB of memory
Metrics, logs and traces are three shapes of data, not three tools. Put user_id in a metric label and a 1,080-series counter becomes 216 million series. Where each question belongs.
· 5 min read

MCP · Developer Tools
Read an MCP server before you trust it
List the tools of the MCP reference server and you find a read-only tool that hands over your secrets and another that fetches any URL from your machine. How to pin, inspect and allow.
· 5 min read

AI Security · Governance
Security, safety, robustness and privacy are four different problems
One AI incident can touch all four, but each needs its own evidence and its own owner. A clinical summarizer shows why no single guardrail can prove them all.
· 4 min read

AI Agents · Agentic RAG
What an AI agent actually is
The same model becomes an agent when a loop lets it call tools, read the results and choose its next step, while your runtime keeps the limits. A worked example, and where autonomy should stop.
· 5 min read

AWS Architecture
What multi-AZ buys, and what it doesn't
Availability zones are a failure-domain definition. Multi-AZ survives a power or fibre loss, not a bad deploy, an expired certificate or a corrupt migration, and only with spare capacity.
· 4 min read

LLM Inference · Serving
Where a slow first token comes from
A three-second first token can come from the queue, a media fetch, the tokenizer, prefill, rank synchronization or a buffering proxy. A faster kernel fixes one of those. Measure every boundary first.
· 4 min read

Agentic AI · Context
Your context window is a budget
Every token in the window costs money, latency and the model's attention. Reserve room for the answer first, then spend what is left on whole bundles of evidence, never on half of one.
· 5 min read

Databases at Scale
Your database reads pages, not rows
Ask for one 120-byte row and the engine reads an 8 KiB page. The same index can find 200 rows in four page reads or in two hundred, depending on how the rows were stored.
· 5 min read

Sharding · System Design
A good hash can't fix a hot tenant
Hash partitioning on tenant_id spreads tenants evenly, but not load. When one merchant is 40% of writes, one shard sets your capacity. Three repairs, and what each one costs.
· 4 min read

Realtime Voice AI
A voice agent is a stack, not a model
A demo voice bot is speech-to-text, a language model and text-to-speech. A production voice agent adds media, state, tools, people and controls, and keeps media apart from business actions.
· 4 min read

Claude Code · Codex
Build the safety net before your coding agent's first edit
Coding agents will eventually do something you did not intend. Four layers limit the damage: permissions, a sandbox, checkpoints and Git. Each catches what the one above misses.
· 5 min read

AI Coding Agents
Five ways to code with AI, five different risks
Autocomplete, chat, interactive agents, asynchronous agents and agentic workflows differ in what they can touch and how they fail. Choose by reversibility and consequence, not by maturity.
· 4 min read

Multimodal AI
Multimodal AI starts with evidence, not modality
Sending every photo, recording and document to the largest model is the common multimodal mistake. Start from the decision, treat each signal as evidence with an origin, and let policy decide.
· 3 min read

ChatGPT · Claude · Developers
Pick the place before you pick the model
Most disappointing AI answers come from asking in the wrong place, not from the wrong model. Six kinds of developer work, and where each one belongs.
· 5 min read

Observability · Latency
Same average, very different users
Two services with an identical 153 ms mean latency: one where nobody waits more than 161 ms, one where a thousand requests take over a second. Why the mean cannot tell them apart.
· 4 min read

Distributed Systems · Payments
Why a retry charges the customer twice
A correct payment service, a correct client and one lost reply are enough to charge a customer twice. Why the client cannot fix it, and what an idempotency key changes.
· 4 min read

Kafka · Event-Driven Systems
Why Kafka is a log, not a queue
A queue deletes a message once it is delivered. A Kafka topic keeps it and remembers one position per consumer group. That one choice explains fan-out, replay, and the head-of-line problem.
· 4 min read

Databases at Scale
Your primary key is a storage decision
The same 572 MiB of rows can cost 1.1 GiB or 38.7 GiB of disk writes, depending on the order keys arrive in and how the storage engine compacts. A lab model of write amplification.
· 4 min read
Get one diagram a week
A short article built around one engineering diagram, from the same library as these courses.
One diagram-led article a week on AI and systems engineering. We email you once to confirm, and every newsletter has an unsubscribe link. Privacy policy