
Systems
Architecture, distributed systems and how large software holds up.
Updated
80 of 80 posts on this page
Tuesday 24 November

Monday 23 November
DoorDash Dispatch: Building a Lightning-Fast Delivery System
In this article, we’ll look at how DoorDash Dispatch built a lightning-fast delivery system.

Probing DNS at Cloudflare
At Cloudflare we’ve built tools to enable teams to extend our internal testing framework and build test tooling for networking protocols. This is the story of how this was used for DNS.

Holding the Door for Agents
The agents, man. They’re everywhere. At least 55% of deployments to Fly.io are now performed by agents. Bots passed humans in web traffic for the first time this year, mostly driven by the surge in agent use. Just a year ago, Cursor had 2.5x as many autocomplete users as they…

Why you shouldn't do application-level sharding
Application-level sharding feels like the right solution. But it isn't your core business, and it causes more headaches than you think.
Sunday 22 November
Shipping 100+ PRs to production in a week
After pushing towards the goal for some time, I finally shipped 100+ pull requests to production in a week, reaching 115 the week of November 9th. Because I’m vain, I’ll cook the numbers slightly to take the highest seven day period rather than calendar week, which up to this…

Saturday 21 November

The Explorer Pattern for product invention and development.
tl;dr: the Explorer Pattern is one individual or team building a functional implementation that minimizes cross-team and cross-functional impacts as much as humanly possible, and then reconciling the details with other teams after that prototype is completed, accepting that…

Friday 20 November
How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)
ruby2shell lets attackers corrupt memory in default Rails and Sinatra apps without logging in. Cloudflare WAF blocks it for every customer, including Free plans. Upgrade Ruby now, and use the WAF to cover the gap.

How Cloudflare WAF helps protect against phpAfterShell and other critical PHP flaws
phpAfterShell is a critical flaw in PHP's default session handler that can lead to code execution. Cloudflare WAF blocks it for all customers, including Free plans, and adds new rules for other PHP flaws fixed in the same release.

Fragments: November 20
Marcus Borg recounts an experiment to investigate if healthy code was cheaper for agents to review. Between a typical unhealthy pull request (CodeHealth 2.8) and a typical healthy one (9.7), that adds up to 22 to 35%. The measures of health come from CodeScene. The experiment…
Top 13 Microservices Interview Questions Answered
#205: Ace Software Engineering Job Interviews

Above a few dozen dimensions, your k-d tree loses to brute force
Few coordinates, static points, built from the median.

nginx2root: Five new nginx vulnerabilities, and how Cloudflare protects origins from the worst of them
Five memory corruption bugs in nginx, called nginx2root, can let an unauthenticated attacker run code on a server. Here’s how they work, and why origins behind Cloudflare's proxy are shielded from the most serious of these bugs.

Petsem: Sometimes Dead Is Better
It’s a hard time to be in infosec. Not that it was ever easy, mind you, but nowadays it seems particularly bad, what with the speed at which LLM-powered attackers can explore, iterate, and exploit their victims. The balance of power has tipped in favor of attackers, and while…

Thursday 19 November
The Invisible Systems: What Happens Between Services
When you draw a system architecture diagram, services are often shown as boxes, and arrows between them show the communication pathways.

Internet traffic and attacks during the 2026 U.S. midterm elections
On November 3, 2026 U.S. voters headed to the polls. Here’s what Cloudflare data across more than 1,400 protected sites tells us about Election Day Internet traffic and cyberattacks.


Building PlanetScale with Insights Agent
Three fixes Insights Agent made to our own Rails API: a reordered feature flag check, an index that made a query slower, and an index that took a query from seconds to milliseconds.

Wednesday 18 November
Evals for AI Engineers
In today’s issue, we’re featuring an excerpt that introduces the Three Gulfs of LLM Application Development.

Data Contracts
Data contracts are a way to describe the contents and guarantees of datasets. Simon Harrer and Arif Wider describe in detail what they are and how to use them. They apply practices from API design to data by treating them as data-providing services - such as data products -…

curl on OSS-Scanner
OSS Scanner is a service by Anthropic to scan critical open-source repositories for security vulnerabilities Enrollment curl maintainer Max Dymond submitted pull-request 1191 to OSS-Scanner in the end of October and we were swiftly enrolled into the program. The idea for this…

