<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Consumption Model on Zhuifeng Notes</title><link>https://4f0a9a3b.wangpeng.pages.dev/en/tags/consumption-model/</link><description>Recent content in Consumption Model on Zhuifeng Notes</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 25 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://4f0a9a3b.wangpeng.pages.dev/en/tags/consumption-model/index.xml" rel="self" type="application/rss+xml"/><item><title>Kafka Storage and Consumption Model</title><link>https://4f0a9a3b.wangpeng.pages.dev/en/tech/kafka/storage-consumer/</link><pubDate>Tue, 25 Aug 2026 00:00:00 +0000</pubDate><guid>https://4f0a9a3b.wangpeng.pages.dev/en/tech/kafka/storage-consumer/</guid><description>&lt;p&gt;Kafka&amp;rsquo;s high performance relies on &amp;ldquo;partitioned log + sequential writes + batched pulls&amp;rdquo;. Understanding the storage and consumption model is essential to configure parallelism correctly and avoid duplicate consumption.&lt;/p&gt;&#10;&lt;h2 id="topics-and-partitions"&gt;Topics and Partitions&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;A &lt;strong&gt;topic&lt;/strong&gt; is a logical subject; a &lt;strong&gt;partition&lt;/strong&gt; is the physical unit of parallelism, and messages are only appended to the end of a partition.&lt;/li&gt;&#10;&lt;li&gt;Each partition is an ordered, immutable log composed of multiple segment files, maintaining an offset (unique and monotonically increasing within the partition).&lt;/li&gt;&#10;&lt;li&gt;The partition count determines the upper bound of consumption parallelism: at any moment a partition is consumed by exactly one consumer within a group.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="offset-and-consumption-position"&gt;Offset and Consumption Position&#10;&lt;/h2&gt;&#10;&lt;p&gt;The position a consumer commits after processing messages is the &lt;strong&gt;offset&lt;/strong&gt;, which Kafka stores in the internal topic &lt;code&gt;__consumer_offsets&lt;/code&gt;:&lt;/p&gt;</description></item></channel></rss>