damirarh / damirscorner-utterances

utteranc.es comments for https://damirscorner.com
0 stars 0 forks source link

/blog/posts/20230106-UsingMdcInQuarkus.html #136

Open damirarh opened 1 year ago

damirarh commented 1 year ago

Imported

URL: https://www.damirscorner.com/blog/posts/20230106-UsingMdcInQuarkus.html

damirarh commented 1 year ago

Imported comment written by Cole Snyder on 2023-02-04T02:37:42

Awesome! Thank you for this post! Could not find anything about this anywhere, but what you have makes so much sense, I can't believe I didn't think of it. I've translated it to plain ole Java and it's working like a charm. Appreciate the community service!

sarbacane-efrancois commented 9 months ago

MDC is nice to pass information through context but keep in mind that MDC's context is linked to a thread and (most of) Quarkus relies on vert.x (which is thread agnostic), so MDC clash can happen when a same thread handles multiple lightweight threads. For example i got some cases where amqp consumers (on vert.x threads) shared the same MDC (same threadId) of a concurrent http request.