From Contention to Throughput (4/5): Scaling Beyond a Single Database — Partitioning & The Connection Collapse

When a single PostgreSQL instance hits its physical limits, we must shard. We explore the Connection Collapse trap, multiplexing proxies, and intelligent shard routing.

April 11, 2026 · 5 min · Hiep

From Contention to Throughput (2/5): Turning PostgreSQL into a Lock-Free Queue — The SKIP LOCKED Pattern

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.

April 2, 2026 · 8 min · Hiep

From Contention to Throughput (1/5): Move the Work, Not the Latency — The Pre-allocation Paradigm

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.

April 1, 2026 · 7 min · Hiep

Mastering Enterprise Complexity (5/5): Designing Deterministic Systems

The grand synthesis. We combine Deterministic Routing, Orthogonality, Global Governance, and Snapshot-Oriented Immutability into a single Deterministic Orchestration Engine.

March 31, 2026 · 5 min · Hiep

Mastering Enterprise Complexity (4/5): Designing Deterministic Pipelines with Zero-Cost Rollbacks

How to survive pipeline failures without data corruption. We explore Snapshot-Oriented Execution, the limits of Database Transactions, and O(1) In-Memory Rollbacks.

March 30, 2026 · 6 min · Hiep

Mastering Enterprise Complexity (3/5): Global Governance and the Fallacy of Distributed Ordering

Why relying on @Order in a distributed codebase leads to ‘Global Blindness’. We explore how to regain control of a massive pipeline through Centralized Static Registries.

March 29, 2026 · 6 min · Hiep

Mastering Enterprise Complexity (2/5): Orthogonal Architecture & The Extension Layer

How to prevent your core domain from rotting with side-effects. We explore Orthogonal Architecture, Blast Radius containment, and the principle of Core Blindness.

March 28, 2026 · 6 min · Hiep

Mastering Enterprise Complexity (1/5): Routing as a First-Class Problem

When systems scale, they don’t fail because of incorrect logic; they fail due to a loss of control over execution order. Here is how to build a Deterministic Strategy Pipeline.

March 27, 2026 · 5 min · Hiep