Articles for people who
ship the stack
Rewrites on React, Node.js, TypeScript and AI. A translated body is shown when it exists. If it does not, you see the English text and a note that says so.
Tagged: Async
The Rare Case Where JavaScript Runs Synchronously on Purpose
JavaScript almost always yields to the event loop while waiting on outside work. The rare case where a call blocks on purpose, and why that API exists at all.
4 min readInside libuv: The C Engine Behind Node.js Async IO
Inside libuv, the C library under Node.js: how the event loop, thread pool, handles and requests make non-blocking IO work, and where the threads really are.
6 min readTwenty-Five JavaScript Interview Scenarios From Production Bugs
Twenty-five JavaScript interview scenarios from real production bugs: races, layout thrash, idempotent payments, leaks, hydration, WeakMap caches, flaky tests.
20 min readJavaScript event loop: microtasks, macrotasks, and the call stack
Trace how promises, timers, and fetch callbacks move through microtask and task queues so async logs stop looking random in interviews and production bugs.
3 min readSerialize async work in JavaScript with a promise mutex
Serialize overlapping async work in JavaScript with a promise mutex: an AsyncLock chain runs requests FIFO so UI state stays ordered, no thread locks needed.
3 min readSnapshot or Live Value? Deciding What Delayed JavaScript Callbacks See
Learn why closures keep access to bindings rather than copies, and how to choose between snapshot and live data in timers, React effects, listeners and async code.
16 min readWhy Concurrent 401s Log Users Out, and the Single-Flight Refresh Fix
How parallel requests and refresh-token rotation race each other into surprise logouts, and how one shared refresh promise in an Axios interceptor prevents it.
6 min readUnderstanding JavaScript Closures and the Event Loop
JavaScript closures keep outer variables alive; the event loop orders the call stack, microtasks and macrotasks. Both explained with runnable code examples.
16 min read
About these articles
Request a 24h estimate
Need the same stack in a production operator layer? Send the brief — estimate within 24 hours.