![]() ![]() In contrast, if your app needs to do work but is not required to be done immediately, then you can spread the work to “worker” nodes and distribute it using queues. So, how do you accomplish this? If your app is, for example, a web server that needs to send responses almost immediately, then you Scaling using Node.js distributed worker queues Scaling vertically always has a limit, so at some point, you’ll need to scale horizontally. But what happens if you are reaching the limits of the machine your Node.js instance is running in? Then you need to either move to a bigger machine (known as scaling vertically)or scale horizontally. In a previous article, I talked about how to run background tasks/jobs in Node.js (with the worker_threads module in 200’s only Monitor failed and slow network requests in production.Use cases of distributed worker queueing systems.Make your queue jobs small and fast to process. ![]() Why you should use Node.js distributed worker queues.Scaling using Node.js distributed worker queues. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |