SwarrotBundle icon indicating copy to clipboard operation
SwarrotBundle copied to clipboard

Is there a way to do batch processing?

Open arkonchik opened this issue 5 years ago • 4 comments

If i need to consume batch of message in consumer, how can i reach this?

arkonchik avatar Nov 22 '18 06:11 arkonchik

What do you mean by "consuming batch of message"?

Your consumer can consume hundreds of messages but it consume them one by one. Does it answer to your question?

odolbeau avatar Nov 22 '18 09:11 odolbeau

I want that consumers can have interface like this public function batchExecute(array $messages)

Consumer get more than one message at time.

arkonchik avatar Nov 23 '18 21:11 arkonchik

Unfortunately, that's not possible yet but you're not the only one to ask for this functionality. Feel free to propose an implementation in https://github.com/swarrot/swarrot

odolbeau avatar Nov 28 '18 14:11 odolbeau

I have the same needs :+1: @arkonchik Would you mind creating a PR ?

lyrixx avatar Nov 28 '18 14:11 lyrixx