Hi,

I am working on microservices stack and using correlation id (Unique
request id) generated via nginx to log into each microservice logs. I am
using MDC for extracting this from request header in OncePerRequestFilter
in java.

One of the microservice then use java thread executor framework and then
call other microservices.

Can using MDC with executor (java thread pool) mess up due to thread re
use? Is it possible that I get either empty MDC context or incorrect
context due to thread reuse?

I am referring below link where one such scenario is explained:
http://ashtonkemerling.com/blog/2017/09/01/mdc-and-threadpools/

A response is appreciated! Thanks

-- 
Regards,
Kumar Saurabh
_______________________________________________
slf4j-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/slf4j-user

Reply via email to