Creating a message producer/message consumer

Having restructured our application to make room for comments, let's get to it!

First of all, we need to add a new dependency to our build file, which is done with the following code:

    compile('org.springframework.boot:spring-boot-starter-amqp')

That will give us access to Spring AMQP, which includes RabbitMQ support.

Adding messaging technology to our application may make us clamor to, well, write some code that talks to RabbitMQ. But that isn't really a good flow. Instead, we should start from one of two perspectives--writing a unit test or writing some UI.

Either approach is aimed at figuring out the use case we are trying to solve. Before solving the problem at hand, we need to noodle out what ...

Get Learning Spring Boot 2.0 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.