title: Spring Boot - RabbitMQ - Handle Scenario where broker is down
body: <p>We use rabbitmq for messaging in our project. This is primarily used for audit logging. We were trying to check how our app responds to certain failure scenarios. For instance if RabbitMQ is down , the consumer continuously attempts to make a connection to rabbitmq and fails. Is there a way for consumer to stop attempting this if rabbitmq is down? In a similar way , how can publisher stop attempting to send messages to the queue when the broker is down? Is circuit breaker one of the options that we can consider?</p>