简体   繁体   中英

How to optimize laravel queues?

My Laravel Queue has 1 Million Job. Each job takes 5-6 Seconds to execute. ( I am fetching web page as html. Storing html data in database and also mailing this data). So it would take around 50-60 days to execute. How can I optimize it? I am using database as queue_driver.

Push you jobs to several queues with their own workers. You also can add extra workers for every queue.

You want to set up several queues that will serve as buckets and additionally each queue should have several workers on them. I would also explore using something like AWS SQS. You can read more about using workers here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM