> ## Content Index
> Fetch the complete content index at: https://www.antoinebuteau.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Lessons from Martin Kleppmann
- URL: https://www.antoinebuteau.com/lessons-from-martin-kleppmann/
- Published: 2026-05-30T18:20:27.000Z
- Updated: 2026-11-02T21:10:04.000Z
- Description: Martin Kleppmann, a Cambridge researcher and author of Designing Data-Intensive Applications, untangles distributed systems, databases, and formal verification. His work pairs technical rigor with engineering ethics and a case for local-first software that frees user data from centralized clouds.
- Author: Antoine Buteau
- Tags: Profile, Science & Technology Thinkers Profiles

![Visual summary of operating lessons from Martin Kleppmann.](https://www.antoinebuteau.com/content/images/2026/05/lessons-from-martin-kleppmann-profile-infographic.webp)

## Lessons from Martin Kleppmann

Martin Kleppmann is described on the blog as an associate professor working on local-first software and security protocols at the University of Cambridge. The items below are passages from blog posts by Kleppmann on stream processing, logs, distributed-systems verification and AI-assisted formal verification. — [Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com).

### Part 1: The Nature of Distributed Systems

1. **On Not Knowing What Happened:** In the blog post “Verifying distributed systems with Isabelle/HOL,” Kleppmann wrote: "When you send a request to another process and don’t receive a response, you have no idea what happened: was the request lost, or has the other process crashed, or was the response lost?". — [Verifying distributed systems with Isabelle/HOL (Martin Kleppmann’s blog, 2022)](https://martin.kleppmann.com/2022/10/12/verifying-distributed-systems-isabelle.html?ref=antoinebuteau.com).
2. **On No Tool Doing Everything:** In a video interview about Designing Data-Intensive Applications and CRDTs, Kleppmann said: "there's no tool in the world which can do everything for everyone". — [Interview Martin Kleppmann (video interview), auto-generated captions](https://www.youtube.com/watch?v=sMRpv0fBJLU&ref=antoinebuteau.com).
3. **On Doing Everything Badly:** In a video interview about Designing Data-Intensive Applications and CRDTs, Kleppmann said: "if you try to do everything for everyone it would be quite a bad tool because it would mean it does everything badly rather than doing one thing well". — [*Interview Martin Kleppmann (video interview), auto-generated captions*](https://www.youtube.com/watch?v=sMRpv0fBJLU&ref=antoinebuteau.com)
4. **On Realistic Load Testing:** In the blog post “Six things I wish we had known about scaling,” Kleppmann wrote: "If you read the same item a million times in a loop, it will simply be cached, and the load test tells you nothing". — [*Six things I wish we had known about scaling (Martin Kleppmann’s blog)*](https://martin.kleppmann.com/2014/03/26/six-things-about-scaling.html?ref=antoinebuteau.com)
5. **On Algorithms Being Hard to Reason About:** In the blog post “Verifying distributed systems with Isabelle/HOL,” Kleppmann wrote: "distributed algorithms are notoriously difficult to reason about, because they must uphold their guarantees regardless of the order in which messages are delivered, and even when some messages are lost or some processes crash". — [Verifying distributed systems with Isabelle/HOL (Martin Kleppmann’s blog, 2022)](https://martin.kleppmann.com/2022/10/12/verifying-distributed-systems-isabelle.html?ref=antoinebuteau.com).
6. **On Informal Reasoning:** In the blog post “Verifying distributed systems with Isabelle/HOL,” Kleppmann wrote: "Many algorithms are very subtle, and informal reasoning is not sufficient for ensuring that they are correct". — [*Verifying distributed systems with Isabelle/HOL (Martin Kleppmann’s blog, 2022)*](https://martin.kleppmann.com/2022/10/12/verifying-distributed-systems-isabelle.html?ref=antoinebuteau.com)

### Part 2: Time, Clocks, and Causality

### Part 3: Databases and Abstractions

1. **On Retiring the CAP Theorem:** In the blog post “Please stop calling databases CP or AP,” Kleppmann wrote: "The CAP theorem is too simplistic and too widely misunderstood to be of much use for characterizing systems". — [Please stop calling databases CP or AP (Martin Kleppmann’s blog)](https://martin.kleppmann.com/2015/05/11/please-stop-calling-databases-cp-or-ap.html?ref=antoinebuteau.com).
2. **On Using More Precise Terminology:** In the blog post “Please stop calling databases CP or AP,” Kleppmann wrote: "we should use more precise terminology to reason about our trade-offs". — [*Please stop calling databases CP or AP (Martin Kleppmann’s blog)*](https://martin.kleppmann.com/2015/05/11/please-stop-calling-databases-cp-or-ap.html?ref=antoinebuteau.com)
3. **On Databases as Mutable State:** In the blog post “Turning the database inside-out with Apache Samza,” Kleppmann wrote: "Databases are global, shared, mutable state. That’s the way it has been since the 1960s, and no amount of NoSQL has changed that". — [Turning the database inside-out with Apache Samza (Martin Kleppmann’s blog, 2015)](https://martin.kleppmann.com/2015/03/04/turning-the-database-inside-out.html?ref=antoinebuteau.com).
4. **On Tolerating Databases:** In the blog post “Turning the database inside-out with Apache Samza,” Kleppmann wrote: "most self-respecting developers have got rid of mutable global variables in their code long ago. So why do we tolerate databases as they are?". — [*Turning the database inside-out with Apache Samza (Martin Kleppmann’s blog, 2015)*](https://martin.kleppmann.com/2015/03/04/turning-the-database-inside-out.html?ref=antoinebuteau.com)
5. **On the Database Abstraction Hiding the Stream:** In the blog post “Turning the database inside-out with Apache Samza,” Kleppmann wrote: "It’s an implementation detail that is hidden by the database abstraction". — [Turning the database inside-out with Apache Samza (Martin Kleppmann’s blog, 2015)](https://martin.kleppmann.com/2015/03/04/turning-the-database-inside-out.html?ref=antoinebuteau.com).
6. **On Not Choosing a Database for Someone:** In a video interview about Designing Data-Intensive Applications and CRDTs, Kleppmann said: "i can't tell you what database to use because it depends vastly on what you want to do". — [Interview Martin Kleppmann (video interview), auto-generated captions](https://www.youtube.com/watch?v=sMRpv0fBJLU&ref=antoinebuteau.com).
7. **On Teaching What Questions to Ask:** In a video interview about Designing Data-Intensive Applications and CRDTs, Kleppmann said: "what i wanted to do with this book is teach people what questions to ask". — [*Interview Martin Kleppmann (video interview), auto-generated captions*](https://www.youtube.com/watch?v=sMRpv0fBJLU&ref=antoinebuteau.com)
8. **On Talking to the Engineers:** In a video interview about Designing Data-Intensive Applications and CRDTs, Kleppmann said: "one of the best ways i've found about found of finding out about that is to talk to the engineers actually building it". — [*Interview Martin Kleppmann (video interview), auto-generated captions*](https://www.youtube.com/watch?v=sMRpv0fBJLU&ref=antoinebuteau.com)
9. **On Not Knowing as an Opportunity:** In the blog post “The Recurse Center and the joy of learning,” Kleppmann wrote: "Not knowing something is celebrated as an opportunity to learn, not a fault to be embarrassed about". — [*The Recurse Center and the joy of learning (Martin Kleppmann’s blog)*](https://martin.kleppmann.com/2015/10/11/recurse-center-joy-of-learning.html?ref=antoinebuteau.com)
10. **On Royalties Close to Zero:** In the blog post “Writing a book: is it worth it,” Kleppmann wrote: "If you are considering writing a book, I strongly recommend that you estimate the value of your future royalties to be close to zero". — [*Writing a book: is it worth it? (Martin Kleppmann’s blog)*](https://martin.kleppmann.com/2020/09/29/is-book-writing-worth-it.html?ref=antoinebuteau.com)
11. **On the Purpose of a Lock:** In the blog post “How to do distributed locking,” Kleppmann wrote: "The purpose of a lock is to ensure that among several nodes that might try to do the same piece of work, only one actually does it". — [*How to do distributed locking (Martin Kleppmann’s blog)*](https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html?ref=antoinebuteau.com)
12. **On Efficiency Versus Correctness:** In the blog post “How to do distributed locking,” Kleppmann wrote: "there are two reasons why you might want a lock in a distributed application: for efficiency or for correctness". — [*How to do distributed locking (Martin Kleppmann’s blog)*](https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html?ref=antoinebuteau.com)

### Part 4: Event Sourcing and Stream Processing

1. **On Turning the Database Inside Out:** In the blog post “Turning the database inside-out with Apache Samza,” Kleppmann wrote: "it’s a surreptitious attempt to take the database architecture we know, and turn it inside out". — [Turning the database inside-out with Apache Samza (Martin Kleppmann’s blog, 2015)](https://martin.kleppmann.com/2015/03/04/turning-the-database-inside-out.html?ref=antoinebuteau.com).
2. **On Using the Log as Primary Storage:** In the blog post “Using logs to build a solid data infrastructure,” Kleppmann wrote: "if we’re writing everything to a log anyway, we might as well use the log as the primary storage medium". — [*Using logs to build a solid data infrastructure (Martin Kleppmann’s blog, 2015)*](https://martin.kleppmann.com/2015/05/27/logs-for-data-infrastructure.html?ref=antoinebuteau.com)
3. **On the Essence of Event Sourcing:** In the blog post “Stream processing, Event sourcing, Reactive, CEP… and making sense of it all,” Kleppmann wrote: "rather than performing destructive state mutation on a database when writing to it, we should record every write as a “command”, as an immutable event". — [Stream processing, Event sourcing, Reactive, CEP… and making sense of it all (Martin Kleppmann’s blog)](https://martin.kleppmann.com/2015/01/29/stream-processing-event-sourcing-reactive-cep.html?ref=antoinebuteau.com).
4. **On Writing as Understanding:** In the blog post “Hey, I'm writing a book,” Kleppmann wrote: "I love writing because it forces me to research something in depth, think it through, and then try to explain it in a logical way. That helps me understand it much better than if I just casually read about it". — [*Hey, I'm writing a book! (Martin Kleppmann’s blog)*](https://martin.kleppmann.com/2014/09/15/writing-a-book.html?ref=antoinebuteau.com)
5. **On Writing the Missing Book:** In the blog post “Hey, I'm writing a book,” Kleppmann wrote: "I am writing because the book I wanted to read didn’t exist". — [*Hey, I'm writing a book! (Martin Kleppmann’s blog)*](https://martin.kleppmann.com/2014/09/15/writing-a-book.html?ref=antoinebuteau.com)
6. **On Overwriting Data:** In the blog post “Turning the database inside-out with Apache Samza,” Kleppmann wrote: "The result is that the database overwrites the quantity value with the new value, i.e. it applies the update in the appropriate place". — [Turning the database inside-out with Apache Samza (Martin Kleppmann’s blog, 2015)](https://martin.kleppmann.com/2015/03/04/turning-the-database-inside-out.html?ref=antoinebuteau.com).
7. **On Processing Streams of Facts:** In the blog post “Turning the database inside-out with Apache Samza,” Kleppmann wrote: "A more fruitful approach is to take the streams of facts as they come in, and functionally process them in real-time". — [Turning the database inside-out with Apache Samza (Martin Kleppmann’s blog, 2015)](https://martin.kleppmann.com/2015/03/04/turning-the-database-inside-out.html?ref=antoinebuteau.com).
8. **On Cache Maintenance:** In the blog post “Turning the database inside-out with Apache Samza,” Kleppmann wrote: "cache maintenance should be the responsibility of the data infrastructure". — [Turning the database inside-out with Apache Samza (Martin Kleppmann’s blog, 2015)](https://martin.kleppmann.com/2015/03/04/turning-the-database-inside-out.html?ref=antoinebuteau.com).

### Part 5: Local-First Software and Ownership

1. **On Something More Than Offline First:** In a talk at Local-First Conf, Kleppmann said: "the reason we coined a new term was because we wanted to express something new something more than offline first". — [The past, present, and future of local-first, Martin Kleppmann (Local-First Conf), auto-generated captions](https://www.youtube.com/watch?v=NMq0vncHJvU&ref=antoinebuteau.com).
2. **On Local-First Not Being Local Only:** In a talk at Local-First Conf, Kleppmann said: "it's not local only software". — [*The past, present, and future of local-first, Martin Kleppmann (Local-First Conf), auto-generated captions*](https://www.youtube.com/watch?v=NMq0vncHJvU&ref=antoinebuteau.com)
3. **On Robustness Beyond the Network:** In a talk at Local-First Conf, Kleppmann said: "robustness not only against availability in the network sense where the network is down". — [The past, present, and future of local-first, Martin Kleppmann (Local-First Conf), auto-generated captions](https://www.youtube.com/watch?v=NMq0vncHJvU&ref=antoinebuteau.com).
4. **On Principles and Values:** In a talk at Local-First Conf, Kleppmann said: "local first is a set of principles and values". — [The past, present, and future of local-first, Martin Kleppmann (Local-First Conf), auto-generated captions](https://www.youtube.com/watch?v=NMq0vncHJvU&ref=antoinebuteau.com).

### Part 6: CRDTs and Collaborative Systems

### Part 7: Formal Verification and "Vericoding"

1. **On Edge Cases You Did Not Think of Testing:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "mathematically prove that the code always satisfies that spec (even on weird edge cases that you didn’t think of testing)". — [Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com).
2. **On Proof Instead of Review:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "rather than having humans review AI-generated code, I’d much rather have the AI prove to me that the code it has generated is correct". — [Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com).
3. **On Artisanal Bugs:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "If it can do that, I’ll take AI-generated code over handcrafted code (with all its artisanal bugs) any day!". — [*Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)*](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com)
4. **On the Cost of Bugs:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "for most systems, the expected cost of bugs is lower than the expected cost of using the proof techniques that would eliminate those bugs". — [Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com).
5. **On Verification Being Hard and Expensive:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "formal verification is simply very hard and expensive". — [*Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)*](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com)
6. **On Modelling a Distributed System in Isabelle/HOL:** In the blog post “Verifying distributed systems with Isabelle/HOL,” Kleppmann wrote: "it is quite straightforward to model a distributed system using structures that Isabelle/HOL provides: functions, lists, and sets". — [Verifying distributed systems with Isabelle/HOL (Martin Kleppmann’s blog, 2022)](https://martin.kleppmann.com/2022/10/12/verifying-distributed-systems-isabelle.html?ref=antoinebuteau.com).
7. **On the Right Invariant:** In the blog post “Verifying distributed systems with Isabelle/HOL,” Kleppmann wrote: "The real challenge in verifying distributed algorithms is to come up with the right invariant that is both true and also implies the properties you want your algorithm to have. Unfortunately, designing this invariant has to be done manually". — [Verifying distributed systems with Isabelle/HOL (Martin Kleppmann’s blog, 2022)](https://martin.kleppmann.com/2022/10/12/verifying-distributed-systems-isabelle.html?ref=antoinebuteau.com).
8. **On Defining the Specification:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "the challenge will move to correctly defining the specification: that is, how do you know that the properties that were proved are actually the properties that you cared about?". — [*Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)*](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com)
9. **On Verification Going Mainstream:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "I believe that AI will bring formal verification, which for decades has been a bit of a fringe pursuit, into the software engineering mainstream". — [Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com).
10. **On Culture Change:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "I suspect that soon the limiting factor will not be the technology, but the culture change required for people to realise that formal methods have become viable in practice". — [*Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)*](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com)
11. **On Precision and Probabilistic Models:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "the precision of formal verification counteracts the imprecise and probabilistic nature of LLMs". — [Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com).
12. **On Proof Scripts and Hallucination:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "writing proof scripts is one of the best applications for LLMs. It doesn’t matter if they hallucinate nonsense, because the proof checker will reject any invalid proof and force the AI agent to retry". — [Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com).
13. **On Vibe Coding With a Proof:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "I find it exciting to think that we could just specify in a high-level, declarative way the properties that we want some piece of code to have, and then to vibe code the implementation along with a proof that it satisfies the specification". — [Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com).
14. **On Not Looking at the Generated Code:** In the blog post “Prediction: AI will make formal verification go mainstream,” Kleppmann wrote: "we wouldn’t even need to bother looking at the AI-generated code any more, just like we don’t bother looking at the machine code generated by a compiler". — [*Prediction: AI will make formal verification go mainstream (Martin Kleppmann’s blog, 2025)*](https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html?ref=antoinebuteau.com)

### Part 8: Ethics, Responsibility, and the Future

1. **On Technology Used for Good and Bad:** In the blog post “The Investigatory Powers Bill would increase cybercrime,” Kleppmann wrote: "Any technology can be used for good and bad. It is not possible to eliminate “safe spaces” for criminals without also eliminating security from the computer systems that our daily lives depend on". — [The Investigatory Powers Bill would increase cybercrime (Martin Kleppmann’s blog)](https://martin.kleppmann.com/2015/11/10/investigatory-powers-bill.html?ref=antoinebuteau.com).