<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Patterns on Data, Distributed Systems &amp; Cybersecurity Knowledge Hub</title>
		<link>https://samirsahoo.github.io/data-security/tags/patterns/</link>
		<description>Recent content in Patterns 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/patterns/index.xml" rel="self" type="application/rss+xml" />
			<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>
