Giter VIP home page Giter VIP logo

spring-boot-rabbitmq-integration's Introduction

Spring Boot RabbitM Integration

Build Status License: MIT

This project aims to present how to create and configure a Spring Boot + RabbitMQ application. The project is built using Java, Spring Boot, RabbitMQ and Docker.

Table of Contents

Prerequisites

Libraries

Library name Description
Spring Boot 2 Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".
RabbitMQ RabbitMQ is the most widely deployed open source message broker.
Docker Compose Compose is a tool for defining and running multi-container Docker applications.

Running the application

On Windows

## Run RabbitMQ on Docker
docker-compose up -d

## Build and run publisher application using Maven Wrapper
mvnw.cmd -f rabbitmq-publisher/pom.xml clean install spring-boot:run

## Build and run receiver application using Maven Wrapper
mvnw.cmd -f rabbitmq-receiver/pom.xml clean install spring-boot:run

On MacOS/ Linux

## Run RabbitMQ on Docker
docker-compose up -d

## Build and run publisher application using Maven Wrapper
./mvnw -f rabbitmq-publisher/pom.xml clean install spring-boot:run

## Build and run receiver application using Maven Wrapper
./mvnw -f rabbitmq-receiver/pom.xml clean install spring-boot:run

RabbitMQ access

RabbitMQ URL Username Password
http://localhost:15672 admin admin

Sending message

In order to send a message to the queue please send a request:

curl --header "Content-Type: application/json" --request POST --data "{\"firstName\":\"John\",\"lastName\":\"Black\"}" http://localhost:8080/api/messages

Screens

Screen 1

Screen 2

Screen 3

Screen 4

spring-boot-rabbitmq-integration's People

Contributors

danielmichalski avatar jhonbaronzabud avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.