<?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 Sagar Panda | DevOps &amp; Cloud Infra Engineer</title><link>https://new.sagarpanda.com/tags/kafka/</link><description>Recent content in Kafka on Sagar Panda | DevOps &amp; Cloud Infra Engineer</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 18 Mar 2026 19:26:10 +0530</lastBuildDate><atom:link href="https://new.sagarpanda.com/tags/kafka/index.xml" rel="self" type="application/rss+xml"/><item><title>Kafka - The Calm Brain in the Middle of Chaotic Microservices.</title><link>https://new.sagarpanda.com/blogs/kafka/</link><pubDate>Wed, 18 Mar 2026 19:26:10 +0530</pubDate><guid>https://new.sagarpanda.com/blogs/kafka/</guid><description>&lt;p&gt;
&lt;figure
 class="image-figure not-prose my-8"
 data-lightbox-enabled="
 true
 "
 data-gallery-type="auto"
 data-image-width="0"
 data-image-height="0"
 data-image-src="https://miro.medium.com/v2/resize:fit:1400/format:webp/1*FtTi1Yxel568GbnO7l0_0Q.png"
&gt;
 &lt;div class="image-container"&gt;
 &lt;img
 src="https://miro.medium.com/v2/resize:fit:1400/format:webp/1*FtTi1Yxel568GbnO7l0_0Q.png"
 alt="captionless image"
 
 
 loading="lazy"
 decoding="async"
 data-gallery-src="https://miro.medium.com/v2/resize:fit:1400/format:webp/1*FtTi1Yxel568GbnO7l0_0Q.png"
 data-gallery-alt="captionless image"
 data-gallery-title=""
 /&gt;&lt;/div&gt;

 &lt;/figure&gt;
&lt;/p&gt;
&lt;h3 id="-what-it-is"&gt;💡 What it is:&lt;a href="#-what-it-is" class="heading-anchor" aria-label="Link to this section"&gt;&lt;svg class="h-4 w-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"&gt;&lt;g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"&gt;&lt;path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/&gt;&lt;path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;At its core, &lt;strong&gt;Kafka is like a high-speed, super-durable logbook&lt;/strong&gt; for a company.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;What:&lt;/strong&gt; Kafka is a &lt;em&gt;distributed event streaming platform&lt;/em&gt;. Think of it as a central nervous system for data. It takes in massive amounts of data (events) from many sources in real-time and makes that data available to many destinations&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Why:&lt;/strong&gt; Its main superpowers are &lt;strong&gt;speed&lt;/strong&gt; and &lt;strong&gt;reliability&lt;/strong&gt;. It&amp;rsquo;s built to handle a massive volume of messages (like millions per second) very quickly. It&amp;rsquo;s also &amp;ldquo;fault-tolerant,&amp;rdquo; meaning if one part of the system fails, no data is lost, and the system keeps running.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;How it works:&lt;/strong&gt; It uses a &amp;ldquo;publish-subscribe&amp;rdquo; model.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Producers&lt;/strong&gt; (like a microservice for Order in a e-com app) &lt;em&gt;write&lt;/em&gt; events into Kafka.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Kafka&lt;/strong&gt; stores these events in an ordered log (like a notebook) for as long as you want (e.g., one day, one year, or forever).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Consumers&lt;/strong&gt; (like a database, an analytics dashboard, or another app) &lt;em&gt;read&lt;/em&gt; the events from the log at their own pace. A single event can be read by many different consumers.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="-key-components--terms"&gt;🔑 Key Components &amp;amp; Terms&lt;a href="#-key-components--terms" class="heading-anchor" aria-label="Link to this section"&gt;&lt;svg class="h-4 w-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"&gt;&lt;g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"&gt;&lt;path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/&gt;&lt;path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Event:&lt;/strong&gt; A single piece of data. This could be anything: an order, a website click, a financial transaction, a temperature reading, etc.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Producer:&lt;/strong&gt; An application that &lt;em&gt;writes&lt;/em&gt; (publishes) events to Kafka.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Consumer:&lt;/strong&gt; An application that &lt;em&gt;reads&lt;/em&gt; (subscribes to) events from Kafka.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Broker:&lt;/strong&gt; A single Kafka server. Brokers are the heart of the system; they receive, store, and serve the data. A Kafka system is usually a &lt;strong&gt;Cluster&lt;/strong&gt; (group) of multiple brokers working together for reliability and scale.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Topic:&lt;/strong&gt; The category or &amp;ldquo;notebook&amp;rdquo; where events are stored. For example, you might have a&lt;code&gt;orders&lt;/code&gt; topic, a &lt;code&gt;payments&lt;/code&gt; topic, and an &lt;code&gt;inventory_updates&lt;/code&gt; topic.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Partition:&lt;/strong&gt; A topic is split into several logs called partitions. This is how Kafka achieves its high speed—it can read and write to multiple partitions at the same time (in parallel).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Consumer Group:&lt;/strong&gt; A group of consumers working together to read from a topic. Kafka automatically balances the partitions among the consumers in a group so that each event is processed by only one consumer in that group.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;figure
 class="image-figure not-prose my-8"
 data-lightbox-enabled="
 true
 "
 data-gallery-type="auto"
 data-image-width="0"
 data-image-height="0"
 data-image-src="https://miro.medium.com/v2/resize:fit:1400/format:webp/1*aVVUQJl01_rFudUxO_ttSA.png"
&gt;
 &lt;div class="image-container"&gt;
 &lt;img
 src="https://miro.medium.com/v2/resize:fit:1400/format:webp/1*aVVUQJl01_rFudUxO_ttSA.png"
 alt="captionless image"
 
 
 loading="lazy"
 decoding="async"
 data-gallery-src="https://miro.medium.com/v2/resize:fit:1400/format:webp/1*aVVUQJl01_rFudUxO_ttSA.png"
 data-gallery-alt="captionless image"
 data-gallery-title=""
 /&gt;&lt;/div&gt;

 &lt;/figure&gt;
&lt;/p&gt;</description></item></channel></rss>