RabbitMQ + Spring cloud stream: usage of groups

Viewed 538

When using RabbitMQ + Spring cloud stream you can define the following properties in application.properties file:

spring.cloud.stream.bindings.input1.destination=someDest
spring.cloud.stream.bindings.input1.group=someGroup

I guess that "destination" means the RabbitMQ queue, but what does it mean "group" here?

Thanks!

2 Answers

Actually, the destination is the exchange name; the queue someDest.someGroup will be bound to the exchange someDest.

When a group is provided, multiple instances of the app will compete for messages.

If there is no group, the queue will be an anonymous auto-delete queue.

Related