O'Reilly logo

Mastering Spring Cloud by Piotr Minkowski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing connectivity with the RabbitMQ broker

We have already started the RabbitMQ broker using its Docker image in the previous chapters, so it is worth reminding ourselves of that command. It starts a standalone Docker container with RabbitMQ, available under port 5672, and its UI web console, available under port 15672:

docker run -d --name rabbit -p 15672:15672 -p 5672:5672 rabbitmq:management

The default RabbitMQ address should be overridden with the spring.rabbit.* properties inside the application.yml file:

spring: rabbitmq:  host: 192.168.99.100  port: 5672

By default, Spring Cloud Stream creates a topic exchange for communication. This type of exchange better suits the publish/subscribe interaction model. We may override it with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required