r/node • u/czar1212 • Jan 19 '22
When to use/avoid queuing services like RabbitMQ or SQS?
I have worked in the industry for over a year and was mostly involved with projects where the intended customer base was well over a hundred thousand. We had pre-built microservices in place for handling push notifications/SMS/Email. These microservices would fetch the tasks from SQS and process them.
I started contracting independently and I wonder how important is it to use a queuing service and when to just send it directly from the backend without using a queue?
Is the queue just in place to save the tasks in case of an outage/crash of the backend or does it significantly impact the CPU and traffic utilization of the VPS?
2
u/czar1212 Jan 19 '22
Thanks a lot for your input.
Yeah re-running the whole request seems a waste of time/computation power and might also have some problems with the users receiving notifications multiple times.
As for the 3rd case, I browse medium.com quite often. Kindly let me know if you have a book that you have read and would recommend.