Lorbic._

Decoding the mechanics of high-performance systems.

Technical Journal // Recent Articles
Jul '26

Designing a Distributed Rate Limiter with Redis

A full system design of a production rate limiter. Covers every major algorithm (token bucket, sliding window, leaky bucket, fixed window), their tradeoffs, how they break in a distributed system, how Redis fixes them, and how Stripe, Cloudflare, and API gateways actually deploy this in production.

Jun '26

Nobody Will Read This

Writing documentation, comments, or even blog posts into the void, and doing it anyway.

Jun '26

What is DRY? (And Other Things We Say at 3 AM)

DRY is a rule we all know. But at 3 AM with a crashing server, the copy-paste starts looking pretty reasonable.

Jun '26

So, We Are Writing Efficient Software Again

RAM is up 400%. CPUs cost 15% more. The free hardware lunch is finally over. Welcome back to the 80s, where every byte counts.

Jun '26

Constructing Concurrent Inverted Indexes in Go

Building a thread-safe inverted index from scratch in Go. Covers sharded mutexes, lock contention profiling, slice pooling to avoid GC pressure, and benchmark comparisons against a naive sync.RWMutex approach under varying read/write ratios.

May '26

Why Explaining Technical Difficulty is Hard

"It's just a simple query". Why the distance between a logical requirement and its infrastructure cost is the most expensive gap in engineering.

May '26

Just About Go Time

A breakdown of the absolute absurdity of human time, monotonic clocks in Go, and the one true way to store time across PostgreSQL, Couchbase, and mobile clients.

May '26

Building a Poor Document Store inside PostgreSQL

A forensic analysis of why abusing JSONB for schemaless architecture leads to write amplification, TOAST bloat, and catastrophic query planner failures.

Apr '26

Migrating Cloudflare to Terraform

A technical reference on migrating existing Cloudflare infrastructure to Terraform. Includes an automated bootstrapping script to bypass manual state imports and handle API edge cases.

Apr '26

A Tale of Web Vitals

A technical guide to Web Vitals. Solve LCP, TBT, CLS, and Accessibility issues using automated build-time pipelines and vanilla JS patches.