meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

AsyncLocalStorage + AsyncContext API

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, Technology, News

4.91.2K Ratings

🗓️ 19 June 2023

⏱️ 18 minutes

🧾️ Download transcript

Summary

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 Scott’s Instagram LevelUpTutorials Instagram Wes’ Instagram Wes’ Twitter Wes’ Facebook Scott’s Twitter Make sure to include @SyntaxFM in your tweets Wes Bos on Bluesky Scott on Bluesky Syntax on Bluesky

Transcript

Click on a timestamp to play from that location

0:00.0

Monday! Monday! Monday! Open wide dev fans! Get ready! To stuff your face with

0:07.0

JavaScript CSS! Node modules! Barbecue tips! Get workflow! Break dancing! Soft skills!

0:12.0

Web development! The hastiest! The craziest! The tastiest! Web development

0:16.0

treats! Coming in hot! Here is Wes! Barakuda! Boss! And Scott!

0:22.0

Tiltoro Logo! Tolinsky! Welcome to syntax on this Monday hasty treat. We're going to be

0:32.0

talking about Async local storage in the Async context API in JavaScript. This is a

0:40.0

server-side JavaScript thing that allows you to basically have a context amongst your

0:48.0

player call stack for any given piece of information that you want to share in that

0:53.0

regard. So my name is Scott Tolinsky. I'm a developer from Denver. And with me,

0:58.0

as always, is Wes! Boss! Hey! I'm excited to talk about it. I have done a

1:05.0

little tick-tock on it a couple of weeks ago and then I talked about it in my react

1:10.0

to thon talk, which was on like next gen JavaScript frameworks. Async local

1:17.0

storage is pretty cool. So we're going to kind of run through what it is and why

1:21.0

you might need it. Should we get on into it? We should. And I will be taking the role

1:26.0

of somebody who has not used it. I generally know what it is. But I will be trying to

1:30.0

ask you some questions. So if my questions seem dumb or if they seem like

1:36.0

off-based, try to steer me in that direction because I'm interested in this stuff. And I

1:40.0

kind of have an idea of when you would use it. But I want to really get the full picture

1:44.0

here. So Async local storage, my understanding is that this is a new API within

1:50.0

JavaScript inside of nodes specifically as well as what these other run times,

1:57.0

other JavaScript run times. When did this drop in node and is it like are all these

2:03.0

JavaScript run times aligned on this? So this dropped in node 13. So it meaning

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2026.