Skip to Content
Mastering Spring Cloud
book

Mastering Spring Cloud

by Piotr Mińkowski
April 2018
Intermediate to advanced content levelIntermediate to advanced
432 pages
10h 38m
English
Packt Publishing
Content preview from Mastering Spring Cloud

Customizing application settings

To enable Apache Kafka for the application, include the spring-cloud-starter-stream-kafka starter to the dependencies. Our current sample is very similar to to the sample of publish/subscribe using with RabbitMQ publish/subscribe with grouping and partitioning presented in The publish/subscribe model, section. The only difference is in the dependencies and configuration settings.

Spring Cloud Stream automatically detects and uses a binder found on the classpath. The connection settings may be overridden with spring.kafka.* properties. In our case, we just need to change the auto-configured Kafka client address to the Docker machine address 192.168.99.100. The same modification should be performed for Zookeeper, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microservices with Spring Boot and Spring Cloud - Second Edition

Microservices with Spring Boot and Spring Cloud - Second Edition

Magnus Larsson

Publisher Resources

ISBN: 9781788475433Supplemental Content