gcalsolaro / spring-boot-rabbit-websocket

Sample application using Spring RabbitMQ as Message Broker and WebSocket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Boot RabbitMQ WebSocket

Java CI with Maven

Sample application using Spring RabbitMQ as Message Broker and WebSocket

Table of Contents

Architecture

The technology stack used is provided by Spring, in particular:

  • Spring Boot - 2.1.1.RELEASE
  • Spring Rabbit - 2.1.2.RELEASE
  • Spring AMQP - 5.1.3.RELEASE
  • Spring WebSocket - 5.1.3.RELEASE
  • Reactor Netty - 0.8.3.RELEASE
  • Freemarker - 2.3.28

Prerequisites

  • JDK 8 - Install JDK 1.8 version
  • Maven - Download latest version
  • RabbitMQ Server - 3.8.3

Running Instructions

Installing RabbitMQ Server

  • Download and install latest version of RabbitMQServer

  • Enable Management console from shell

      rabbitmq-plugins enable rabbitmq_management
    
  • Enable STOMP Endpoint installing plugin from shell:

      rabbitmq-plugins enable rabbitmq_stomp
      rabbitmq-plugins enable rabbitmq_web_stomp
    

Run Application

Rest API

Server API

Method URI Description Parameters
GET /rabbit/send/{message} Send an arbitrary message message

About

Sample application using Spring RabbitMQ as Message Broker and WebSocket


Languages

Language:Java 100.0%