RabbitMQ Samples using Spring Boot
Spring AMQP comprises two modules: spring-amqp and spring-rabbit. Together, these modules provide abstractions for:
AMQP entities – we create entities with the Message, Queue, Binding, and Exchange classes Connection Management – we connect to our RabbitMQ broker by using a CachingConnectionFactory Message Publishing – we use a RabbitTemplate to send messages Message Consumption – we use a @RabbitListener to read messages from a queue
- Java 17
- Kotlin
- Maven 3.x
- RabbitMQ
You can install the dependencies and build by typing the following command
mvn clean install
You can run application's tests by typing the following command
mvn verify
You can test code quality locally via sonarqube by typing the following command
mvn -Psonar compile initialize sonar:sonar
Detekt a static code analysis tool for the Kotlin programming language
You can run detekt by typing the following command
mvn antrun:run@detekt
You can also fully dockerize the sample applications. To achieve this, first build a docker image of your app. The docker image of sample app can be built as follows:
mvn verify jib:dockerBuild
- Java 17
- Kotlin
- Docker
- Sonarqube
- Detekt
- Checkstyle
- RabbitMQ
- Spring Boot 3.x
- Spring Boot Amqp
- Spring Boot Web
- Spring Boot Validation
- Spring Boot Actuator
- Lombok
- Springdoc