<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Tăng Gia Hoài — Digital Systems</title>
    <link>http://tanggiahoai.id.vn</link>
    <description>Website và không gian kỹ thuật của Tăng Gia Hoài. Ghi chép chuyên sâu về backend engineering, hệ thống phân tán và tối ưu hóa cơ sở dữ liệu.</description>
    <language>vi</language>
    <lastBuildDate>Wed, 28 Oct 2026 17:23:22 GMT</lastBuildDate>
    <atom:link href="http://tanggiahoai.id.vn/feed.xml" rel="self" type="application/rss+xml"/>
    
    <item>
      <title>Tối Ưu Truy Vấn PostgreSQL 10M+ Bản Ghi: EXPLAIN ANALYZE, B-Tree Bloat &amp; Index-Only Scan</title>
      <link>http://tanggiahoai.id.vn/articles/postgresql-query-optimization-deep-dive</link>
      <guid isPermaLink="true">http://tanggiahoai.id.vn/articles/postgresql-query-optimization-deep-dive</guid>
      <pubDate>Sat, 21 Mar 2026 00:00:00 GMT</pubDate>
      <description>Kỹ thuật giải mã chi tiết EXPLAIN (ANALYZE, BUFFERS), khắc phục phân mảnh B-Tree index, tận dụng cơ chế HOT (Heap-Only Tuples) và tối ưu hóa buffer cache hit ratio trên 99%.</description>
      <author>devhoai070@gmail.com (Tăng Gia Hoài)</author>
      <category>PostgreSQL</category><category>Cơ Sở Dữ Liệu</category><category>Index</category><category>Hiệu Năng</category>
    </item>
    <item>
      <title>Bẫy Cấp Độ Cô Lập Giao Dịch &amp; Tranh Chấp Khóa (Lock Contention) Trong CSDL Quan Hệ</title>
      <link>http://tanggiahoai.id.vn/articles/transaction-isolation-and-lock-contention</link>
      <guid isPermaLink="true">http://tanggiahoai.id.vn/articles/transaction-isolation-and-lock-contention</guid>
      <pubDate>Wed, 18 Mar 2026 00:00:00 GMT</pubDate>
      <description>Phân tích từ góc độ hệ thống: Read Committed, Repeatable Read vs Serializable. Giải quyết bài toán trừ tồn kho (Inventory Overselling) không gây Deadlock bằng Optimistic Locking và SELECT FOR UPDATE NOWAIT.</description>
      <author>devhoai070@gmail.com (Tăng Gia Hoài)</author>
      <category>Cơ Sở Dữ Liệu</category><category>ACID</category><category>Concurrency</category><category>Khóa Giao Dịch</category>
    </item>
    <item>
      <title>Kiến Trúc Bộ Nhớ Đệm Đa Tầng (Multi-Tier Caching) &amp; Khống Chế Thảm Họa Cache Stampede</title>
      <link>http://tanggiahoai.id.vn/articles/multi-tier-caching-and-cache-stampede</link>
      <guid isPermaLink="true">http://tanggiahoai.id.vn/articles/multi-tier-caching-and-cache-stampede</guid>
      <pubDate>Sun, 15 Mar 2026 00:00:00 GMT</pubDate>
      <description>Mô hình kết hợp In-Memory Cache (zero-GC) và Redis Cluster. Kỹ thuật dùng Go singleflight và Mutex Lock phân tán triệt tiêu hoàn toàn hiện tượng Dog-piling khi cache key triệu truy cập hết hạn.</description>
      <author>devhoai070@gmail.com (Tăng Gia Hoài)</author>
      <category>Caching</category><category>Redis</category><category>Kiến Trúc Máy Chủ</category><category>Phân Tán</category>
    </item>
    <item>
      <title>Thiết Kế Idempotency Layer Cho Cổng Thanh Toán &amp; Dịch Vụ Giao Dịch Tài Chính</title>
      <link>http://tanggiahoai.id.vn/articles/designing-idempotent-payment-apis</link>
      <guid isPermaLink="true">http://tanggiahoai.id.vn/articles/designing-idempotent-payment-apis</guid>
      <pubDate>Thu, 05 Mar 2026 00:00:00 GMT</pubDate>
      <description>Giải quyết triệt để rủi ro mạng chập chờn, client tự động retry và lỗi trừ tiền trùng lặp (Double Charging) bằng cơ chế Idempotency Key, Request Hashing và khóa phân tán nguyên tử.</description>
      <author>devhoai070@gmail.com (Tăng Gia Hoài)</author>
      <category>Backend</category><category>Thanh Toán</category><category>Idempotency</category><category>Kiến Trúc</category>
    </item>
    <item>
      <title>Giải Mã Điểm Nghẽn Connection Pool Trong Go Backend &amp; Kiến Trúc PgBouncer</title>
      <link>http://tanggiahoai.id.vn/articles/database-connection-pooling-best-practices</link>
      <guid isPermaLink="true">http://tanggiahoai.id.vn/articles/database-connection-pooling-best-practices</guid>
      <pubDate>Mon, 02 Mar 2026 00:00:00 GMT</pubDate>
      <description>Hiểu tường tận cơ chế pooling của database/sql: SetMaxOpenConns, SetMaxIdleConns, ConnMaxLifetime. Cách phòng chống bão hòa kết nối (Exhaustion) và thiết lập PgBouncer Transaction Pooling chịu 50,000 QPS.</description>
      <author>devhoai070@gmail.com (Tăng Gia Hoài)</author>
      <category>Go</category><category>PostgreSQL</category><category>PgBouncer</category><category>Connection Pool</category>
    </item>
    <item>
      <title>Kiến Trúc Rate Limiting Phân Tán: Token Bucket, Sliding Window &amp; Redis Lua Script</title>
      <link>http://tanggiahoai.id.vn/articles/distributed-rate-limiting-algorithms</link>
      <guid isPermaLink="true">http://tanggiahoai.id.vn/articles/distributed-rate-limiting-algorithms</guid>
      <pubDate>Thu, 26 Feb 2026 00:00:00 GMT</pubDate>
      <description>So sánh định lượng Token Bucket, Leaky Bucket và Sliding Window Counter. Viết Lua script thực thi nguyên tử trên Redis để giới hạn tần suất truy cập chính xác mili-giây mà không sinh race condition.</description>
      <author>devhoai070@gmail.com (Tăng Gia Hoài)</author>
      <category>Rate Limiting</category><category>Redis</category><category>Bảo Mật</category><category>Hệ Thống Phân Tán</category>
    </item>
    <item>
      <title>Distributed Tracing &amp; Khả Năng Quan Sát (Observability) Với OpenTelemetry Trong Hệ Thống Microservices</title>
      <link>http://tanggiahoai.id.vn/articles/distributed-tracing-opentelemetry-observability</link>
      <guid isPermaLink="true">http://tanggiahoai.id.vn/articles/distributed-tracing-opentelemetry-observability</guid>
      <pubDate>Fri, 20 Feb 2026 00:00:00 GMT</pubDate>
      <description>Lan truyền ngữ cảnh phân tán qua chuẩn W3C Trace Context, tích hợp OpenTelemetry SDK thu thập Spans &amp; Traces, xác định chính xác nút thắt cổ chai p99 latency trên từng vi dịch vụ Go.</description>
      <author>devhoai070@gmail.com (Tăng Gia Hoài)</author>
      <category>Observability</category><category>OpenTelemetry</category><category>Distributed Tracing</category><category>DevOps</category>
    </item>
    <item>
      <title>Mổ Xẻ Escape Analysis &amp; Triệt Tiêu Cấp Phát Heap (Zero-Allocation) Trong Go</title>
      <link>http://tanggiahoai.id.vn/articles/zero-allocation-go-routines</link>
      <guid isPermaLink="true">http://tanggiahoai.id.vn/articles/zero-allocation-go-routines</guid>
      <pubDate>Wed, 12 Feb 2025 00:00:00 GMT</pubDate>
      <description>Phân tích cơ chế compiler đưa biến thoát ra Heap, đo lường ảnh hưởng của GC pause tới p99 tail latency và kỹ thuật thiết kế buffer phi cấp phát bằng sync.Pool và Ring Buffer.</description>
      <author>devhoai070@gmail.com (Tăng Gia Hoài)</author>
      <category>Go</category><category>Hiệu Năng</category><category>Bộ Nhớ</category><category>Profiling</category>
    </item>
    <item>
      <title>Kiểm Soát Render Budget &amp; Streaming SSR Với Next.js App Router Ở Quy Mô Lớn</title>
      <link>http://tanggiahoai.id.vn/articles/modern-web-vitals-scale</link>
      <guid isPermaLink="true">http://tanggiahoai.id.vn/articles/modern-web-vitals-scale</guid>
      <pubDate>Tue, 28 Jan 2025 00:00:00 GMT</pubDate>
      <description>Kinh nghiệm cắt giảm 75% Client JavaScript bundle, cô lập directive &quot;use client&quot; xuống leaf components, tận dụng React 19 Streaming SSR qua HTTP chunked transfer để tối ưu triệt để TTFB và INP.</description>
      <author>devhoai070@gmail.com (Tăng Gia Hoài)</author>
      <category>Next.js</category><category>Frontend Architecture</category><category>Web Vitals</category><category>Hiệu Năng</category>
    </item>
    <item>
      <title>Đồng Thuận Phân Tán Raft: Leader Election, Log Replication &amp; Bài Toán Phân Mảnh Mạng</title>
      <link>http://tanggiahoai.id.vn/articles/distributed-consensus-raft-in-practice</link>
      <guid isPermaLink="true">http://tanggiahoai.id.vn/articles/distributed-consensus-raft-in-practice</guid>
      <pubDate>Tue, 05 Nov 2024 00:00:00 GMT</pubDate>
      <description>Phân tích sâu cơ chế máy trạng thái của Raft, kỹ thuật Randomized Election Timeout tránh phân tán phiếu bầu (Split Vote), quy tắc an toàn cam kết log và bài học xử lý Split-Brain.</description>
      <author>devhoai070@gmail.com (Tăng Gia Hoài)</author>
      <category>Hệ Thống Phân Tán</category><category>Raft</category><category>Đồng Thuận</category><category>Khả Dụng</category>
    </item>
  </channel>
</rss>