DEV Community

Cover image for Simple Node.js task queue with bee-queue and redis

Simple Node.js task queue with bee-queue and redis

Sarbik Betal on June 26, 2020

Cover Photo by Bimo Luki on Unsplash As you saw in the previous article that task queues are pretty awesome 🌟 and in this tutorial we would be usi...
Collapse
 
swarupkm profile image
Swarup Kumar Mahapatra • Edited

Great start. But shouldn't your POST api return an orderId, so that customer can ask status of his order?

Collapse
 
sarbikbetal profile image
Sarbik Betal

Yeah you are right, this was a very basic example, but I will be adding it to this article. Thanks for your feedback 😊

Collapse
 
sarbikbetal profile image
Sarbik Betal

Swarup, I have updated the code in the Github repo, will be updating the article soon. Thanks for your nice idea.

Collapse
 
swarupkm profile image
Swarup Kumar Mahapatra • Edited

I have put my review comments in github github.com/sarbikbetal/nodejs-task....
Let me know what you think of it.
Cheers

Thread Thread
 
sarbikbetal profile image
Sarbik Betal

Thank you so much, I checked it out. I would always keep them in mind. 😊

Collapse
 
kosm profile image
Kos-M

Nice post!

  • How do we send the food to our customer once it is prepared?
    • Instead of websockets , you can pick Server Sent Events , if clients needs only to read from server in one way channel fasion.

by the way : Came here searching for time consuning common tasks usually devs wants to run in nodejs.. Im developing a distributed queue/task runner , and searching for good use cases to apply as examples..
queueXec

Collapse
 
rexterrs profile image
SUMAN DAS

👍👍👍

Collapse
 
jsjoeio profile image
Joe Previte (he/him)

Hey Sarbik! Great article. Do you plan to write a third answering "How do we send the food to our customer once it is prepared?"

Collapse
 
siboscol profile image
Simone Double B

Very interesting article.
Looking forward to read the next one... Nice way to explain it with the analogy.
Would you give as well some additional use cases with real world examples?

Collapse
 
sarbikbetal profile image
Sarbik Betal

Yes Simone, that's what I would do in the next article 😁. We would build something interesting, Stay tuned 📻.

Collapse
 
galihanggara68 profile image
Galih Anggara

Wow,, great post, thanks for great explanation of task queue and the example project, love it.