isadma's avatar

Laravel Queue

Hello,

I want to use queue for file uploads. Users can upload files. Each file will have around 500 rows. Now I want to implement this logic:

  • Maximum 5 files can be processed at the same time. Remaining files should be in queue.
  • Each file should have 5 processes, so 5 rows will be inserted to databases at the same time.

Shortly, there are will be maximum 25 processes (5 processes in each 5 files).

Now I am adding all files to one queue. Files processing one by one. Shortly first come, first out. 2nd file needs to wait to finish 1st file.

How can I implement this? Or do you have any other suggestions?

0 likes
3 replies
isadma's avatar

Yes, watched. I didn't find a solution for this problem

Please or to participate in this conversation.