I am writing an application that will process event messages (posted to the topic file-upload-completed
). I have multiple endpoints that should consume these messages (metadata-reader
and quota-checker
), and for pragmatic reasons I would like to deploy these endpoints together in an aggregated package.
With Spring Cloud Stream, I could use spring.cloud.stream.bindings.file-upload-completed.group=metadata-reader
to set the consumer group for the first endpoint; I would also like to process messages under the quota-check
group, but the property-based configuration only permits one consumer group binding per message queue.
Is there a way to configure Spring Cloud Stream so that I can bind to a single message queue under multiple consumer groups in the same application?