async_hooks vs AsyncLocalStorage: Memory leak risk vs diagnostic control
Node.js offers two documented mechanisms for tracking async context: the low-level async_hooks API and the higher-level AsyncLocalStorage. Both rely on the same async resource model, but they differ sharply in memory behavior. async_hooks exposes granular lifecycle events, enabling custom propagation and deep diagnostics, but it is marked experimental (Stabi