How a Transaction We Forgot to Close Took Down a ServiceA survey API went down at 155 requests a minute while the database sat idle. The cause was a transaction we opened and never closed.4 min read·srekaravarshan.hashnode.devAug 13
Part 7: Closing the Loopasync/await is a state machine V8 compiles. requestAnimationFrame fires inside rendering. React 18 yields via MessageChannel. The full picture.23 min read·srekaravarshan.hashnode.devJul 11
Part 6: Microtasks and Why Two QueuesWhy two queues, not one? The answer involves Promise chain atomicity, drain-to-completion, and an engineering trade-off the spec made in 2015.28 min read·srekaravarshan.hashnode.devJul 11
Part 5: The Event Loop, MechanicallyThe HTML spec defines the event loop in 10 steps. Most developers have never read it. Plus: how Chromium integrates it with epoll.27 min read·srekaravarshan.hashnode.devJul 11
Part 4: Where JavaScript Actually RunsV8 is not a separate program — it's a library Chrome calls. The CPU never executes JavaScript text. Here's what actually runs when your code runs.29 min read·srekaravarshan.hashnode.devJun 17