This chapter discusses async local storage, a new API in JavaScript and Node.js that allows you to access context down the call stack and share data between function calls. They also mention that sharing data between function calls is a common problem in JavaScript development.
In this Hasty Treat, Scott and Wes talk about AsyncLocalStorage, why more frameworks aren’t using it yet, some examples, as well as some footguns.
Show Notes
- 00:22 Welcome
- 01:44 What is AsyncLocalStorage?
- 03:14 What is context?
- 07:49 Why aren’t more frameworks using AsyncLocalStorage for context for middleware?
- 10:16 Examples of usage
- 14:20 Footguns
Tweet us your tasty treats