V
V
vism2020-08-11 12:21:34
Laravel
vism, 2020-08-11 12:21:34

Is there a load balancer for Queues?

I have N tasks per day that I would like to drive into Queues.
But it is necessary that these tasks are scattered throughout the day.
It's even better to be able to configure, for example, less during the day, higher at night.

Does a similar package exist?

update:
For example, there are 10,000 tasks in one day, so that they are evenly (or with the help of a more complex config) scattered throughout the day. 1 task every 8-9 seconds
There are 86000 tasks per day - 1 task every second.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Tokenchik, 2020-08-11
@Tokenchik

What you need - you have to do it manually, especially day and night configurations.
Ready-made packages for such situations - solve the problem only of the person who made it, and if such a package exists, it’s not a fact that it will suit you)
Any queue broker is suitable for solving this problem, almost each of them has the ability to create pending tasks. If you know what needs to be processed for a certain period of x tasks, either start a counter somewhere, or poll the state of the queues for the number of available tasks, and send a new task either immediately to the queue or to the pending queue.

S
Sanes, 2020-08-11
@Sanes

There is also a scheduler for this. Or the delay() method

A
Alex Wells, 2020-08-11
@Alex_Wells

horizon and write your own balancer for it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question