Node.js "Event Emitters" Explained

Поделиться
HTML-код
  • Опубликовано: 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.