Tagged articles
17 articles
Page 1 of 1
JD Tech
JD Tech
Apr 3, 2024 · Backend Development

Understanding JavaScript Engines: QuickJS, V8, TurboFan, and Integration with libuv

This article provides a comprehensive technical overview of JavaScript language standards, the architecture and optimization techniques of major JavaScript engines such as V8 and TurboFan, introduces the lightweight QuickJS engine with its features, file layout and memory management, and demonstrates how to embed QuickJS with libuv for asynchronous I/O using detailed C code examples.

C APIEmbeddingEngine
0 likes · 15 min read
Understanding JavaScript Engines: QuickJS, V8, TurboFan, and Integration with libuv
ELab Team
ELab Team
Mar 2, 2023 · Backend Development

Node.js TCP Connections Explained: Event Loop & Libuv Architecture

This article walks through a complete TCP connection example in Node.js, detailing server and client code, the three-layer Node.js architecture (JS, C++, C), the initialization process, Libuv’s event‑loop phases, task scheduling, I/O models, and how Node.js maintains non‑blocking, concurrent connections.

Backend DevelopmentNode.jsTCP
0 likes · 35 min read
Node.js TCP Connections Explained: Event Loop & Libuv Architecture
Baidu Geek Talk
Baidu Geek Talk
Dec 21, 2022 · Backend Development

Understanding Node.js: Architecture, Event Loop, and Asynchronous I/O

Node.js is a server‑side JavaScript runtime built on V8 that replaces the browser environment with native libraries, uses libuv’s event loop and thread pool to provide non‑blocking asynchronous I/O, and organizes its architecture into application code, V8, bindings, and libuv layers for efficient backend development.

Backend DevelopmentJavaScriptNode.js
0 likes · 16 min read
Understanding Node.js: Architecture, Event Loop, and Asynchronous I/O
Node Underground
Node Underground
Sep 26, 2022 · Backend Development

Mastering Node.js: Architecture, APIs, and the Event Loop Explained

This comprehensive guide explores Node.js’s architecture, core APIs, global variables, built‑in modules, function styles, the event‑loop mechanics, task scheduling, next‑tick and microtasks, libuv’s role, and strategies for off‑loading work, providing developers with a deep understanding of how Node.js runs JavaScript efficiently.

Backend DevelopmentNode.jsasynchronous programming
0 likes · 23 min read
Mastering Node.js: Architecture, APIs, and the Event Loop Explained
ByteDance Web Infra
ByteDance Web Infra
Sep 16, 2021 · Backend Development

Deep Dive into Node.js Architecture and Core Module Implementation

This article provides a comprehensive overview of Node.js’s architecture, including its composition, code structure, startup process, event loop phases, process and thread management, core modules such as Cluster, libuv thread pool, signal handling, file operations, and networking protocols, illustrating how the runtime integrates V8 and operating‑system features.

BackendNode.jsThread
0 likes · 29 min read
Deep Dive into Node.js Architecture and Core Module Implementation
Weekly Large Model Application
Weekly Large Model Application
Jun 16, 2021 · Fundamentals

Understanding libuv’s Design: A Deep Dive into Its Event Loop and Cross‑Platform Architecture

libuv is a cross‑platform asynchronous I/O library originally built for Node.js that abstracts event‑driven I/O via handles and requests, provides a single‑threaded event loop with platform‑specific poll mechanisms, and uses a global thread pool for file and DNS operations, all while maintaining a consistent execution model.

Node.jsasynchronous I/Ocross-platform
0 likes · 9 min read
Understanding libuv’s Design: A Deep Dive into Its Event Loop and Cross‑Platform Architecture
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Mar 31, 2021 · Backend Development

Unveiling libuv’s Linux Event Loop: epoll, Thread Pools, and Timers Explained

This article provides a deep technical walkthrough of libuv’s Linux implementation, covering epoll‑based I/O handling, level‑ and edge‑triggered events, the event‑loop architecture, timer management with a min‑heap, thread‑pool integration, and the mechanisms that drive asynchronous callbacks in Node.js.

LinuxSystems ProgrammingTimers
0 likes · 34 min read
Unveiling libuv’s Linux Event Loop: epoll, Thread Pools, and Timers Explained
System Architect Go
System Architect Go
Sep 24, 2019 · Backend Development

Do CPU‑Intensive Tasks Block Node.js? An Experimental Study of libuv Thread Pool

An experiment demonstrates that CPU‑intensive encryption tasks do not block Node.js when the number of concurrent tasks does not exceed libuv’s default four‑thread pool, but adding a fifth task causes blocking, illustrating how libuv’s thread pool size and environment variable UV_THREADPOOL_SIZE affect concurrency.

CPU-intensiveNode.jslibuv
0 likes · 3 min read
Do CPU‑Intensive Tasks Block Node.js? An Experimental Study of libuv Thread Pool
21CTO
21CTO
May 10, 2018 · Backend Development

How a Plug‑In Architecture Transforms Cross‑Platform Long‑Connection Components

This article explains how a unified, cross‑platform long‑connection component built on libuv, mbedTLS and WebSocket was refactored into a plug‑in architecture that decouples layers, uses double‑linked structures and function pointers, and dramatically improves flexibility and maintainability.

CNetworkingWebSocket
0 likes · 24 min read
How a Plug‑In Architecture Transforms Cross‑Platform Long‑Connection Components
Hujiang Technology
Hujiang Technology
Mar 24, 2017 · Backend Development

Understanding the Startup Process of Node.js

This article explains how Node.js initializes by combining Google’s V8 engine with the libuv asynchronous I/O library, details the main function flow, event loop, thread pools, environment creation, module binding, and demonstrates exposing a C++ object to JavaScript via a native addon.

Backend DevelopmentC++ addonJavaScript
0 likes · 9 min read
Understanding the Startup Process of Node.js
Node Underground
Node Underground
Dec 3, 2015 · Backend Development

How Does Node.js Perform Synchronous Operations on an Asynchronous Engine?

This article explains how Node.js implements synchronous file system and child‑process APIs on top of its asynchronous libuv core, covering the underlying C/C++ bindings, error handling, debugging techniques, and the practical trade‑offs of using sync methods in real‑world scripts.

Node.jsSynchronouschild_process
0 likes · 11 min read
How Does Node.js Perform Synchronous Operations on an Asynchronous Engine?