Friday, March 31, 2017

Dynamic Laravel Queue Connection

I have a 'proposal' table on my database, each proposal's row will generate a photo album (for all users) on certain time.

I set a queue to generate per photo album, so there's a thousand jobs in my jobs table at database.

to generate 1 photo album takes 4-10 seconds because there's an algorythm process.

I create 8 proposals, so the last photo album will take a long time to be generated, could someone have a solution for me?

Is there a way to create a multiple queue connection that run in the same time? lets say i have 5 proposal, so there's 5 queue connection, so each proposal has it's queue connection so the generate process will be done on time.

Thank you.



via Yudi Yohanes Septian Gotama

Advertisement