Sample Spring Cloud Stream code to send and process "Work Units" with a RabbitMQ broker mediating the transfer

Steps

  • Start RabbitMQ server:

rabbitmq-server
  • Start the Work Handler:

cd work-handler
../gradlew bootRun
  • Start the Work Dispatcher:

cd work-dispatcher
../gradlew bootRun
  • Create dummy work units by calling a controller endpoint:

http://localhost:8080/generateWork?definition=test