Writing
The CAP theorem, explained with a daycare waitlist
What the CAP theorem actually means for a custom build, explained through a plain waitlist with two front desks instead of database jargon.
20 November 2026

TL;DR
- The CAP theorem says that when part of a distributed system loses contact with the rest, it cannot stay both fully consistent and fully available at the same time. It has to pick one.
- Picture a waitlist with two front desks that briefly cannot talk to each other. One design freezes new signups until the desks reconnect. The other keeps taking signups and reconciles any double-booking afterward.
- Network splits are not a rare edge case to plan around, they are a certainty over a long enough timeline, so the real question is which failure you would rather have when one happens.
- Most ordinary actions, a signup, a view count, a notification, are fine with the “keep going, fix it later” choice. Anything involving money, a single physical slot, or safety usually is not.
- This is a decision a custom build makes once, early, in how the data is modelled and which tools sit underneath it, not a setting you flip later without real rework.
- We walk through this tradeoff with you before writing code, because it decides more about how your tool behaves under stress than almost anything else in the build.
What the CAP theorem actually says
The CAP theorem comes from a 2000 conjecture by Eric Brewer and a formal proof two years later by Seth Gilbert and Nancy Lynch, published as Brewer’s Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Services. Stripped of the academic framing, it says a distributed data store can promise at most two of three things at once: consistency (every read gets the latest write, everywhere), availability (every request gets a response, even a degraded one), and partition tolerance (the system keeps working even when a network split separates parts of it from each other).
That third property is the one people skip past, and it is the one that makes the other two matter. A partition is not an exotic failure. It is any moment when two parts of your system that are supposed to talk to each other, cannot, even briefly: a flaky connection between regions, a load balancer routing around a degraded node, a brief network blip inside a cloud provider’s own infrastructure. Over the life of any real system, that will happen. So the theorem is really asking: when it happens, which do you want, strict correctness or an answer at all?
The daycare waitlist, not the database
Here is the same choice without any database vocabulary in it. A business runs a waitlist for a service with a hard capacity limit, and it has two front desks taking signups, maybe two staff members on two different tablets. For a minute, their connection to each other drops. A family walks up to each desk at the same moment, both wanting the one remaining spot.
Design one, consistency over availability. The moment the desks lose contact, both refuse new signups and show “please wait, reconnecting.” Nobody gets double-booked, because nobody gets booked at all until the desks can confirm with each other again. The system chose correctness over being responsive, and for that one minute, it is technically unavailable.
Design two, availability over consistency. Both desks keep accepting signups independently through the outage, because refusing a family at the door is worse than a rare mixup. When the connection comes back, the system notices both desks promised the same slot, and a human resolves it: a phone call, an apology, maybe a second spot found. The system stayed available the whole time, but for that window it was not strictly consistent. Technically, it was eventually consistent: both desks converge on the same truth once they can talk again, just not instantly.
Neither choice is wrong. They are different bets about which kind of failure your business can tolerate, made explicit instead of accidental.
Why “pick two” is really “pick one”
In practice, almost nobody gets to choose whether their system is partition tolerant, because almost nobody gets to choose whether networks occasionally fail. That makes partition tolerance less a choice and more a fact of distributed systems life, which means the real decision, the one you actually control, is what happens during a partition: lean toward consistency (often shortened to CP) or lean toward availability (AP). That reframing is standard in distributed systems writing and is worth internalizing, because “CAP” as three equal choices is a slight oversimplification of what engineers actually decide day to day.
Where this shows up in an actual build
A like count, a page view, a notification that a form was submitted: these are classic AP territory. If two servers briefly disagree on the exact count for a second, nobody’s business breaks, and insisting on perfect consistency there would only make the product feel slower for no real benefit.
A payment, a single bookable slot, an inventory count that cannot go negative: these usually want CP behavior, or at minimum a design that treats the rare conflict as a real event with a real resolution path, not something to shrug off. This is exactly why an ordinary relational database with real transactions, the kind PostgreSQL provides and that platforms like Supabase build on top of, is often the right foundation for anything involving money or a hard physical limit. It is also why a document-oriented store such as Firebase or a general document database can be a perfectly good choice for the parts of an app that do not need that guarantee, and a poor one for the parts that do.
The mistake we see most often is not picking the wrong side of this tradeoff. It is not knowing a tradeoff was being made at all, because the database that happened to be easiest to start with quietly decided it for you.
The part that is easy to get wrong: assuming it never happens
The riskiest version of this mistake is not choosing availability when you meant to choose consistency. It is building as though a partition will never occur at all, and discovering the gap only when it does. A checkout flow that assumes the payment database and the inventory database will always agree, with no plan for the rare moment they briefly do not, tends to fail in the most visible way possible: a customer gets charged for something that was already sold to someone else, found out about after the fact rather than designed around in advance. The fix is rarely “make the system perfectly consistent everywhere,” which is often slower and more fragile than it is worth. It is deciding in advance which conflicts are cheap to fix after the fact, like a duplicate signup resolved with a phone call, and which ones need to be prevented outright, like double-selling the same seat, and building the second kind with real transactional guarantees rather than hoping the conflict never shows up.
This is a decision we make with you, before writing code
A custom tool build starts with scoping exactly this kind of question: which parts of the system need strict correctness, which can tolerate a brief, correctable disagreement, and what that implies for the database and architecture underneath. Paid discovery work on a build is credited to it, so working this out properly is not a free add-on we skip to save time, it is treated as real, billed design work, because getting it wrong is expensive to unwind later.
If your product has a part that absolutely cannot double-book, overcharge, or oversell, and a part where a once-in-a-while inconsistency would genuinely not matter, that is the right way to think about the whole system from day one, not something to retrofit once the first conflict actually happens in production.
Talk to us about your data model
If you are scoping a build and unsure which parts need strong consistency and which can run looser, tell us what you are making and we will walk through it with you honestly, including when the simpler option is the right one. We reply within one or two business days.

The monthly AWS note
One AWS cost or reliability fix a month.
For small SaaS teams running AWS without a DevOps hire. One short email a month:
- One concrete fix for cost or reliability, with the console steps or CLI command
- A common AWS mistake small teams make, and how to avoid it
- New RavGB guides and free tools, before anyone else
From RavGB Technologies Inc., Saddlemont NE, Calgary, AB, Canada (hello@ravgb.com). By subscribing you agree to receive this monthly email. No spam, we never share your address, and you can unsubscribe in one click, any time.