Skip to content
No description, website, or topics provided.
Java
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java/uk/co/taidev/experiments/correlationidsync
.gitignore
README.md
pom.xml

README.md

correlation-id-sync

This is a simple Spring boot-based application that demonstrates how request correlationIds could be generated and managed in order to correlate an initial request through a distributed (SOA/microservices) application.

Please note that this version relies on ThreadLocal, and so will only work if you are handling requests synchronously in the initiating thread. As soon as you use a DeferredResult, Future or Callable, this reliance on ThreadLocal will not propogate the correlationIds unless they are manually passed as method parameters (or some similiar approach)

Disclaimer: This is just an experiment and toy-example! I'm not suggesting this code is production-ready! :-)

You can’t perform that action at this time.