Skip to content

About

Demo how to use Spring-AMQP client to connect to RabbitMQ

Resources

Stars

10 stars

Watchers

3 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Demo how to use Spring-AMQP client to connect to RabbitMQ

Resources

Stars

10 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages