<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cap-Theorem on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/cap-theorem/</link><description>Recent content in Cap-Theorem on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/tags/cap-theorem/index.xml" rel="self" type="application/rss+xml"/><item><title>CAP Theorem and PACELC</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/building-blocks/cap-theorem-and-pacelc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/building-blocks/cap-theorem-and-pacelc/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;strong&gt;CAP theorem&lt;/strong&gt; (Eric Brewer, 2000; proved by Gilbert and Lynch, 2002) concerns a distributed data store with replicas. It names three properties:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Consistency (C):&lt;/strong&gt; every read receives the most recent write or an error. Here this means &lt;strong&gt;linearizability&lt;/strong&gt;, not the C of ACID.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Availability (A):&lt;/strong&gt; every request to a non-failed node receives a non-error response (without a guarantee that it is the latest write).&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Partition tolerance (P):&lt;/strong&gt; the system keeps operating even when the network drops or delays messages between nodes.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The theorem says: &lt;strong&gt;when a network partition happens, a system must choose between consistency and availability.&lt;/strong&gt; It cannot provide both.&lt;/p&gt;</description></item></channel></rss>