Tagged articles
libuv
17 articles · Page 1 of 1

JD TechApr 3, 2024 · Backend Development
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

This article explores the design and implementation of a portable, high‑performance JavaScript engine, covering ECMAScript basics, V8 TurboFan optimization, the QuickJS engine architecture, memory management, building and extending QuickJS, and integrating it with libuv for asynchronous I/O.
C++EngineJavaScript
0 likes · 14 min read

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.
Node.jsTCPbackend development
0 likes · 35 min read

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.
JavaScriptNode.jsasynchronous I/O
0 likes · 16 min read

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.
Asynchronous ProgrammingNode.jsbackend development
0 likes · 23 min read

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

The article examines why libuv handles file operations with a thread pool rather than true asynchronous disk I/O, outlining the engineering challenges of async disk APIs, the advantages of a blocking‑call thread pool, and details of libuv’s thread‑pool configuration and performance implications.
File I/Oasynchronous disk I/Oevent-loop
0 likes · 6 min read

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

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.
EpollLinuxSystems Programming
0 likes · 34 min read

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

This article dives deep into Node.js internals, explaining why the runtime is both single‑threaded and multi‑threaded, how the event loop, libuv thread pool, epoll/kqueue, and worker_threads collaborate to deliver non‑blocking I/O and efficient concurrency.
EpollNode.jsasynchronous I/O
0 likes · 10 min read

This article explains Node.js architecture, showing how JavaScript code interacts with the operating system via C/C++ bindings, clarifies the single‑threaded model backed by a thread pool, and details the libuv‑based event loop that enables high‑concurrency non‑blocking I/O.
BackendJavaScript RuntimeNode.js
0 likes · 15 min read

This article explains Node.js's internal architecture—including the standard library, bindings, V8 engine, libuv I/O library, code structure, event loop, and concurrency model—providing a comprehensive overview for developers who want to master backend development with Node.
JavaScriptNode.jsV8
0 likes · 12 min read


21CTOMay 10, 2018 · Backend Development
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.
C++NetworkingPlugin Architecture
0 likes · 24 min read

This article describes the motivation, layered architecture, protocol implementation details, and a plug‑in refactoring approach for a cross‑platform long‑connection component that unifies iOS, Android, and WebSocket communication using libuv, mbedTLS, and C interfaces.
NetworkingPlugin ArchitectureTLS
0 likes · 20 min read

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.
C++ addonJavaScriptNode.js
0 likes · 9 min read

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
