<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cà Phê &amp; Code — Message Queue</title>
    <link>https://coffeecode.vn/categories/message-queue</link>
    <description>Cà Phê &amp; Code là blog dành cho những người yêu công nghệ và lập trình. Nơi chia sẻ kiến thức coding, công cụ hữu ích, xu hướng công nghệ, kinh nghiệm phát triển phần mềm và những câu chuyện phía sau màn hình — tất cả được kể theo cách gần gũi, dễ hiểu, như một cuộc trò chuyện bên tách cà phê.</description>
    <language>vi</language>
    <atom:link href="https://coffeecode.vn/categories/message-queue/rss.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>min.insync.replicas</title>
      <link>https://coffeecode.vn/posts/min-insync-replicas</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/min-insync-replicas</guid>
      <description>Đặt bằng 3 với replication-factor 3 thì mọi lần bảo trì đều làm dừng ghi. Và có một kiểu hỏng mà không cấu hình topic nào cứu nổi.</description>
      <pubDate>Sun, 30 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Consumer: nhóm và phân chia partition</title>
      <link>https://coffeecode.vn/posts/consumer-nhom-va-phan-chia-partition</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/consumer-nhom-va-phan-chia-partition</guid>
      <description>Cân bằng lại kiểu hợp tác giữ được partition đang chạy, nhưng tổng thời gian ngừng lại cao gấp 375 lần. Đo cả ba lần.</description>
      <pubDate>Sun, 30 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Consumer: chốt offset</title>
      <link>https://coffeecode.vn/posts/consumer-chot-offset</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/consumer-chot-offset</guid>
      <description>Cùng một lần sập: chốt tự động cho 1.150 tin trùng, chốt sau cho 50 tin trùng, chốt trước làm mất hẳn 50 tin mà không có lỗi nào.</description>
      <pubDate>Sun, 30 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Khoá tin và thứ tự</title>
      <link>https://coffeecode.vn/posts/khoa-tin-va-thu-tu</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/khoa-tin-va-thu-tu</guid>
      <description>Gửi 1 đến 12 đúng thứ tự, consumer nhận về 1-5-9-2-3-4. Và tăng partition làm 9 trong 20 khoá đổi chỗ vĩnh viễn.</description>
      <pubDate>Sun, 30 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Cân bằng lại nhóm</title>
      <link>https://coffeecode.vn/posts/can-bang-lai-nhom-consumer</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/can-bang-lai-nhom-consumer</guid>
      <description>Chiến lược chia mặc định cho ra 2 partition với consumer này và 4 với consumer kia. Và một dòng cấu hình xoá sạch cân bằng lại khi khởi động lại.</description>
      <pubDate>Sun, 30 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Độ trễ đầu-cuối</title>
      <link>https://coffeecode.vn/posts/do-tre-dau-cuoi-cua-kafka</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/do-tre-dau-cuoi-cua-kafka</guid>
      <description>Kafka mặc định cho 0,35 ms. Một dòng fetch.min.bytes đẩy nó lên 503 ms — chậm hơn 1.439 lần mà không có lỗi nào.</description>
      <pubDate>Sun, 30 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Bản sao và ISR</title>
      <link>https://coffeecode.vn/posts/ban-sao-va-isr</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/ban-sao-va-isr</guid>
      <description>Giết một broker: 9.142 ms để bầu leader mới, không mất tin nào nhưng có tin mất 11,7 giây mới tới. Và broker sống lại thì ngồi không.</description>
      <pubDate>Sun, 30 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Số partition bao nhiêu là đủ</title>
      <link>https://coffeecode.vn/posts/so-partition-bao-nhieu-la-du</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/so-partition-bao-nhieu-la-du</guid>
      <description>Một partition đã đạt 83% thông lượng đỉnh. 128 partition không nhanh hơn 4. Nhưng bộ nhớ broker thì tăng gấp 3,4 lần.</description>
      <pubDate>Sun, 30 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Dựng một broker và gửi tin đầu tiên</title>
      <link>https://coffeecode.vn/posts/dung-mot-broker-va-gui-tin-dau-tien</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/dung-mot-broker-va-gui-tin-dau-tien</guid>
      <description>Khởi động 2 giây, chiếm 290 MB. Và một cái bẫy khi đo: công cụ dòng lệnh tốn 0,86 giây trong khi gửi tin thật chỉ mất 0,89 mili giây.</description>
      <pubDate>Sat, 29 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Topic, partition và offset</title>
      <link>https://coffeecode.vn/posts/topic-partition-va-offset</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/topic-partition-va-offset</guid>
      <description>Bốn key vào bốn partition cho ra 5000/0/0/15000 — hai partition rỗng hoàn toàn. Đo cách Kafka thật sự xếp dữ liệu trên đĩa.</description>
      <pubDate>Sat, 29 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Producer: acks và độ bền</title>
      <link>https://coffeecode.vn/posts/producer-acks-va-do-ben</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/producer-acks-va-do-ben</guid>
      <description>acks=0 chậm hơn acks=1 5%. Chỉ acks=all mới thật sự tốn — và đây là cái nửa thông lượng đó mua được.</description>
      <pubDate>Sat, 29 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Producer: gộp lô và nén</title>
      <link>https://coffeecode.vn/posts/producer-gop-lo-va-nen</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/producer-gop-lo-va-nen</guid>
      <description>Gộp lô làm độ trễ giảm 1.567 lần chứ không tăng. Và nén trên dữ liệu ngẫu nhiên khiến tệp to hơn bản không nén.</description>
      <pubDate>Sat, 29 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Idempotent và ghi đúng một lần</title>
      <link>https://coffeecode.vn/posts/idempotent-va-ghi-dung-mot-lan</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/idempotent-va-ghi-dung-mot-lan</guid>
      <description>Giao dịch bị huỷ vẫn nằm nguyên trên đĩa và vẫn chiếm offset. Hệ quả: consumer bắt kịp hoàn toàn vẫn hiện lag khác 0.</description>
      <pubDate>Sat, 29 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
    <item>
      <title>Kafka là gì và không là gì</title>
      <link>https://coffeecode.vn/posts/kafka-la-gi-va-khong-la-gi</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/kafka-la-gi-va-khong-la-gi</guid>
      <description>Ba nhóm tiêu thụ cùng đọc một tin mà không ai làm mất của ai. Và 493.421 tin mỗi giây đến từ gộp lô, không từ mỗi tin nhanh.</description>
      <pubDate>Sat, 29 Aug 2026 00:00:00 +0700</pubDate>
      <category>Message Queue</category>
    </item>
  </channel>
</rss>