TLAPS-Bench: Formally Proving Correctness Of Real-World System Specifications With TLA+ Proof System
TLA+ specification language has long been associated exclusively with TLC model checker in most people's minds. Model checking with TLC finds bugs fast, but it only covers the configuration you give it, and is cheap only for small configurations (3 nodes, value ranges "1..4"…

Traffic mix matters
Traffic mix matters Wanna listen to my mixtape? The preliminary report on last week’s M365 outage contains one statement that really caught my eye: Our normal load testing did not detect the latent issue because [of] the traffic mix and SKUs used in our labs. There’s a lot…
PlanetScale ranks #24 in Deloitte's Technology Fast 500
PlanetScale is #24 on the 2026 Deloitte Technology Fast 500, a ranking of the fastest-growing technology companies in North America.
Tuesday 17 November
The curl 30 years gource
In association with curl’s 30 year anniversary, I made another gource video visualizing its development. Unfortunately it doesn’t cover the full 30 years since we only have records from late 1999 until today; but it is still decent. Instead I added a little bonus: I’m doing a…
Why Thinking More Can Make an LLM Dumb
In this article, we’ll try to understand why thinking longer can make an LLM dumber.

Deterministic Simulation Testing
Distributed systems are hard to test because partial failures overlap with live traffic and the same fault can produce different execution traces on different runs. Unmesh Joshi describes how deterministic simulation testing addresses this by replacing real clocks, networks…
Introducing Insights Agent
Insights Agent connect to your codebase to turn slow queries and schema recommendations into pull requests.

Monday 16 November
Actual curl rewrites in rust
For a long time we have received repeated requests for, or questions about, a curl rewrite in rust. Often as a joke, but also seriously. In this modern world of AIs, we have only been waiting for someone to prove it possible and now it seems we don’t have to wait anymore. This…

What does it mean to understand what we built?
What does it mean to understand what we built? Let's try come to an understanding. Today, a couple of people sent me the No AI Slop Manifesto. I found it interesting, in part, because it touches on something that seems super important right now: understanding. Through this…
Saturday 14 November

Binary search stops working the moment your data has two coordinates
The closest point is not always in the closest box.

Friday 13 November
Throwing Out The Phonebook
There’s really only one hard problem in software engineering: synchronization. OK, maybe two: cache invalidation and synchronization. Synchronization is the harder one though, especially when the thing on the other side is eventually consistent. This year we rebuilt 6PN, the…

Thursday 12 November
Bliki: Generated Glossary
When we use LLMs in a specialized domain, such as the operations of any reasonably-large organization, there is a lot of specialized vocabulary. Such words and specialized meanings will be foreign to an LLM because they aren't in its training set, making it harder for the LLM…

Wednesday 11 November
Tests as data: ensuring AI-generated code does what we want
Automated testing in the age of AI coding assistants is problematic: when AI agents write both production and test code, developers risk losing the assurance that automated tests protect against functional errors. Matteo Vaccari makes three claims: (1) when AI writes the code…

How we migrate TBs from Heroku without logical replication
We've equipped our customers with an open source tool that not only quickly transfers your data but also provides a replication-based experience, so that any user can migrate from Heroku without extended downtime or the need to purchase a third-party product.

Tuesday 10 November
30 years of Internet transfers with curl
Thirty years ago, on November 11, 1996 the young Brazilian student Rafael Sagula posted the source code for his tiny HTTP download tool online. That was httpget 0.1: a little over 100 lines of C code. Bare bones source code with almost no error checks and limited functionality…
Saturday 7 November
Writing as a thinking tool
In middle school I could not get through long passages no matter how hard I tried. I would read an entire page and find that nothing had registered, so I started taking notes out of desperation. This was the late 80s, and Tony Buzan's mind maps had just reached Turkey. This led…
Friday 6 November
Your 99% accurate model never caught a single fraud
Right 990 times out of 1,000. The 10 it gets wrong are the only ones that cost money.

Well, That Wasn't Fun: October 16 '26
October 16, 2026 began like any other day at Fly.io (meaning, we were anticipating only a medium amount of chaos). By that evening, we had patched and rebooted our entire fleet in response to a Linux kernel bug. The full rollout took 10 hours, but the emotional damage persists…

