<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Posts on Tuan Hiep TRAN — System Design &amp; AI Infra</title><link>https://tuanhiep.github.io/posts/</link><description>Recent content in Posts on Tuan Hiep TRAN — System Design &amp; AI Infra</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 09 May 2026 12:04:39 -0700</lastBuildDate><atom:link href="https://tuanhiep.github.io/posts/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://tuanhiep.github.io/posts/series_3/3.global_flash_sale_engine_inventory/</link><pubDate>Sat, 09 May 2026 12:04:39 -0700</pubDate><guid>https://tuanhiep.github.io/posts/series_3/3.global_flash_sale_engine_inventory/</guid><description/></item><item><title>Global Flash Sale Engine (2/4): Admission Control &amp; The Virtual Waiting Room</title><link>https://tuanhiep.github.io/posts/series_3/2.global_flash_sale_engine_admission/</link><pubDate>Sat, 09 May 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/series_3/2.global_flash_sale_engine_admission/</guid><description>Auto-scaling alone cannot save you from TCP connection exhaustion. We architect a Virtual Waiting Room using Async Polling with Jitter, Edge Bot Defense, and Cryptographic Tokens to decouple traffic flow from inventory capacity.</description></item><item><title>Global Flash Sale Engine (1/4): The Thundering Herd - Surviving the First Second</title><link>https://tuanhiep.github.io/posts/series_3/1.global_flash_sale_engine_thundering_herd/</link><pubDate>Sat, 02 May 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/series_3/1.global_flash_sale_engine_thundering_herd/</guid><description>You don&amp;rsquo;t survive a flash sale by scaling up your database. You survive by ruthlessly shaping and dropping traffic before it reaches your core.</description></item><item><title>Global Payment Gateway (4/4): Reconciliation &amp; Settlement - The Architecture of Trust</title><link>https://tuanhiep.github.io/posts/series_2/4.global_payment_gateway_reconciliation/</link><pubDate>Fri, 24 Apr 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/series_2/4.global_payment_gateway_reconciliation/</guid><description>Internal systems do not become correct at the API boundary; they become correct through reconciliation with external truth.</description></item><item><title>Global Payment Gateway (3/4): The Contended Ledger - Correctness Under Concurrency</title><link>https://tuanhiep.github.io/posts/series_2/3.global_payment_gateway_ledger/</link><pubDate>Sat, 18 Apr 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/series_2/3.global_payment_gateway_ledger/</guid><description>Balance is a lie; the journal is the truth. Explore how to architect a high-throughput ledger that preserves financial correctness under extreme concurrency.</description></item><item><title>Global Payment Gateway (2/4): Distributed Transactions &amp; The Saga Pattern</title><link>https://tuanhiep.github.io/posts/series_2/2.global_payment_gateway_sagas/</link><pubDate>Sat, 11 Apr 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/series_2/2.global_payment_gateway_sagas/</guid><description>Why Two-Phase Commit (2PC) fails at scale, and how to architect the Saga Pattern and Transactional Outbox to guarantee data consistency across microservices.</description></item><item><title>Global Payment Gateway (1/4): The Idempotent Payment API</title><link>https://tuanhiep.github.io/posts/series_2/1.global_payment_gateway_idempotency/</link><pubDate>Fri, 03 Apr 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/series_2/1.global_payment_gateway_idempotency/</guid><description>Exactly-once delivery is an illusion in distributed networks. In this post, we architect an Idempotent Payment API to guarantee financial correctness amidst network timeouts, race conditions, and retry storms.</description></item><item><title>Stock Exchange Core (4/4): Trade-offs, Scaling Limits &amp; Alternative Architectures</title><link>https://tuanhiep.github.io/posts/series_1/4.stock_exchange_tradeoffs/</link><pubDate>Sun, 29 Mar 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/series_1/4.stock_exchange_tradeoffs/</guid><description>When does the LMAX Disruptor fail? We explore the CAP theorem, quantify the brutal costs of Kernel Bypass, and provide a strict decision framework for system design.</description></item><item><title>Stock Exchange Core (3/4): High Availability &amp; Deterministic Fault Tolerance</title><link>https://tuanhiep.github.io/posts/series_1/3.stock_exchange_architecture/</link><pubDate>Sun, 22 Feb 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/series_1/3.stock_exchange_architecture/</guid><description>How to survive hardware crashes without a database. We explore Event Sourcing, the Sequencer pattern, and UDP Multicast to achieve 99.999% uptime in a single-threaded architecture.</description></item><item><title>Stock Exchange Core (2/4): The Single-Threaded Matching Engine</title><link>https://tuanhiep.github.io/posts/series_1/2.stock_exchange_matching_engine/</link><pubDate>Fri, 20 Feb 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/series_1/2.stock_exchange_matching_engine/</guid><description>Why multi-threading kills High-Frequency Trading systems. We explore lock-free concurrency, Mechanical Sympathy, and the LMAX Disruptor pattern to achieve sub-microsecond matching.</description></item><item><title>Stock Exchange Core (1/4): Anatomy of a Microsecond Order Book</title><link>https://tuanhiep.github.io/posts/series_1/1.stock_exchange_order_book/</link><pubDate>Wed, 18 Feb 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/series_1/1.stock_exchange_order_book/</guid><description>Designing a high-frequency trading Order Book. We formalize memory layout, trace state execution, and achieve strict O(1) cancellations.</description></item><item><title>Welcome to My Blog — System Design &amp; AI infrastructure</title><link>https://tuanhiep.github.io/posts/0.my_blog_system_design/</link><pubDate>Fri, 29 Aug 2025 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/posts/0.my_blog_system_design/</guid><description>A personal space to explore system design, AI infrastructure, and deep reflections on the world of technology.</description></item></channel></rss>