<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Saga on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/saga/</link><description>Recent content in Saga 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/saga/index.xml" rel="self" type="application/rss+xml"/><item><title>Designing an Order Management System</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/order-management-system/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/order-management-system/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;This case study designs the system that takes a customer&amp;rsquo;s order in an online shop, reserves stock, takes payment and hands the order to fulfilment. It follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt; and reuses the retail domain from the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/domain-driven-design/fundamentals/"&gt;DDD articles&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Saga Pattern: Choreography versus Orchestration</title><link>https://samirsahoo.github.io/design-patterns-hub/microservices/data-consistency/saga-pattern/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/microservices/data-consistency/saga-pattern/</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;A &lt;strong&gt;saga&lt;/strong&gt; is a sequence of &lt;strong&gt;local transactions&lt;/strong&gt;, one per service. Each step commits in its own database and triggers the next. If a step fails, the saga runs &lt;strong&gt;compensating transactions&lt;/strong&gt; that semantically undo the steps already completed. Sagas give microservices business-level consistency without a distributed transaction.&lt;/p&gt;</description></item></channel></rss>