Tag

AsyncLocalStorage

1 views collected around this technical thread.

Alipay Experience Technology
Alipay Experience Technology
Mar 27, 2023 · Backend Development

Boosting Node.js Performance: AsyncLocalStorage and tegg v3 Deep Dive

This article explains how AsyncLocalStorage works in Node.js, demonstrates its usage with eggjs, presents benchmark results comparing tegg v3 to earlier versions, analyzes performance bottlenecks, and shows code transformations that reduce memory and CPU overhead for large-scale applications.

AsyncLocalStorageEggJSnode.js
0 likes · 8 min read
Boosting Node.js Performance: AsyncLocalStorage and tegg v3 Deep Dive
Taobao Frontend Technology
Taobao Frontend Technology
Feb 9, 2023 · Fundamentals

How AsyncContext Enables Seamless Data Propagation Across JavaScript Async Calls

The article introduces the TC39 Async Context proposal, explains why asynchronous context is needed, shows a library implementation using run and log functions, describes the AsyncContext API with run, get, and wrap methods, and explores use cases such as trace propagation, task‑priority handling, and comparisons with thread‑local storage and Node.js AsyncLocalStorage.

AsyncContextAsyncLocalStorageJavaScript
0 likes · 18 min read
How AsyncContext Enables Seamless Data Propagation Across JavaScript Async Calls
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.

AsyncLocalStorageasync_hooksbackend
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.

AsyncLocalStorageBackend Developmentasync_hooks
0 likes · 13 min read
Understanding Node.js Asynchronous Execution Model and async_hooks