How to create Queues using Redis and Node.js | FIFO, LIFO, Delayed, Prioritized and Repeatable Jobs

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • In this video, we learn how to implement a job queue using Redis and Node.js, we are basing this tutorial on the library Bull. For this project, we are going to create a queue system where we can send emails to users. In the end, you'll be capable of understanding how to start creating your own queues for your projects.
    Support the channel:
    / codingvenue
    Code:
    github.com/cod...
    Links:
    github.com/Opt...
    optimalbits.gi...
    github.com/fel...
    nodemailer.com
    Follow me:
    / codingvenue

ความคิดเห็น • 26

  • @santiagoriosolaya7788
    @santiagoriosolaya7788 2 ปีที่แล้ว +2

    thanks a lot, I was worried because it's the first time that I creating a queue but right now, not much.
    like it!!!

  • @ritwizsinha1261
    @ritwizsinha1261 3 ปีที่แล้ว +2

    Very helpful in getting started with bull, thank you

    • @CodingVenue
      @CodingVenue  3 ปีที่แล้ว +2

      Thank you. Really glad to hear that!

  • @sohamsinha4388
    @sohamsinha4388 4 หลายเดือนก่อน

    The video is very beautiful, can you add a tutorial of installing redis-commander and installing docker to run this code.

  • @inanesilence
    @inanesilence ปีที่แล้ว +1

    If you are working with microservices, what would it be the best way to communicate service 1 with service 2 (this microservices with the bullmq and nodemailer implementation) ?

  • @jseh_
    @jseh_ 3 ปีที่แล้ว +2

    This queue are cpu intensive? dont block the event loop? They run in another thread?

  • @jichen3811
    @jichen3811 2 ปีที่แล้ว +1

    It doesn't work for me. Somehow, when I produce the job, it doesn't go into Redis. There must be some connection issues, as I have to wait till it reaches the max retries. My redis is up running, and I can connect to it through node-redis. But, Bull is not working ...

  • @phelyxdavid9675
    @phelyxdavid9675 2 ปีที่แล้ว

    Thank you. The video was very helpful.

  • @samirguluzada1588
    @samirguluzada1588 2 ปีที่แล้ว

    How can I do that cron jobs work in the background? I mean when the server is restarted, previous cron jobs keep it working correctly

  • @pranavgupta6891
    @pranavgupta6891 ปีที่แล้ว

    Hi.
    This video helped me run my program successfully.
    But, nodemon is not able to detect changes made in the code...
    I have to repeatedly stop and restart in order to see the changes...
    Please help

  • @jeremey__
    @jeremey__ 2 ปีที่แล้ว

    Thanks mate, very helpful !

  • @itsobinna
    @itsobinna 3 ปีที่แล้ว

    solid video. appreciate you

  • @gaurava5208
    @gaurava5208 ปีที่แล้ว

    Thank you! For informative video.
    I want to create web service that take too much time. So I want to give reponse with some short of ID(Request ID). User check stataus wheather job completed or not. Once job completed User send me other request with Same Request ID and I will send data.
    So Here queue is not LIFO or priority it will base on user request and time it take to complete. Is it possible with bull?

  • @sheltoncastelino8889
    @sheltoncastelino8889 2 ปีที่แล้ว

    Does Bull Queue show only last 5 jobs in bull board.???

  • @long3850
    @long3850 ปีที่แล้ว

    Very helpful

  • @pedro_alonso
    @pedro_alonso 2 ปีที่แล้ว

    Thanks!

  • @gourabsinha
    @gourabsinha 2 ปีที่แล้ว

    Thanks dude

  • @arshiaranjbar7063
    @arshiaranjbar7063 3 ปีที่แล้ว

    why is not working for me i have no error but console log inside process is not works

  • @badrinarayanansridharan164
    @badrinarayanansridharan164 3 ปีที่แล้ว

    Can you tell me why should I go for queue based system architecture for a simple mail requirement when I can email from my service API. Also can you tell me how to extend this solution to implement FB like notification system. And the process looks like simply functions rather than any daemon process, is that good enough for my requirement?

    • @sachinnegi8814
      @sachinnegi8814 3 ปีที่แล้ว +3

      Queues are helpful when you get many requests for sending email , sms etc.This will assign a job for each request without blocking other users from sending request.And we achieve an asynchronous communication.

    • @elderofzion
      @elderofzion 2 ปีที่แล้ว

      @@sachinnegi8814 but you can do the same by firing the email sending function as a promise without awaiting it?

    • @sachinnegi8814
      @sachinnegi8814 2 ปีที่แล้ว +3

      @@elderofzion you can also do it,but it's not manageable and if you use queues with redis you can track , delete your queues anytime.Also better error handling with queues

  • @dark9y8
    @dark9y8 2 ปีที่แล้ว

    Why don't you use WSL2?

  • @nithinraj342
    @nithinraj342 2 ปีที่แล้ว

    Good bro

  • @5minutesseries431
    @5minutesseries431 2 ปีที่แล้ว

    bull-board deprecated