Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 829 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 829 Bytes

Prerequisites

Run RabbitMQ locally with default settings

rabbitmq-server

Run Application

mvn clean spring-boot:run

Examples

Rendez-Vous

Run the following commands in separate terminal windows

curl -X POST http://localhost:8080/alice \
    -H 'Content-Type: application/json' \
    -d '{"id": "123","message":"Hello from Alice"}'

curl -X POST http://localhost:8080/bob \
    -H 'Content-Type: application/json' \
    -d '{"id": "123","message":"Hello from Bob"}'
  • Try to change sequence of those messages.

  • Try to send only one message and wait for 20 seconds.

  • Compare timestamps of the responses.

  • Monitor queues using this command

    rabbitmqctl list_queues

Resources

Spring AMQP - Reference Documentation