B
B
bernex2015-09-22 10:14:27
Laravel
bernex, 2015-09-22 10:14:27

How does a queue work in Laravel?

For example, I added 1200 tasks to the queue:
500 to change the status for the api partner and I can execute 30 of them per second.
500 to send SMS, here you can at least everything in 10 streams.
200 of them can be sent one per second, because. can not be restarted
How to organize it correctly? Execute?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2015-09-22
@Nc_Soft

You can make multiple workers with supervisor
posts.danharper.me/laravel-queue-supervisor
Where task is once per second just put 1 worker and sleep(1) after each task

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question