Tuesday 3 November
Scrutinize our assessments
I recently blogged about how the curl project switched to doing all handling of vulnerabilities at severity LOW and MEDIUM in the public. Let me now describe how you can follow along this process and help out. Add your opinions, comments and assessments to help the curl project…
Monday 2 November
Test/verification technique effectiveness with Astra
When we looked at how well agents used test/verification techniques in August, we saw that GPT-5.6 Sol generally did what you might call a caricature of various techniques when asked to use a technique or library such as TDD, QuickCheck, Lean 4, etc.; not specifying any…
Friday 30 October
Self-reinforcing quality / adopting verification pattern
After implementing the small-change pattern, Imprint Engineering’s next focus in improving our development loop has been implementing a verification loop for our software development. This is an increasingly common pattern, particularly popularized by poteto’s pstack, but…

The complexity you remove from your library doesn't disappear. It moves.
To your clients, to a thread pool, or into your latency.

Thursday 29 October
NYC
The apartment is packed up and empty and I'm leaving New York for Durham this Saturday. Just short of my 9th full year here. People, visitors mostly I guess, seem to associate New York with skyscrapers and traffic and concrete. To me New York is the water. Looking out from…
Tuesday 27 October
TLA-Verus: LLM agents prove temporal properties of TLA+ specs
This NeurIPS'26 workshop paper takes TLA+ specs from GitHub, translates them into Verus, and has LLM agents prove the safety and liveness properties in the specs. The motivation The paper aims to address two problems it raises with TLA+. First, nothing ties the spec to the…

Monday 26 October
The Man from the Future: Why Johnny Can't Stop Abstracting
I have come to suspect that to most people thinking is painful. Some of us are addicted to thinking. Some of us find it a necessity. Johnny enjoyed it. I even have the suspicion that he enjoyed almost nothing else. -- Edward Teller, eulogizing John von Neumann I listened to…
Saturday 24 October
What Do the Frontier Labs Actually Believe?
I listened to a recent episode of Cal Newport's "Deep Questions" podcast, where he interviews Emile P. Torres. Cal says that if you want to understand what is happening in AI, you have to understand the futurist ideologies that shape the people running the frontier labs. Torres…
“We should be more ambitious with the software we build”
Since early this year, Michael Malis (of pgrust) has been showing me interesting things he's done and saying [W]e should be more ambitious with the software we build There is, understandably, a lot of skepticism about projects like pgrust because there are so many low-quality…
Friday 23 October
A tenth of a microsecond became a third of a second
Floating-point errors are harmless one at a time. A chain of them isn't.

Animations for System Builders: Metastability and Lost Writes
Animations for System Builders: Metastability and Lost Writes Pretty pictures help us learn, maybe? One of the things I love using LLMs for is helping me understand systems better. In the Strands Decider post I wrote about how I often ask ask me questions to check I understand…
Feng Shui for Robots: The Fly MCP Server
In Databricks’ State of AI Agents 2026 report, there’s a chart from Neon’s telemetry that’s somehow both mind-blowing and unsurprising. In October 2023, AI agents created 0.1% of the databases on Neon. By October 2025 they created 80% of them. We’re seeing this play out all…

Saturday 17 October
Speeding up code review with `small-change`
Imprint’s average engineer is merging 4x more PRs than 2 years ago. Yay. Aggregated behind the average is something even more interesting: we have two teams that are merging 10x their PRs over that period. One engineer is merging 25x the PRs per week of our average engineer two…
Thursday 8 October
If your team is happy, are you doing a good job?
Brilliant jerks, ZIRP-era managers, and how psychological safety lost the plot. Part 3 of my conversation with Dr. Cat Hicks.

Deepthi Sigireddi from Supabase
This is an external post of mine. Click here if you are not redirected.
Sunday 4 October
Arc Notes Weekly #108: What’s Worth Building
Cheaper intelligence, faster interfaces, and the judgment needed to turn agent work into useful software.

