Skip to content
Tagged articles

event-loop

123 articles · Page 2 of 2
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Oct 23, 2018 · Frontend Development

Mastering JavaScript Macrotasks, Microtasks, and Promise Timing

This article explains the differences between macrotasks and microtasks in the JavaScript event loop, shows how they affect Promise execution, provides practical code examples, and discusses how frameworks like Vue implement task scheduling, helping developers avoid dead‑loops and improve performance.

JavaScriptMacrotasksMicrotasks
0 likes · 13 min read
Mastering JavaScript Macrotasks, Microtasks, and Promise Timing
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Sep 30, 2018 · Fundamentals

Why Does setTimeout Run After Promise.then? Unraveling JavaScript’s Event Loop

This article explains how JavaScript’s single‑threaded model achieves asynchronous behavior through macro‑tasks and micro‑tasks, compares the browser and Node.js event‑loop implementations, and demonstrates the timing differences between setTimeout, setImmediate, and process.nextTick with practical code examples.

JavaScriptMicrotasksNode.js
0 likes · 9 min read
Why Does setTimeout Run After Promise.then? Unraveling JavaScript’s Event Loop
UC Tech Team
UC Tech Team
Sep 25, 2018 · Frontend Development

Understanding JavaScript Event Loop: Theory and Practice

This article explains the JavaScript Event Loop mechanism in depth, covering the call stack, heap memory, macro‑ and micro‑tasks, and their queues, and demonstrates the execution order through detailed examples and step‑by‑step visualizations of multiple event‑loop cycles.

ConcurrencyJavaScriptNode.js
0 likes · 7 min read
Understanding JavaScript Event Loop: Theory and Practice
21CTO
21CTO
Aug 27, 2018 · Frontend Development

Mastering Browser Architecture: From Multi‑Process to JS Event Loop

This comprehensive guide walks experienced front‑end developers through the browser's multi‑process model, internal threading, rendering pipeline, JavaScript single‑threaded execution, event loop mechanics, Web Workers, and performance‑related concepts like macrotasks, microtasks, and hardware‑accelerated compositing.

JavaScriptThreadbrowser
0 likes · 35 min read
Mastering Browser Architecture: From Multi‑Process to JS Event Loop
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 20, 2018 · Frontend Development

Mastering Browser Processes, Threads, and the JavaScript Event Loop

This comprehensive guide walks you through browser multi‑process architecture, the relationship between processes and threads, the rendering pipeline, Web Workers, and the intricacies of JavaScript's single‑threaded execution and event‑loop mechanisms, providing a solid knowledge framework for front‑end developers.

JavaScriptWeb Workersbrowser
0 likes · 33 min read
Mastering Browser Processes, Threads, and the JavaScript Event Loop
21CTO
21CTO
Dec 27, 2017 · Backend Development

Why Node.js? Speed, Concurrency, and Design Patterns Explained

Node.js, a high‑performance JavaScript runtime, offers non‑blocking concurrency via an event loop, benefits from TypeScript’s type safety, follows the observer design pattern, and is ideal for small‑to‑medium projects, though large enterprise apps may require TypeScript for maintainability.

BackendTypeScriptdesign-patterns
0 likes · 4 min read
Why Node.js? Speed, Concurrency, and Design Patterns Explained
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Oct 30, 2017 · Databases

Inside Memcached vs Redis: Architecture, Memory, and Persistence

An in‑depth comparison of Memcached and Redis reveals how both key‑value cache servers operate, covering their service models, event loops, memory allocation strategies, database implementations, persistence mechanisms, transaction support, and publish/subscribe features, highlighting the trade‑offs between simplicity and rich functionality.

CachePersistenceRedis
0 likes · 33 min read
Inside Memcached vs Redis: Architecture, Memory, and Persistence
21CTO
21CTO
Jul 21, 2017 · Fundamentals

What Happens When Your Browser Loads a Web Page? From DNS to Rendering Explained

This article walks through every step a browser takes to fetch and display a website—including DNS cache lookup, OS and ISP resolution, TCP handshake, HTTP request handling, and the rendering pipeline—while also clarifying core concepts such as callbacks, async vs sync, and the event loop.

DNSasynchronousbrowser
0 likes · 6 min read
What Happens When Your Browser Loads a Web Page? From DNS to Rendering Explained
Hujiang Technology
Hujiang Technology
Jul 11, 2017 · Backend Development

Understanding Node.js HTTP Request Processing and Its Performance Overheads

This article explains how Node.js handles HTTP requests using an I/O multiplexing model, walks through a simple hello‑world server, examines connection and request events, discusses keep‑alive, Expect headers, proxying, and presents performance measurements comparing Node.js to a pure C implementation.

HTTPNode.jsProxy
0 likes · 14 min read
Understanding Node.js HTTP Request Processing and Its Performance Overheads
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 21, 2017 · Frontend Development

Master JavaScript Event Loop: From Basics to Advanced Examples

This article explains the JavaScript event loop in depth, covering execution contexts, call stacks, macro‑ and micro‑tasks, and how APIs like setTimeout, Promise, process.nextTick, and setImmediate interact, using clear diagrams and step‑by‑step examples for both browsers and Node.js.

Node.jsPromiseTask Queue
0 likes · 12 min read
Master JavaScript Event Loop: From Basics to Advanced Examples
MaGe Linux Operations
MaGe Linux Operations
Apr 11, 2017 · Fundamentals

Master Python asyncio: From Coroutines to Event Loops Explained

Learn how Python's asyncio library enables asynchronous I/O by defining coroutines with async/await, managing event loops, handling futures, using gather and wait, and properly closing loops, with clear code examples illustrating each concept and practical tips for concurrent programming.

asynchronous IOasynciocoroutine
0 likes · 6 min read
Master Python asyncio: From Coroutines to Event Loops Explained
Qunar Tech Salon
Qunar Tech Salon
Nov 23, 2016 · Databases

Redis Client/Server Interaction Process: A Step‑by‑Step Overview

This article provides a comprehensive, source‑code‑driven walkthrough of the Redis client‑server interaction, detailing the six main steps from socket establishment to command execution and response, while also covering auxiliary mechanisms such as beforeSleep processing, key expiration strategies, and the underlying epoll I/O multiplexing model.

EpollKey ExpirationRedis
0 likes · 16 min read
Redis Client/Server Interaction Process: A Step‑by‑Step Overview
dbaplus Community
dbaplus Community
Oct 30, 2016 · Databases

Memcached vs Redis: Architecture, Memory Management & Persistence

This article provides a detailed comparison of Memcached and Redis by examining their service models, event loops, memory allocation strategies, database structures, persistence mechanisms (RDB and AOF), transaction support, and publish‑subscribe features, highlighting the design choices, trade‑offs, and implementation nuances of each key‑value caching system.

MemcachedMemory ManagementPersistence
0 likes · 35 min read
Memcached vs Redis: Architecture, Memory Management & Persistence
Node Underground
Node Underground
Aug 24, 2016 · Backend Development

Master Node.js Core: Event Loop, Streams, Clusters & More

This article reviews the essential Node.js core concepts—including the event loop, global and process objects, event emitters, streams and buffers, clustering, asynchronous error handling, and creating C++ addons—to help developers solidify their understanding and fill knowledge gaps.

BackendC++ AddonsNode.js
0 likes · 2 min read
Master Node.js Core: Event Loop, Streams, Clusters & More