Node.js "Event Emitters" Explained
Вставка
- Опубліковано 28 вер 2024
- Event Emitters in Node.js are the key for the Event-Driven Architecture within your app. In this video we're gonna learn how Event Emitters are related to Pub/Sub pattern, potential use cases, how to emit an event, act on it and handle errors.
======⚡⚡⚡======
☕ Buy me a coffee: www.buymeacoff...
🙌 Become my Patreon and get exclusive perks: / softdevdiaries
💼 Follow me on LinkedIn and drop me a message if you'd like: / gadirovgs
💻 Also, let's connect on GitHub: github.com/gusgad
📚 Resources:
Original article with code: www.digitaloce...
Official docs: nodejs.org/api...
And don't forget to subscribe for more videos like this 😊
Great video! First time I found a channel about advanced Nodejs topics so well explained!
Welcome aboard!
Wonderful video, awesome content.
Looks like inbuilt socket.
You content is super unique, indepth, hardly youtube videos on this. Lovee it keep posting.
Next video idea, how about explaining unknown many inbuilt features of nodejs which are native in like like events, URL constructor etc.
Can you please make font bigger? Thank you!
Will do next time 😉
thanks
Could you make a project video with testing and production stages. Thank you. 🙏
Awesome lessons.
Great content, in meanwhile you spoke about handling these events in different services. It's about don't wasting time in the publisher service right ? How you do that ? with cluster module or something else ?
Hey, good question. The cluster mode is about scaling, while event emitters are in the realm of the "event-driven architecture". So if you want to free up the publisher service, the event-driven approach is the one you need. If despite that, the service is under high pressure, then scaling out with Kubernetes (if it's a microservices architecture) or simply the cluster mode of Node.js can be a good idea.
Master, do you have any course about topics like this and any other advanced topics about Node.js? Or can you suggest some that you consider valuable?
great content just love it❤❤
Can we make EventEmmiter queue, and execute all asynchronous methods in this queue, or this is bad idea?
I wouldn't do that, sounds like a bad idea :) I'd rather go for a robust queueing system / library if you require one
does it make the project more heavy ?
Not at all 🙂
thank you
Great content🤗 keep posting please
More to come!
Well I tried to like this video 2 times.
You have explain it very well. But for beginners it will be a little bit hard to absorb all the logic.
Brilliant videos. Your channel is a gold mine
Thanks so much!
Good video!
Thanks for the useful informations :). I missed the implementation of the class EventEmitter and his methods ;)
Nice video bro. I might not have a brain, but i got an idea.