It’s a testament to how important the web is that JavaScript, https://redmonk.com/sogrady/2023/05/16/language-rankings-1-23/ the most popular and widely used language, has emerged from browsers and become useful far beyond its initial platform. But the ECMAScript standard for the language has continued to be driven primarily by the needs of browsers. Even in new environments, like serverside and embedded JavaScript runtimes, those runtimes are still using the JavaScript engines from browsers — though their requirements are often rather different. The first feature that’s coming into the language from those serverside runtimes — async context — also turns out to be useful in browsers, and even for building some browser features.

If you already have async context, because it’s provided by the JavaScript API, then async local storage is a small wrapper implementation around async context.”

Related Articles