sample spring cloud application that integrates with rabbitmq through spring cloud stream framework as shows how to setup message-driven microservices basing on publish-subscribe model, consumer groups
Detailed description can be found here: Building and testing message-driven microservices using Spring Cloud Stream