Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.13 KB

README.md

File metadata and controls

52 lines (38 loc) · 1.13 KB

RabbitMQ-Streams-Demo

RabbitMQ - Docker

Step 1

For Windows:

docker run -d -p 5672:5672 -p 5552:5552 -p 15672:15672 --name demo-rabbit -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest -e RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="-rabbitmq_stream advertised_host localhost" rabbitmq:3.11.3-management

For Linux:

docker run -d \
  -p 5672:5672 \
  -p 5552:5552 \
  -p 15672:15672 \
  --name demo-rabbit \
  -e RABBITMQ_DEFAULT_USER=guest \
  -e RABBITMQ_DEFAULT_PASS=guest \
  -e RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS='-rabbitmq_stream advertised_host localhost' rabbitmq:3.11.3-management

Step 2

docker exec demo-rabbit rabbitmq-plugins enable rabbitmq_stream

RabbitMQ - GUI

RabbitMQ GUI http://localhost:15672/.

Test request

POST /api/message HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 50

{
    "username": "Zabba",
    "title": "Mrs"
}