<?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>From Contention to Throughput on Tuan Hiep TRAN — The Principal Craft</title><link>https://tuanhiep.github.io/principal/series/from-contention-to-throughput/</link><description>Recent content in From Contention to Throughput on Tuan Hiep TRAN — The Principal Craft</description><generator>Hugo -- 0.162.1</generator><language>en-us</language><lastBuildDate>Mon, 13 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tuanhiep.github.io/principal/series/from-contention-to-throughput/index.xml" rel="self" type="application/rss+xml"/><item><title>From Contention to Throughput (5/5): The Grand Finale — Database / Queue vs Kafka vs Workflow Engines</title><link>https://tuanhiep.github.io/principal/posts/series_2/5.the_grand_finale_decision_framework/</link><pubDate>Mon, 13 Apr 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/principal/posts/series_2/5.the_grand_finale_decision_framework/</guid><description>The ultimate decision framework. We resolve the holy war between Database / Queue primitives, Event Streams, and Workflow Engines by defining state lifespan and coordination boundaries.</description></item><item><title>From Contention to Throughput (4/5): Scaling Beyond a Single Database — Partitioning &amp; The Connection Collapse</title><link>https://tuanhiep.github.io/principal/posts/series_2/4.scaling_beyond_postgresql_sharding/</link><pubDate>Sat, 11 Apr 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/principal/posts/series_2/4.scaling_beyond_postgresql_sharding/</guid><description>When a single PostgreSQL instance hits its physical limits, we must shard. We explore the Connection Collapse trap, multiplexing proxies, and intelligent shard routing.</description></item><item><title>From Contention to Throughput (3/5): Designing for Failure — Lease Systems &amp; Distributed Recovery</title><link>https://tuanhiep.github.io/principal/posts/series_2/3.designing_for_failure_lease_systems/</link><pubDate>Fri, 10 Apr 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/principal/posts/series_2/3.designing_for_failure_lease_systems/</guid><description>When SKIP LOCKED is not enough. We explore the State Model, the Law of Temporal Ownership, and how Fencing Tokens prevent distributed split-brain.</description></item><item><title>From Contention to Throughput (2/5): Turning PostgreSQL into a Lock-Free Queue — The SKIP LOCKED Pattern</title><link>https://tuanhiep.github.io/principal/posts/series_2/2.turning_postgresql_into_a_lock_free_queue/</link><pubDate>Thu, 02 Apr 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/principal/posts/series_2/2.turning_postgresql_into_a_lock_free_queue/</guid><description>How to resolve massive database lock contention without deploying Kafka. We explore Quantitative Capacity, the Law of Non-Blocking Acquisition, and the SKIP LOCKED paradigm.</description></item><item><title>From Contention to Throughput (1/5): Move the Work, Not the Latency — The Pre-allocation Paradigm</title><link>https://tuanhiep.github.io/principal/posts/series_2/1.the_law_of_decoupled_computation/</link><pubDate>Wed, 01 Apr 2026 00:00:00 +0000</pubDate><guid>https://tuanhiep.github.io/principal/posts/series_2/1.the_law_of_decoupled_computation/</guid><description>Why Compute-on-Demand fails at scale. We explore the Law of Decoupled Computation, the Decision Framework, and how to eliminate latency from the critical path.</description></item></channel></rss>