Skip to content
Spring Integration with Spring Cloud Sleuth/Zipkin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Spring Integration with Java DSL support to send and process "Work Units" with a RabbitMQ broker mediating the transfer


  • Start RabbitMQ server:

  • Start Zipkin

docker run -d -p 9411:9411 openzipkin/zipkin
  • Verify Zipkin url in work-dispatcher/src/main/resources/ and work-handler/src/main/resources/

  • Start the Work Handler:

cd work-handler
mvn spring-boot:run
  • Start the Work Dispatcher:

cd work-dispatcher
mvn spring-boot:run
  • Create dummy work units by calling a controller endpoint:

  • A throw exception flag will cause the "Work Unit" processor to throw an error. If that happens a complex flow is kicked off -

    • There is a Dead Letter exchange configured for the Work unit queue, the message from the dead letter exchange is routed to the Dead letter queue, dead letter queue has a ttl of 20 seconds and in-turn has the dead letter exchange configured to be the work units queue thus creating a nice cycle. The cycle of consuming messages is broken by adding in a filter in the processing flow to break processing after a set number of retries - 3 in this case.

You can’t perform that action at this time.