PLAIN/TEXT — ISSUE 309/456 COMPUTER SCIENCE · FOUNDATION / NETWORK PARTITIONS · ~4 MIN READING DATE: 2027-08-06 ARCHIVE: https://plaintext.click/newsletter/ SUBJECT: When a broken link forces a database to say no When a broken link forces a database to say no ============================================== / START HERE A working computer can lose contact with another working computer. A network partition is a communication failure that prevents parts of a service running on several computers from exchanging required messages. During that separation, some promises about answering requests and showing the latest completed changes cannot both be guaranteed. / WHY NOW Consider one shared number representing the last ticket. A service in one city has sold it, while a disconnected city receives a request to read the remaining count. What can that city safely answer? / THE IDEA For this question, consistency means each read or write behaves as though all operations occurred in one sequence that respects their real-time completion order. This strong property is called linearizability. A read started after a completed write must not pretend that write never happened. Availability in the CAP theorem means every request received by a non-failing participant eventually gets a valid result. It is not a percentage uptime target. A refusal or endless wait cannot satisfy the requirement merely by producing an error page or keeping the computer switched on. / THE FORMAL IDEA completed write → later read must reflect it - The arrow means the write finished before the read began, not simply that one timestamp is numerically smaller. - The operation model is a read/write register: a named storage location holding one value. A partition may prevent messages indefinitely. / RUN THE TINY EXAMPLE Change one thing. Predict what happens. Both cities initially store ticket count 1. The link fails. City A completes a write setting the count to 0. City B then receives a read, but has received no news of that write. Change one input: require B to answer despite the separation. Returning its old 1 can violate the shared sequence. Waiting for reliable knowledge protects the strong ordering promise but sacrifices availability for that request. Answering from isolated local knowledge cannot guarantee the same promise across all possible histories. / SO WHAT? B cannot distinguish a world where A sold the ticket from one where no sale occurred. Guessing zero does not solve this: in the second world it would be wrong. This lack of information is the underlying problem, not a shortage of clever programming. A system can choose different policies for ticket sales and cached descriptions because the acceptable mistakes differ. / ONE CAVEAT CAP is not a blanket instruction to choose any two desirable product features. The impossibility concerns particular consistency and availability guarantees when arbitrary partitions are allowed. Weaker read semantics or restricted operations can permit useful behaviour without satisfying that exact combination. / KEEP THIS When communication removes necessary knowledge, a service must relax its answer guarantee or stop promising an answer for every affected request. / SOURCE TRAIL [1] Gilbert and Lynch — Perspectives on the CAP theorem https://groups.csail.mit.edu/tds/papers/Gilbert/Brewer2.pdf NEXT: Why a bigger solar panel can still lose power --- HARD IDEAS. PLAIN TEXT. You are receiving this because you asked for one clear computer-science or physics idea each day. Unsubscribe: https://plaintext.click/unsubscribe View in browser: https://plaintext.click/newsletter/2027/08/2027-08-06-cap-partition-choice.html From: Plain/Text / Brickston Consulting · 30 N Gould St Ste N, Sheridan, WY 82801 US · knowledge@plaintext.click