lrlinde
lrlinde

Reputation: 1

Spring Cloud Stream RabbitMQ - Partitioning using header instead of routing key

I was going through the documentation but couldn't find anything related to this, so I'm here just to confirm with you.

We'd like to partition Rabbit queues using Spring Cloud Stream, but would like to do so without using routing keys for it. Is there a way to do it by using headers or properties in the messages?

RabbitMQ plugins allow this but, does spring cloud stream allow it in some way?

Thanks and regards.

Upvotes: 0

Views: 147

Answers (1)

Gary Russell
Gary Russell

Reputation: 174564

You can manually provision whatever exchange type you want and set the declareExchange property to false.

Upvotes: 0

Related Questions