NestJS Async Local Storage | Write Cleaner Code

  Рет қаралды 6,402

Michael Guay

Michael Guay

Күн бұрын

Пікірлер: 18
@mguay
@mguay 11 ай бұрын
Get my highly rated Udemy courses here at a discount: michaelguay.dev/udemy/
@AbdelrhmanHussien-sx8vb
@AbdelrhmanHussien-sx8vb 7 ай бұрын
I knew that there is a smart way to achieve this behavior but I don't know how. Smart one explains it amazingly. Simply you are awesome
@weforyouweb1165
@weforyouweb1165 Жыл бұрын
Pls create more videos on advanced NEST JS
@maxyushin
@maxyushin 7 ай бұрын
Thank you for great materials! About this one I have a concern though: isn’t this technique suggesting to deal with some kind of global variables? Like in php, globals are accessible everywhere and could be changed everywhere. It simplifies work with them at the begging, but it also becomes an issue very fast. Would appreciate your thought on this and/or links to theory of this technique.
@mayori-engineering-hub
@mayori-engineering-hub Жыл бұрын
Will be nice to have use cases of this patterns
@DustinTownsend
@DustinTownsend Жыл бұрын
Have you tried NestJS CLS package for this?
@mguay
@mguay Жыл бұрын
Yeah I highly recommend. Altogether I like to try it without a dependency first
@samiullahsheikh5015
@samiullahsheikh5015 Жыл бұрын
can you please suggest some active communities for nodeJS, NestJS and typeORM? like the more or less the same stack of yours
@dt43321
@dt43321 Жыл бұрын
With this approach, can we access the auth user (provided with JWT), only for that request scope (like PHP), anywhere in the application? If we can, it really helps me.
@mguay
@mguay Жыл бұрын
Yes!
@dt43321
@dt43321 Жыл бұрын
@@mguay I tested with concurrent requests and it doesn't work. I want to let you know.
@bayoumi-tech
@bayoumi-tech Жыл бұрын
Thank you for your effort ❤
@nolw.7805
@nolw.7805 Жыл бұрын
Thanks you so much for your work.
@gosnooky
@gosnooky Жыл бұрын
Interesting. I've always attached metadata to the request object directly, added the type augmentations to make TS happy, and created custom decorators that retrieve that information from the request and inject into controller handler arguments. This looks much cleaner using request-scoped data. I always avoided scoping providers to request because all child providers also become request scoped. Love advanced NestJS stuff. There is a real dearth of advanced NestJS videos, I was considering making videos myself, but I hate my voice and I can't articulate :)
@kerodfresenbetgebremedhin1881
@kerodfresenbetgebremedhin1881 Жыл бұрын
you'll never know for sure until you try and receive audience feedback
@mguay
@mguay Жыл бұрын
You should absolutely do it. Trust me, no one likes the sound of their own voice!
@chess4964
@chess4964 Жыл бұрын
@@mguay absolutely coz we grew tired of hearing it all our life
@davidho2901
@davidho2901 Жыл бұрын
Great content. However could you please work on your vocal Range. Sometimes it feels uncomfortable with your base tones like someone just woke up.
NestJS + Prisma Deep Dive
51:42
Michael Guay
Рет қаралды 27 М.
Bull & NestJS = Achieving Scale in Node.js
31:41
Michael Guay
Рет қаралды 35 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
That's NOT How Async And Await Works in .NET!
12:25
Codewrinkles
Рет қаралды 28 М.
What’s the Best React Native Storage Option? 🧐
12:53
Simon Grimm
Рет қаралды 51 М.
Stop using async void in C#! Do this instead.
13:12
Nick Chapsas
Рет қаралды 58 М.
Decouple your NestJS code with this technique!
11:37
Marius Espejo
Рет қаралды 42 М.
NestJS gRPC Microservices Tutorial
55:04
Michael Guay
Рет қаралды 42 М.
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 327 М.
Nest.js Microservices Tutorial in 20 Minutes
17:56
Michael Guay
Рет қаралды 114 М.
The Right way to write Nest.js & Typescript clean-code - SOLID
17:55
NestJS Microservices | Deploy on AWS EKS & Setup a CI/CD Pipeline
28:45
Nest.js Caching Tutorial in 15 Minutes (Redis + Unit Testing)
13:00