https://github.com/lakshithagihan/message-service
Spring Boot REST API with RabbitMQ Integration
https://github.com/lakshithagihan/message-service
java17 lombok rabbitmq spring spring-boot
Last synced: 3 months ago
JSON representation
Spring Boot REST API with RabbitMQ Integration
- Host: GitHub
- URL: https://github.com/lakshithagihan/message-service
- Owner: lakshithagihan
- Created: 2025-01-19T05:25:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-19T05:41:26.000Z (over 1 year ago)
- Last Synced: 2025-01-28T09:08:58.260Z (over 1 year ago)
- Topics: java17, lombok, rabbitmq, spring, spring-boot
- Language: Java
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Message Service
This is a microservice application which is expose below mentioned operations with integration of RabbitMQ.
1. Push single message to queue.
2. Push json message to queue.
3. Consume single message from queue.
4. Consume json message from queue.
# RabbitMQ Architecture and Overview
You can go through with [RabbitMQ documentation](https://www.rabbitmq.com/) for get some knowledge.
This microservice is created using below mentioned technologies stack.
1. Spring Boot 3.0.10-RELEASE
2. Spring lombok
3. Spring AMQP
4. RabbitMQ 3-management
5. Docker - version 24.0.5
Below display the simple architecture.

## Getting started
Flow the below steps for play with RabbitMQ.
1. Install Docker.
Follow the [Docker Documentation](https://docs.docker.com/engine/install/) for download and install docker.
2. Pull RabbitMQ docker image from Docker Hub. Follow the [RabbitMQ Docker Image](https://hub.docker.com/_/rabbitmq). Make sure to use management version (Ex :- 3-management).
3. Run the docker image of rabbitmq and start the container.
`docker run --rm -it -p 15672:15672 -p 5672:5672 rabbitmq:3-management`
4. Clone the project to your working directory.
Clone with HTTPS : https://github.com/lakshithagihan/message-service.git
Clone with SSH : git@github.com:lakshithagihan/message-service.git
5. Build the artifacts using maven.
- Go inside the message-service project - `cd message-service`
- Download the artifacts using maven - `mvn clean install`
6. Start the Spring Boot application.
- Go inside the target folder which is created with jar file - `cd message-service/target`
- Start the application using jar file in command line - `java -jar message-service-1.0.0-RELEASE.jar`