WebClient and Thread Local State, Spring

50 Views Asked by At

When our app receives an API call from an external source, we create some thread local context which is the context of our business logic. When the API call returns we clean up and delete the thread locals. If out code calls a WebClient task, what would be the best practice for getting the same thread local context into the result thread when the WebClient receives its data?

0

There are 0 best solutions below