<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kafka on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/kafka/</link><description>Recent content in Kafka 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/kafka/index.xml" rel="self" type="application/rss+xml"/><item><title>Event-Driven Microservices with Spring Cloud Stream, Kafka and RabbitMQ</title><link>https://samirsahoo.github.io/design-patterns-hub/microservices/communication/event-driven-spring-cloud-stream/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/microservices/communication/event-driven-spring-cloud-stream/</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;In an &lt;strong&gt;event-driven architecture&lt;/strong&gt;, services &lt;strong&gt;publish events&lt;/strong&gt; (facts such as &lt;code&gt;OrderPlaced&lt;/code&gt;) to a &lt;strong&gt;message broker&lt;/strong&gt;, and other services &lt;strong&gt;consume&lt;/strong&gt; them asynchronously. &lt;strong&gt;Spring Cloud Stream&lt;/strong&gt; lets you write producers and consumers as plain Java &lt;strong&gt;functions&lt;/strong&gt;, bound to &lt;strong&gt;Kafka&lt;/strong&gt;, &lt;strong&gt;RabbitMQ&lt;/strong&gt; or other brokers through &lt;strong&gt;binders&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Transactional Outbox and Idempotent Inbox</title><link>https://samirsahoo.github.io/design-patterns-hub/microservices/data-consistency/transactional-outbox/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/microservices/data-consistency/transactional-outbox/</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;transactional outbox&lt;/strong&gt; pattern publishes events reliably from a service that owns a database. Instead of writing to the database &lt;strong&gt;and&lt;/strong&gt; sending to a broker (two systems that cannot share a transaction), the service writes the business change &lt;strong&gt;and an outbox row&lt;/strong&gt; in &lt;strong&gt;one local transaction&lt;/strong&gt;. A separate relay later reads the outbox and publishes to the broker. The matching &lt;strong&gt;inbox&lt;/strong&gt; pattern lets consumers process each message once, even when it is delivered several times.&lt;/p&gt;</description></item><item><title>Message Queues and Delivery Semantics</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/building-blocks/message-queues-and-delivery-semantics/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/building-blocks/message-queues-and-delivery-semantics/</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;message queue&lt;/strong&gt; is a durable buffer between components: a &lt;strong&gt;producer&lt;/strong&gt; puts a message on it and continues; a &lt;strong&gt;consumer&lt;/strong&gt; takes it off and processes it later. The queue makes communication &lt;strong&gt;asynchronous&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;The handwritten notes summarise why this matters: in small systems writes are fast, but in large systems a request may take a long time, and with many clients the server cannot keep up. With a queue, the client gets an acknowledgement (a receipt) immediately, the task is processed when a worker is free, and the client can check the result later.&lt;/p&gt;</description></item><item><title>Stream Processing: Logs, Change Data Capture, Event Sourcing and Windows</title><link>https://samirsahoo.github.io/design-patterns-hub/data-systems/stream-processing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/data-systems/stream-processing/</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;Batch processing assumes the input is &lt;strong&gt;bounded&lt;/strong&gt;: a known, finite size, so a job can finish. Real data is &lt;strong&gt;unbounded&lt;/strong&gt;: users keep clicking, sensors keep measuring, orders keep arriving. Running batch jobs every day means results are a day late. &lt;strong&gt;Stream processing&lt;/strong&gt; handles each event shortly after it happens.&lt;/p&gt;</description></item></channel></rss>