Async Context Tracking in Node with Async Local Storage API ft. James Snell | JS Drops

  Рет қаралды 3,044

This Dot Media

This Dot Media

Күн бұрын

Пікірлер
@otmanm4095
@otmanm4095 Жыл бұрын
Didn't know about that! Its super duper cool!
@johnm8358
@johnm8358 Жыл бұрын
Very nicely explained
@studio_egoryakimov
@studio_egoryakimov 9 ай бұрын
I finally understood! Thanks
@RicardoCabral-l9i
@RicardoCabral-l9i Жыл бұрын
Very well explained
@26Anshu
@26Anshu Жыл бұрын
Hi, In your example you have set and access the data within same class. What if we set data in one class and want to access it in another class function invoked from this class?
@ThisDotMedia
@ThisDotMedia Жыл бұрын
Hi! As James mentions in the video at 14:45, so long as the ID provided by the declaration of new AsyncLocalStorage() can be shared with the functions, it would be possible.
@26Anshu
@26Anshu Жыл бұрын
@@ThisDotMedia So, I need to pass the sessionId while invoking the other class function. There is no way to access the data without passing it?
@ThisDotMedia
@ThisDotMedia Жыл бұрын
@@26Anshu That's correct- you'll have to pass it.
@josht130
@josht130 Жыл бұрын
Experiencing the same issue, frustrating that we need to propagate the store everywhere
Hold my context! - Miroslav Bajtoš  | NodeConf EU 2022
22:07
Nearform
Рет қаралды 1,8 М.
AsyncLocalStorage vs cls-hooked - в чём отличия?
16:28
devschacht “Девшахта”
Рет қаралды 6 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
The Road to Async Context - James M Snell, Node Congress 2023
19:44
JavaScript Conferences by GitNation
Рет қаралды 2,7 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 663 М.
NestJS Async Local Storage | Write Cleaner Code
13:27
Michael Guay
Рет қаралды 6 М.
Is TypeScript (NodeJS) Faster than Go?? |  A server comparison
9:54
ThePrimeagen
Рет қаралды 227 М.
React Context & Hooks Tutorial #21 - Adding Local Storage
10:40
Net Ninja
Рет қаралды 111 М.
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 179 М.
Local Storage & Session Storage [ with Code Examples ]
14:52
Akshay Saini
Рет қаралды 235 М.