susimsek / spring-rabbitmq-samples

Spring Rabbitmq Samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring RabbitMQ Samples

RabbitMQ Samples using Spring Boot

Spring Boot RabbitMQ Samples

RabbitMQ

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

Prerequisites

  • Java 17
  • Kotlin
  • Maven 3.x
  • RabbitMQ

Build

You can install the dependencies and build by typing the following command

mvn clean install

Testing

You can run application's tests by typing the following command

mvn verify

Code Quality

You can test code quality locally via sonarqube by typing the following command

mvn -Psonar compile initialize sonar:sonar

Detekt

Detekt a static code analysis tool for the Kotlin programming language

You can run detekt by typing the following command

mvn antrun:run@detekt

Docker

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

Used Technologies

  • 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

About

Spring Rabbitmq Samples


Languages

Language:Java 96.8%Language:Kotlin 3.2%