Blog
Engineering in practice
System design and software architecture: AI systems, patterns, trade-offs, systems under pressure and fundamentals — and the occasional note on RodGrid.
How a chat message reaches someone who is offline
Alice sends a message while Bob's phone is off. Whether it reaches him, once and in order on every device, depends on knowing where he is: on another server, nowhere, or on two devices at once. Five versions of a chat backend, from one server to a group of 500.
Letting an AI agent issue refunds
When an agent that answers questions is wrong, a person can usually correct it; when one that moves money is wrong, the money is gone. Follow one refund request through six versions of a support agent, each with a new limit on what it may do on its own.
Designing a URL shortener: the short code is the easy part
Mapping a short code to a long URL takes one table. The design is everything around it: a redirect path that has to stay fast, click data that outgrows the links, and deciding which failures are allowed to reach the reader.
The cache stampede hides behind your hit rate
A 99% cache hit rate means the database behind it sees 1% of your traffic, and is usually sized for it. Here is what happens the moment that assumption stops holding, and how to see it on a diagram before it happens.
Retry storms, or the fix that becomes the failure
Retrying is the standard answer to a transient error. When the error is saturation rather than bad luck, the retry adds load at the exact moment the system needs less of it.
Losing an availability zone
Three zones does not mean you can lose one for free. It means each surviving zone has to absorb half the traffic instead of a third — and the headroom for that is a number you either bought or did not.
Read replica or cache?
Both take read load off the primary database, and they are not interchangeable. One scales the number of queries you can serve; the other removes the query entirely. Picking wrong is how a design ends up with one it did not need.
Introducing RodGrid
One semantic canvas for designing systems, simulating traffic, and practicing architecture.
Debug the failing system
Stress presets and diagnosis challenges: how RodGrid lets you break a design on purpose and find out whether you can fix it.
How the traffic simulator works
RodGrid's simulator is a deterministic capacity model with published assumptions — here is how the model works, including the numbers, and what it deliberately is not.