Node.js Atomics Explained
12:00
Node.js Event Loop Explained
10:26
Пікірлер
@lokeshkhati8413
@lokeshkhati8413 2 күн бұрын
Thank you so much for this amazing tutorial ❤, we need more like this.
@bayardemeric5100
@bayardemeric5100 3 күн бұрын
Hi, i see that your still using require to import all your package. Any reason to not use import instead ?
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 3 күн бұрын
No reason at all really :) Probably a good idea to switch to imports once and for all
@moveonvillain1080
@moveonvillain1080 4 күн бұрын
9:54 Din't get this point. When you create a clone you are creating a completely new object that has the same values as the old one but it will be stored in a different place in the memory correct? not in the same place as previous one.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 4 күн бұрын
That’s correct 🙂
@thomasarpin9129
@thomasarpin9129 4 күн бұрын
Nice take ! But our current system requires a DB queue due to legacy constraints and complexity :/
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 3 күн бұрын
I see :/
@trontrontrontron4
@trontrontrontron4 4 күн бұрын
this is great, really love the quality of the video. my only comment would be to be judicious when trying to optimize, for example many of the tricks here you can find in the typescript compiler (shallow objects to make the property access path short, using ints instead of strings for enums, fixed shapes for the objects, etc) but thats because they are trying to squeeze every oz of performance out this shitty language, in everyday app design and work architecture matters a lot more, like avoiding doing unnecessary work and using the right data structures. but this shitty language can do a lot right off the bat, i abuse string.join everyday all day.
@lironlevi
@lironlevi 4 күн бұрын
great! writing microservices basically requires you to implement 2 phase commit and distributed transactions all by yourself. Yesterday's technology tomorrow ..
@sarojgupta8181
@sarojgupta8181 5 күн бұрын
Very Informative!
@khalidben9940
@khalidben9940 6 күн бұрын
in case you want to modify the style of console output: console.log("%cThis text will have a larger font size.", "font-size: 20px;"); you can use such a thing, This is a great video.
@shivanshpatel4072
@shivanshpatel4072 6 күн бұрын
Awesome tutorial
@codlover1468
@codlover1468 7 күн бұрын
Thank you
@casiezeq
@casiezeq 8 күн бұрын
I love free education, thank you so much!
@saifmohammad733
@saifmohammad733 10 күн бұрын
Yay
@andrewmerrin
@andrewmerrin 10 күн бұрын
Great content. Subscribed ad looking forward to more videos like this. Are acls always implemented in the application layer or would you consider doing this at the database layer? Something like Postgres row level security.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 9 күн бұрын
That's a great question. I personally don't have experience with row-level security but I can imagine that having both would strengthen the security even more.
@patrickonielbernardo8786
@patrickonielbernardo8786 10 күн бұрын
excellent explanation for DDD. thank you for sharing this.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 9 күн бұрын
Glad you enjoyed it!
@qazyhn94
@qazyhn94 11 күн бұрын
thanks for the video, could you please tell the extension in VS code to make this http requests?
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 9 күн бұрын
It"s "REST Client" by Mao :)
@qazyhn94
@qazyhn94 9 күн бұрын
@@SoftwareDeveloperDiaries thank you, installed
@actitud
@actitud 11 күн бұрын
Very well explained. Thanks.
@wilfredomartel7781
@wilfredomartel7781 12 күн бұрын
Good work! I have past nearly 3 days trying to clear cache from http sites in chrome browser. Now we have https and https still remain in browsers :(
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 9 күн бұрын
Hmmm :/
@GoRannization
@GoRannization 12 күн бұрын
This is kind of tutorial I am looking for. Subscribed for more.
@dreamcurrencycollection
@dreamcurrencycollection 12 күн бұрын
Excellent, keep it up 👍
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 9 күн бұрын
Thank you! Cheers! 🥂
@Badadodadoop
@Badadodadoop 13 күн бұрын
I stumbled upon one your videos recently. I've been checking out more and more. Dude, you know a lot! Thanks for the content, it's good quality 👌
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 9 күн бұрын
Welcome aboard! 😎
@pugazhenthiravi
@pugazhenthiravi 13 күн бұрын
Won't it be a security issue if we send ACL to the frontend? Anyone intercepting this response gets to see all the roles and the permissions they have.
@bs00717
@bs00717 12 күн бұрын
So, what is gonna be problem? They still cant get access to the without auth)
@bluecup25
@bluecup25 12 күн бұрын
@@bs00717 They have information they shouldn't have and know what roles or endpoints to target for vulnerabilities.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 9 күн бұрын
Great point. I think I've missed that part a bit. What I personally would do is scope the ACL entries sent to the frontend to only those that are relevant and avoid exposing extra information regarding all the other resources (endpoints).
@pugazhenthiravi
@pugazhenthiravi 9 күн бұрын
Thanks for the reply. I'm a beginner and so is this question. Thanks again!
@mrlectus
@mrlectus 13 күн бұрын
I would keep this one in mind for the future
@sreeraghuvardhanvangipuram9547
@sreeraghuvardhanvangipuram9547 13 күн бұрын
Audio is slightly off-sync with the video. Great vid tho!
@mikeeomega
@mikeeomega 14 күн бұрын
Didn't know that Figma was such an interesting creature 😅😅
@justinoneill2837
@justinoneill2837 14 күн бұрын
what's your thoughts on having a package as a *git submodule* that exists as a stand-alone repo and also within your monorepo for 2 or more teams that need to work on the same project?
@iqralatif145
@iqralatif145 14 күн бұрын
Thanks!
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 9 күн бұрын
Thanks for the tip, my friend! 🙌
@Quenosepapa
@Quenosepapa 15 күн бұрын
2min ad in a 9min video? wtf I sub at first, but unsub now.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 15 күн бұрын
I do these videos for fun and get occasional sponsorships. This is what pays for my beer on the weekends, nothing more. If you complain about the fact that you literally can't click on the timeline to skip this ad, then I have nothing to say. Good luck :)
@Quenosepapa
@Quenosepapa 14 күн бұрын
@SoftwareDeveloperDiaries Sub u again. Here we go, thanks for sharing ur knowledge
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 14 күн бұрын
@@Quenosepapa Let's gooo 💪
@Alcani3ca
@Alcani3ca 15 күн бұрын
This is awesome but I fail to see how it would be beneficial in terms of infra costs. For this to work you would need to pay for a vps with a minimum of 2 cpus. So if you never need to spawn a new cluster, you would be paying for a cpu thats not needed. I guess its just good to have 2 running at the same time incase one crashes, you have no downtime. Its faster to spawn a node process than to restart a machine or have a cron that verifies for downtime and spawns if needed.
@caitlinmclaren2695
@caitlinmclaren2695 16 күн бұрын
Since API Gateway is responsible for routing requests, authorization, authentication, and rate limiting it makes sense if the client calls it first. After we API Gateway determines which microservice is called, then the load balancer for that microservice is called to determine which server (worker node) has more capacity to handle the load. Moreover, in most system design diagrams the request from the client goes first to API Gateway and then to the load balancer. Please don't delete my comment, instead correct me if I'm wrong.
@_digital_nomad_
@_digital_nomad_ 16 күн бұрын
It's very cool, but how to understand how many threads will you need? Just check it manually?
@RaviChandravanshi-r8y
@RaviChandravanshi-r8y 16 күн бұрын
lots of incorrect information, pls stop misguiding
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 16 күн бұрын
What exactly is incorrect?
@AnkitKumar-wx1cm
@AnkitKumar-wx1cm 16 күн бұрын
Awasome!
@maulikjadav9673
@maulikjadav9673 17 күн бұрын
setTimeout and clearTimeout in very next line??? Adding event listener and removing it immediately??? essentially those callbacks will never run. need a separate video explaining this. comment respond below with chatGPT is not acceptable.
@JanHonzaPozivil
@JanHonzaPozivil 17 күн бұрын
Ok, I get what enums are, but I am trying to learn why would I want to use them? What is their ideal use-case scenario?
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 17 күн бұрын
Just imagine that you can assign only a specific set of values to a variable. You don’t want your teammates to type the string value in order to assign them, but use a predefined enum (set of possible values). Hope that helps :)
@JanHonzaPozivil
@JanHonzaPozivil 17 күн бұрын
@@SoftwareDeveloperDiaries thank you for getting back to me on this one. I must admit that for me, coming from the JS world, I struggle to appreciate what enums bring to table. But I guess your example makes sense. I found your video because I just joined a new project and I'm trying to make sense of someone else's code and their use of enums seems to be making things difficult rather than helping.
@work_lpag-t7i
@work_lpag-t7i 18 күн бұрын
I love the video and especially I love comments. You really triggered a more or less nice conversation about micro services and shared databases. My personal opinion is, that both have their advantages and disadvantages. One large shared database can handle millions of transactions and keeps them acid. But I believe this is not the reason why the micro service idea exists. You do not go for micro services because you want great acid, you go for it because you want to have independence of service development and maintenance. You basically want to move fast and break things.. And yes you might break the one or other transactions on the way, but then you just replace one service (including its data architecture) with another one until a point where I as an data architect am the only one who can pretend to know what's going on :D.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 9 күн бұрын
Good point 😉
@umarsaid6340
@umarsaid6340 18 күн бұрын
Very useful. Hope you can continue with real coding up to database layer.
@siddharth8911
@siddharth8911 19 күн бұрын
Nicely explained mann
@muhammedcetinyamac883
@muhammedcetinyamac883 19 күн бұрын
Useful content, thank you.
@vitezlucello
@vitezlucello 19 күн бұрын
didnt understand module loading
@eliasepg
@eliasepg 20 күн бұрын
Awesome, thank you for sharing the links, this is really good content and very helpful!!
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 20 күн бұрын
Happy to hear! 😌
@NarendraKumar-vc6yb
@NarendraKumar-vc6yb 23 күн бұрын
Hey, can make some videos on specific Microservices architecture patterns like Saga, CQRS
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 20 күн бұрын
I will add it to my list 😉
@Manolete919
@Manolete919 23 күн бұрын
Excellent! Where is part 2?
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 20 күн бұрын
This meant to be part 2 I believe: kzbin.info/www/bejne/omqWf2eOlrZ9pc0
@ehSamurai3483
@ehSamurai3483 24 күн бұрын
setTimeout 1 nextTick 1 Promise 1 Promise 2 queueMT 1 setTimeout 2 setTimeout 3
@RBC-KING0093
@RBC-KING0093 24 күн бұрын
Can you fix E01, E02 and E03 errors in node.js
@Yohannesalemu-k8w
@Yohannesalemu-k8w 24 күн бұрын
i understand know after warching 2 videos but this is clear and clear nice
@khari_baat
@khari_baat 24 күн бұрын
Great video.
@ahmed3od2011
@ahmed3od2011 25 күн бұрын
What is the name of the software used in this video?
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 24 күн бұрын
Eraser.io :)