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 😊

КОМЕНТАРІ • 25

  • @alexenax1109
    @alexenax1109 6 місяців тому +1

    Great video! First time I found a channel about advanced Nodejs topics so well explained!

  • @madhavanand756
    @madhavanand756 8 місяців тому +1

    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.

  • @sergeyplotnikov4303
    @sergeyplotnikov4303 8 місяців тому +4

    Can you please make font bigger? Thank you!

  • @engelknight2059
    @engelknight2059 Місяць тому

    thanks

  • @enogratechnologies1896
    @enogratechnologies1896 7 місяців тому

    Could you make a project video with testing and production stages. Thank you. 🙏

  • @enogratechnologies1896
    @enogratechnologies1896 7 місяців тому

    Awesome lessons.

  • @zzahappy7853
    @zzahappy7853 8 місяців тому

    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 ?

    • @SoftwareDeveloperDiaries
      @SoftwareDeveloperDiaries  8 місяців тому

      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.

  • @alexenax1109
    @alexenax1109 5 місяців тому

    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?

  • @codingclub4225
    @codingclub4225 7 місяців тому

    great content just love it❤❤

  • @TheIfankill
    @TheIfankill 2 місяці тому

    Can we make EventEmmiter queue, and execute all asynchronous methods in this queue, or this is bad idea?

    • @SoftwareDeveloperDiaries
      @SoftwareDeveloperDiaries  2 місяці тому

      I wouldn't do that, sounds like a bad idea :) I'd rather go for a robust queueing system / library if you require one

  • @NguyenNgoc-b3e
    @NguyenNgoc-b3e 5 місяців тому

    does it make the project more heavy ?

  • @hishamahammmedkm1936
    @hishamahammmedkm1936 8 місяців тому

    thank you

  • @parassharma7041
    @parassharma7041 8 місяців тому +2

    Great content🤗 keep posting please

  • @code_react
    @code_react 8 місяців тому

    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.

  • @semperfiArs
    @semperfiArs 2 місяці тому +1

    Brilliant videos. Your channel is a gold mine

  • @Fullflexno
    @Fullflexno 7 місяців тому

    Good video!

  • @Crypto-Fascinations
    @Crypto-Fascinations 8 місяців тому

    Thanks for the useful informations :). I missed the implementation of the class EventEmitter and his methods ;)

  • @jeancharliecharlie
    @jeancharliecharlie 5 місяців тому

    Nice video bro. I might not have a brain, but i got an idea.