Strands Decider: Why Not an Encoder?
Strands Decider: Why Not an Encoder? Expertise level: exhausted. As I admitted in my last post, I am very much not an expert model developer. What follows is likely to be, at least partially, inaccurate. I have tried to be careful and quantitative, to partially balance a lack…
Compression and concatenation on the web
This is an external post of mine. Click here if you are not redirected.
Monday 28 September
Small Decisions: Engineering a Leading Model
Small Decisions: Engineering a Leading Model Or trying to, at least. Update: An evolved version of the model described here is now available as part of Strands. Check out strands-decider on github and HuggingFace. My day job has been primarily in AI for three years now, but I’d…
Sunday 27 September
Arc Notes Weekly #107: Closing the Loop
Cloudflare’s 100TB RAM saving, faster Postgres analytics, and keeping humans in the loop as agents take on more work.

Full text search and PostgreSQL
This is an external post of mine. Click here if you are not redirected.
Monday 21 September
Where do AI norms come from?
A dialogue with Dr Cat Hicks on ethics, learning, and what we owe each other. Part one: start by listening.

Sunday 20 September
Trying the Software Factory pattern.
One of the interesting challenges of the AI ecosystem in 2026 is that new, effective patterns emerge faster than I can adopt them. I’ll find a handful, get back to work, and realize a month later that I’d missed four or five more. The adoption cycle for Imprint this year has…
Friday 18 September
There's no point at which turning your brain off will work
In early 2025, I started seeing people turn off their brain as they use LLMs. They would have an LLM take an action (summarize text, write some code, etc.), and just assume that it worked. This generally didn't work in early 2025 and the result was often quite silly. As LLMs…
Thursday 17 September
High-Throughput OLTP in Three Simple Steps
TigerBeetle is a transaction-processing database. Its double-entry accounting primitives are simple and powerful: they can represent the movement or exchange of any quantity, including financial transactions such as real-time payments, billing, or credits, and non-financial…
Monday 14 September
Confessions of an Unrepentant Slop Snob
A framework for thinking about when AI involvement is additive or a violation

Sunday 13 September
Query plan rewriting in PostgreSQL
This is an external post of mine. Click here if you are not redirected.
Monday 7 September
How well do agents use test/verification techniques?
We previously noted that, while it's easier than ever to hit a particular quality bar by having coding agents use effective test techniques, software quality seems to be getting worse, indicating that whatever defaults developers are using may not work very well. Here, we test…
Tuesday 1 September
A Crash Course in Predicate Logic
I started writing Logic for Programmers because there weren’t any good resources on logic for, uh, programmers. Now that the book’s out, the new problem is that there aren’t any good free resources on logic for programmers. So, to solve that problem (and maybe hype the book a…
Ed Zitron's AI prediction track record
I was curious how well the predictions of the most widely cited AI skeptic I've seen (Ed Zitron) have done, so I looked at how his predictions panned out. To disclose my own biases, I've never had a particularly strong pro or anti AI progress position. For example, in 2022, I…
Thursday 20 August
Wednesday 29 July
Logic for Programmers is Now Available
I am delighted to announce that my book, Logic for Programmers, is now available! You can check out the release site here or go directly to buy the ebook or print versions. If you bought any of the early access versions, you can get the 1.0 for free from leanpub. This has been…
Wednesday 8 July
Have you heard? Clickhouse is winning the observability wars! <-- THIS IS SARCASM
Years ago I predicted that columnar storage would remake observability. What I didn't see coming: vendors would build it, nerf it, and sell a worse version back to you as "Datadog, but cheaper"

Thursday 2 July
In defense of AI mandates
When you need to execute a coordinated change on a tight timeline, a mandate is the best and most honest way to fund it.

Friday 24 April
Toolchain Horizons: Exploring Rust Dependency-Toolchain Compatibility
I tested the top 100 Rust crates on crates.io for backwards compatibility. Then I removed every dependency from the TigerBeetle Rust client and backported it to Rust 1.39, from 2019.
Tuesday 14 April
Automation That Screams Joy
I hate shell scripting with a passion. Whenever I join a project, I go on a crusade to rewrite all bash scripts into the project’s main language. I have Java For Everything tattooed on my arm (no). The code I’ve written at TigerBeetle that I am most proud of is this:
Wednesday 1 April
Chicago vs New York Pizza is the Wrong Argument
It’s April Cools! It’s like April Fools, except instead of cringe comedy you make genuine content that’s different from what you usually do. For example, last year I talked about The best introductory video games for non-gamers. This year I’m picking a fight. This is “New York”…
Thursday 19 March
A Trillion Transactions
We processed a trillion transactions to test TigerBeetle’s scale.