ARAbdul Rahmaninblog.abdulrdeveloper.me·1d ago · 8 min readBehind the Gate: What Node.js Really Does When You Run node app.jsIntroduction We use Node.js every day. We write node app.js and our code runs. But if somebody asks "what is happening behind the scene?", very few developers know the answer. For most of us, Node.js 30
SNSahil Nasariwalainjsvisualized.hashnode.dev·Sep 28 · 4 min readsetTimeout(0) Is Lying to You (and the Event Loop Can Prove It)Quick test. No running it, no Googling. What does this print? console.log('start'); setTimeout(() => { console.log('timeout'); }, 0); Promise.resolve().then(() => { console.log('promise'); }); 00
ARAlok Rajinnode-js.hashnode.dev·Jul 31 · 6 min readThe Node.js Event Loop ExplainedThere is a peculiar truth about Node.js that surprises many developers the first time they hear it. It has one main thread. Just one. It actually in a more efficient manner. It simply works smarter. A00
SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·Jul 11 · 28 min readPart 6: Microtasks and Why Two QueuesWhat no one teaches you about the JavaScript Event Loop — Part 6 of 8 A puzzle, slightly harder Promise.resolve().then(() => { console.log('1'); Promise.resolve().then(() => console.log('2'))00
SKShubham Kumar Singhinblog.realdev.club·Jul 3 · 5 min readHow I Solved the Ordered Parallel Batcher Problem in JavaScriptEvery coding problem teaches you something new. Recently, I worked on an interesting asynchronous JavaScript interview question called Ordered Parallel Batcher. At first, I thought the solution would 00
PPranavinpromises-async-await.hashnode.dev·Jun 25 · 11 min readJavaScript Runtime Secrets: The Call Stack, Browser APIs, and Microtask PriorityUnderstanding Asynchronous JavaScript: How JavaScript Handles Multiple Tasks Without Blocking ⏱️ Read Time: ~15 mins | 🎯 Level: Beginner to Advanced ⚡ TL;DR (Quick Summary) JavaScript is single-th00
GNGidudu Nicholasinfreecodecamp.org·Jun 25 · 21 min readAdvanced Dart: Learn Asynchronous Programming with Streams, Isolates, and the Event LoopI had been writing Flutter apps for over a year before I actually understood how Dart handles concurrency. I knew how to use await. I knew FutureBuilder and StreamBuilder well enough to get things wor00
SMS M Piyas Mahamude Alifintechopinion.hashnode.dev·Jun 24 · 19 min readNode.js Thread Pool Under the Hood The Secret Engine Behind libuv's Architecture, Scheduling, Optimization, and High ConcurrencyIntroduction: The Lie You Were Told Every Node.js tutorial opens with the same sentence: "Node.js is single-threaded." It is a sentence that is both true and wildly misleading at the same time. Yes,00
SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·Jun 17 · 29 min readPart 4: Where JavaScript Actually RunsWhat no one teaches you about the JavaScript Event Loop — Part 4 of 8 A puzzle in DevTools Open any page in your browser. Open DevTools. Click the Performance tab. Hit the record button (the circle).00
ASANKESH SHARMAiniamankeshsharma.hashnode.dev·Jun 17 · 3 min readPromises in JavascriptIntroduction A promise is a object that represents eventual completion (or failure) of asyncronous operations. Simple defination: A placeholder for a future value. Use of Promise: To execute asyncron10