Tag

async_hooks

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Oct 14, 2021 · Backend Development

Design and Implementation of Full‑Chain Tracing for Node.js Applications Using Async Hooks

This article explains the necessity, design principles, and concrete implementation of a full‑chain tracing system for Node.js applications, covering architecture choices, industry solutions, core Async Hooks concepts, the zone‑context framework, invoke‑tree construction, garbage collection, and practical demo code.

BackendFull-Chain TracingJavaScript
0 likes · 18 min read
Design and Implementation of Full‑Chain Tracing for Node.js Applications Using Async Hooks
vivo Internet Technology
vivo Internet Technology
Sep 2, 2021 · Backend Development

Full-Link Tracing in Node.js Applications: Async Hooks and Zone-Context Design

The article details a full‑link tracing system for Node.js that leverages experimental async_hooks to monitor asynchronous resource lifecycles, builds an invoke‑tree to map parent‑child relationships, implements garbage collection, and provides a ZoneContext API for propagating custom tracing data across async call chains.

Garbage CollectionNode.jsZone Context
0 likes · 19 min read
Full-Link Tracing in Node.js Applications: Async Hooks and Zone-Context Design
ByteFE
ByteFE
Jun 22, 2021 · Backend Development

Understanding Node.js AsyncHooks and AsyncLocalStorage for Asynchronous Resource Tracking

This article explains Node.js async_hooks and AsyncLocalStorage APIs, describing asynchronous resource concepts, lifecycle hooks, usage scenarios, performance impact, and practical code examples for tracing async call chains, custom async resources, and integrating context propagation in backend applications.

AsyncLocalStorageBackendNode.js
0 likes · 17 min read
Understanding Node.js AsyncHooks and AsyncLocalStorage for Asynchronous Resource Tracking
Python Programming Learning Circle
Python Programming Learning Circle
Mar 23, 2021 · Backend Development

Understanding Node.js Asynchronous Execution Model and async_hooks

This article explains Node.js’s asynchronous execution model, defines key concepts such as execution frames and continuation points, demonstrates event flow with code examples, and shows how the async_hooks API and AsyncLocalStorage can be used for tracing, debugging, and performance analysis of backend JavaScript applications.

AsyncLocalStorageNode.jsPerformance Profiling
0 likes · 13 min read
Understanding Node.js Asynchronous Execution Model and async_hooks
Bitu Technology
Bitu Technology
Dec 18, 2018 · Backend Development

Managing Request Context in Node.js with async_hooks without Monkey Patching

This article explains how to propagate request‑level context in a Node.js HTTP service by building a call‑tree with async_hooks, avoiding monkey‑patching, handling lifecycle quirks, preventing memory leaks, and using reference‑counted cleanup to ensure reliable context queries.

BackendContext PropagationMiddleware
0 likes · 15 min read
Managing Request Context in Node.js with async_hooks without Monkey Patching
Bitu Technology
Bitu Technology
Oct 25, 2018 · Backend Development

Applying Node.js async_hooks API in Tubi’s Backend Services

This article explains why Tubi adopted Node.js’s async_hooks API, describes the challenges of context propagation in asynchronous calls, demonstrates a monkey‑patching solution for HTTP servers, and shares production‑grade practices for tracing, retries, and memory management in their micro‑framework.

BackendEnvoyRPC
0 likes · 8 min read
Applying Node.js async_hooks API in Tubi’s Backend Services