Replies: 2 comments 2 replies
-
You should look into Laravel Horizon. |
Beta Was this translation helpful? Give feedback.
-
@mfn Hi Markus! Did you find a good way to deal with this? I have the same use case basically, which is collecting tasks to dispatch to an external API that has a batch processing endpoint - so waiting until I have kind of a "critical mass"/sufficient pressure before dispatching the request would greatly improve performance. From what I know about Laravel's queue system, this isn't really possible still. ps: we were briefly working together in a previous life when I was building the unified messaging API for MessengerPeople with Max. Hi! :) |
Beta Was this translation helpful? Give feedback.
-
I was wondering, how would you solve the following:
n
workers on the queue to process them in parallel worksbut
what I have a more efficient way by collecting/aggregating those IDs and performing a certain "in batch" on the server side
In my particular case I would need something like:
n
jobs (e.g. 8, 16) at onceWHERE IN
or some remote http batch processing API, etc.)I do understand this is not the same anymore as a job, which does one thing and starts over with the next payload from the queue.
Any idea how this could be made work with the current Laravel queue system? Or at least with minimal changes maybe?
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions