Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mechero/spring-boot-amqp-messaging
This is a simple spring-boot app that shows how to configure easily RabbitMQ with AMQP for producing and consuming messages in default format and JSON.
https://github.com/mechero/spring-boot-amqp-messaging
amqp java rabbitmq spring-boot
Last synced: 23 days ago
JSON representation
This is a simple spring-boot app that shows how to configure easily RabbitMQ with AMQP for producing and consuming messages in default format and JSON.
- Host: GitHub
- URL: https://github.com/mechero/spring-boot-amqp-messaging
- Owner: mechero
- Created: 2016-10-22T09:13:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-24T07:19:06.000Z (about 3 years ago)
- Last Synced: 2024-12-09T19:53:39.121Z (about 1 month ago)
- Topics: amqp, java, rabbitmq, spring-boot
- Language: Java
- Homepage:
- Size: 79.1 KB
- Stars: 171
- Watchers: 4
- Forks: 68
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Spring Boot AMQP messaging example with RabbitMQ
This is a simple Spring Boot app that shows how to easily configure RabbitMQ with AMQP for producing and consuming messages in default format (java serialized) and JSON.
In this sample project, each message is sent as JSON and then decoded:
1. on a queue as a generic `Message` object,
2. and on a different queue as the original specific class (with JSON deserialization).![Spring Boot AMQP Configuration Example with RabbitMQ](img/messaging-twoqueues.png)
Note that you need a RabbitMQ server instance running locally to be able to run this application. You can use the included `docker-compose.yml` file to start a new server using Docker: `docker-compose up -d`
I recommend you to have a look at the full explanation of this code, you can find it
[on The Practical Developer site](https://thepracticaldeveloper.com/produce-and-consume-json-messages-with-spring-boot-amqp/).If you want to learn more about microservices, RabbitMQ, Spring Boot Autoconfiguration, event-driven, and microservice architecture patterns, [have a look at my book](https://amzn.to/3nADn4q).