Taming the Thread Zoo: Building Lock-Free, GC-Friendly Concurrency in Kotlin

Grab a chair, refill your caffeine reservoir, and let’s talk about that four-letter word we all pretend not to hate: lock. You know the drill: everything runs fine in staging, but the moment real traffic turns up, a single hot lock starts playing king-of-the-CPU-hill while your tail-latency graph draws modern art. At that point management... Continue reading Taming the Thread Zoo: Building Lock-Free, GC-Friendly Concurrency in Kotlin

The TTL-Driven Coroutine Cache: Because Life Is Too Short for Stale Data

I decided to publish some interesting libraries I develop for internal experiments – after all, one can only watch their side projects gather dust for so long before letting them roam free on GitHub. This time, I want to show off a TTL-based in-memory cache for coroutines, complete with a neat annotation-based code generation trick... Continue reading The TTL-Driven Coroutine Cache: Because Life Is Too Short for Stale Data

Implicit Temporal Coupling in Asynchronous Systems

Introduction: A Race Against… Yourself? You’ve just rolled out a fancy asynchronous service that purrs like a well-tuned engine. Except it occasionally goes “pop.” Not a life-threatening pop, no giant performance catastrophes or memory leaks, but the kind of glitch that leaves everyone scratching their heads, thinking: “I’m sure that wasn’t happening yesterday.” If you’ve... Continue reading Implicit Temporal Coupling in Asynchronous Systems