Wall Clocks, Monotonic Clocks, and Hybrid Logical Clocks: Why Distributed Time Is Hard
Ask two services what time it is and you will get two different answers. Not a few microseconds apart —
Ask two services what time it is and you will get two different answers. Not a few microseconds apart —
Adding a second WebSocket server is the moment most real-time architectures break. The first server worked because it held everything
CAP is not a pick-two menu. What the theorem actually constrains, how real systems choose, and the five questions to ask before yours does. … Continue readingSWE Fundamentals #1: The CAP Theorem — What It Actually Promises (and What It Doesn’t)
Suppose you run a cache cluster of 24 nodes and each application server picks a node with the simplest rule
Continue readingConsistent Hashing: Why mod-N Breaks Your Cache and How the Ring Fixes It
Every Go service that talks to PostgreSQL sits on top of a pool, and almost every incident review that mentions
Continue readingConnection Pooling Is a Queue: Sizing pgxpool Against PostgreSQL’s Process Model
Most services read the same rows over and over. A user profile endpoint gets hammered by the same traffic pattern
Continue readingClient-Side Caching with Redis: Invalidation Is the Whole Design
Replica lag is one of those distributed-systems facts everyone accepts in the abstract and nobody plans for in the code.
Here is a failure mode that shows up in every system with more than two backends: round robin distributes requests
Continue readingLoad Balancing Beyond Round Robin: Least Outstanding Requests and Consistent Hashing
If you run a large language model behind a product, you have probably internalized an uncomfortable trade-off. The big frontier
Continue readingLLM Routing and Cascading: Send Every Query to the Cheapest Model That Can Handle It
The sidecar pattern has been part of the Kubernetes toolkit for as long as pods have existed: run a second