<?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 — Backend</title>
    <link>https://coffeecode.vn/categories/backend</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/backend/rss.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>Mã hoá nội bộ</title>
      <link>https://coffeecode.vn/posts/ma-hoa-noi-bo</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/ma-hoa-noi-bo</guid>
      <description>Cùng 199 trường, cùng dữ liệu: 1.840 byte hay 16.256 byte, tuỳ khoá đó từng lớn tới đâu.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Stream</title>
      <link>https://coffeecode.vn/posts/stream</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/stream</guid>
      <description>Một tiêu thụ quên XACK làm bộ nhớ phình 19,7 lần — và cắt bớt stream không cứu được.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Hạn dùng khoá</title>
      <link>https://coffeecode.vn/posts/han-dung-khoa</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/han-dung-khoa</guid>
      <description>SET xoá mất TTL nhưng APPEND thì không. Và Redis dọn 100.000 khoá hết hạn trong dưới một giây.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Phân mảnh bộ nhớ</title>
      <link>https://coffeecode.vn/posts/phan-manh-bo-nho</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/phan-manh-bo-nho</guid>
      <description>Xoá 270.000 khoá mà RSS không giảm một byte. Và bật activedefrag xong vẫn không có gì xảy ra.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Lệnh chậm làm nghẽn cả máy chủ</title>
      <link>https://coffeecode.vn/posts/lenh-cham-lam-nghen-ca-may-chu</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/lenh-cham-lam-nghen-ca-may-chu</guid>
      <description>Một lệnh KEYS đẩy độ trễ PING từ 1 ms lên 263 ms. Và DEL còn tệ hơn KEYS.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Chính sách loại bỏ</title>
      <link>https://coffeecode.vn/posts/chinh-sach-loai-bo</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/chinh-sach-loai-bo</guid>
      <description>volatile-lru khi không khoá nào có TTL chính là noeviction. Và LRU của Redis chỉ hơn random một chút.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Giao dịch MULTI/EXEC</title>
      <link>https://coffeecode.vn/posts/giao-dich-multi-exec</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/giao-dich-multi-exec</guid>
      <description>Lệnh lỗi giữa giao dịch không làm huỷ gì cả — các lệnh khác vẫn chạy và vẫn giữ kết quả.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Pipeline</title>
      <link>https://coffeecode.vn/posts/pipeline</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/pipeline</guid>
      <description>Đường ống 10.000 cho 47,9 lần thông lượng. Đường ống 100.000 thì tụt còn một nửa.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Bitmap và HyperLogLog</title>
      <link>https://coffeecode.vn/posts/bitmap-va-hyperloglog</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/bitmap-va-hyperloglog</guid>
      <description>Đếm một triệu phần tử khác nhau bằng 14.384 byte, sai số 0,12%. Và PFADD còn nhanh hơn SADD.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Hash, List, Set, Sorted Set</title>
      <link>https://coffeecode.vn/posts/hash-list-set-sorted-set</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/hash-list-set-sorted-set</guid>
      <description>Tập 512 số nguyên tốn 2,6 byte mỗi số. Thêm một phần tử nữa là 48,2 — gấp 18,6 lần.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Một luồng mà nhanh</title>
      <link>https://coffeecode.vn/posts/mot-luong-ma-nhanh</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/mot-luong-ma-nhanh</guid>
      <description>Một kết nối duy nhất đi từ 25.850 lên 1.136.364 ops/s mà không đổi gì trong Redis. Nút thắt không phải CPU.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Chuỗi và bộ nhớ thật</title>
      <link>https://coffeecode.vn/posts/chuoi-va-bo-nho-that</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/chuoi-va-bo-nho-that</guid>
      <description>Cùng một chuỗi 1024 byte tốn 1.328 hay 2.608 byte tuỳ cách bạn ghi nó vào. Chênh 96%.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Redis là gì và không là gì</title>
      <link>https://coffeecode.vn/posts/redis-la-gi-va-khong-la-gi</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/redis-la-gi-va-khong-la-gi</guid>
      <description>Redis nhanh hơn PostgreSQL 4,1 lần khi ghi — không phải 100 lần. Và phần lớn khoảng cách đó là độ bền, không phải kiến trúc.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Lua script</title>
      <link>https://coffeecode.vn/posts/lua-script</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/lua-script</guid>
      <description>Script chạy 3 giây thì mọi khách hàng khác chờ đúng 3 giây. Và bộ nhớ cache script không bao giờ tự dọn.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Functions</title>
      <link>https://coffeecode.vn/posts/functions</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/functions</guid>
      <description>Khởi động lại Redis: script biến mất, function còn nguyên. Nhưng tốc độ thì y hệt nhau.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Pub/Sub</title>
      <link>https://coffeecode.vn/posts/pub-sub</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/pub-sub</guid>
      <description>50 bản tin gửi trong lúc thuê bao mất kết nối: nhận lại được 0. Và thuê bao đọc chậm thì bị Redis ngắt.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Kết nối và pool</title>
      <link>https://coffeecode.vn/posts/ket-noi-va-pool</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/ket-noi-va-pool</guid>
      <description>Mở kết nối mới cho mỗi lệnh chậm 5,5 lần. Có mật khẩu thì 6,4 lần. Và khi chạm maxclients, redis-cli cũng không vào được.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Danh sách chờ và hàng đợi</title>
      <link>https://coffeecode.vn/posts/danh-sach-cho-va-hang-doi</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/danh-sach-cho-va-hang-doi</guid>
      <description>BLPOP nhận việc sau 0,3 ms; vòng lặp hỏi mỗi 100 ms mất 50,6 ms và tốn gấp 10 lần số lệnh.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>RDB</title>
      <link>https://coffeecode.vn/posts/rdb</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/rdb</guid>
      <description>Ghi đè 7 triệu khoá trong lúc chụp làm copy-on-write nhảy từ 1,4 MB lên 87 MB — mà INFO memory không thấy gì.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
    <item>
      <title>Cluster</title>
      <link>https://coffeecode.vn/posts/cluster</link>
      <guid isPermaLink="true">https://coffeecode.vn/posts/cluster</guid>
      <description>Khách hàng không biết bản đồ slot chạy chậm 1,63 lần vì 67% lệnh bị chuyển hướng. Và MGET ngừng hoạt động.</description>
      <pubDate>Tue, 1 Sep 2026 00:00:00 +0700</pubDate>
      <category>Backend</category>
    </item>
  </channel>
</rss>
