<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Distributed-Systems on Data, Distributed Systems &amp; Cybersecurity Knowledge Hub</title>
		<link>https://samirsahoo.github.io/data-security/tags/distributed-systems/</link>
		<description>Recent content in Distributed-Systems on Data, Distributed Systems &amp; Cybersecurity 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/data-security/tags/distributed-systems/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Consistency Models, CAP, PACELC and Consensus</title>
				<link>https://samirsahoo.github.io/data-security/distributed/consistency-and-consensus/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://samirsahoo.github.io/data-security/distributed/consistency-and-consensus/</guid>
				<description>&lt;h2 id=&#34;simple-definition&#34;&gt;Simple definition&lt;a class=&#34;heading-anchor&#34; href=&#34;#simple-definition&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;A &lt;strong&gt;consistency model&lt;/strong&gt; is a promise about &lt;strong&gt;what a read can return&lt;/strong&gt; after writes, when data is copied across machines. Strong models behave like a single copy. Weaker models allow stale or reordered reads in exchange for &lt;strong&gt;latency and availability&lt;/strong&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Distributed Transactions: 2PC, XA and the Alternatives</title>
				<link>https://samirsahoo.github.io/data-security/distributed/distributed-transactions/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://samirsahoo.github.io/data-security/distributed/distributed-transactions/</guid>
				<description>&lt;h2 id=&#34;simple-definition&#34;&gt;Simple definition&lt;a class=&#34;heading-anchor&#34; href=&#34;#simple-definition&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;A &lt;strong&gt;distributed transaction&lt;/strong&gt; is an all-or-nothing update that spans &lt;strong&gt;more than one database or resource&lt;/strong&gt;, for example debiting an account in one service and creating a shipment in another.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-problem&#34;&gt;The problem&lt;a class=&#34;heading-anchor&#34; href=&#34;#the-problem&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Inside one database, ACID transactions are cheap and reliable. Microservices use &lt;strong&gt;database per service&lt;/strong&gt;, and integrations add brokers and external APIs. Code like this:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Transactional Outbox, CDC and Idempotent Consumers</title>
				<link>https://samirsahoo.github.io/data-security/distributed/outbox-cdc-idempotency/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://samirsahoo.github.io/data-security/distributed/outbox-cdc-idempotency/</guid>
				<description>&lt;h2 id=&#34;simple-definition&#34;&gt;Simple definition&lt;a class=&#34;heading-anchor&#34; href=&#34;#simple-definition&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Transactional outbox:&lt;/strong&gt; write the business change &lt;strong&gt;and&lt;/strong&gt; the event to the &lt;strong&gt;same database in one transaction&lt;/strong&gt;, then publish the event from the database to the broker.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Change data capture (CDC):&lt;/strong&gt; read a database&amp;rsquo;s transaction log and stream every change as events.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Idempotent consumer:&lt;/strong&gt; a consumer that gives the same result whether a message arrives once or several times.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Together they give &lt;strong&gt;effectively-once&lt;/strong&gt; processing without distributed transactions.&lt;/p&gt;</description>
			</item>
			<item>
				<title>The Saga Pattern</title>
				<link>https://samirsahoo.github.io/data-security/distributed/saga-pattern/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://samirsahoo.github.io/data-security/distributed/saga-pattern/</guid>
				<description>&lt;h2 id=&#34;simple-definition&#34;&gt;Simple definition&lt;a class=&#34;heading-anchor&#34; href=&#34;#simple-definition&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;A &lt;strong&gt;saga&lt;/strong&gt; is a sequence of &lt;strong&gt;local transactions&lt;/strong&gt;, one per service. If a step fails, the saga runs &lt;strong&gt;compensating transactions&lt;/strong&gt; to semantically undo the steps that already succeeded. It replaces one big distributed transaction with steps that are each atomic, plus an explicit undo plan.&lt;/p&gt;</description>
			</item>
			<item>
				<title>CQRS and Event Sourcing</title>
				<link>https://samirsahoo.github.io/data-security/distributed/cqrs-and-event-sourcing/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://samirsahoo.github.io/data-security/distributed/cqrs-and-event-sourcing/</guid>
				<description>&lt;h2 id=&#34;simple-definition&#34;&gt;Simple definition&lt;a class=&#34;heading-anchor&#34; href=&#34;#simple-definition&#34; aria-label=&#34;Link to this section&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;CQRS (Command Query Responsibility Segregation):&lt;/strong&gt; use &lt;strong&gt;one model to change data&lt;/strong&gt; (commands) and &lt;strong&gt;one or more different models to read it&lt;/strong&gt; (queries).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Event sourcing:&lt;/strong&gt; store &lt;strong&gt;every change as an immutable event&lt;/strong&gt;, and derive current state by replaying them, instead of storing only the latest state.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;They are often used together, but each works without the other.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
