You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only new option compared to the commands that we have seen before is the one that specifies the __routing key__: `-r '#.error'`.
757
757
758
+
### Batch Consumers ###
759
+
760
+
In some cases you will want to get a batch of messages and then do some processing on all of them. Batch consumers will allow you to define logic for this type of processing.
761
+
762
+
e.g: Imagine that you have a queue where you receive a message for inserting some information in the database, and you realize that if you do a batch insert is much better then by inserting one by one.
763
+
764
+
Define a callback service that implements `BatchConsumerInterface` and add the definition of the consumer to your configuration.
Important: BatchConsumers will not have the -m|messages option available
851
+
758
852
### STDIN Producer ###
759
853
760
854
There's a Command that reads data from STDIN and publishes it to a RabbitMQ queue. To use it first you have to configure a `producer` service in your configuration file like this:
0 commit comments