On Thu, 27 Sep 2018 at 11:45, Joachim Durchholz <j...@durchholz.org> wrote:

> (I am pretty unconvinced that thread pools are a great idea. Essentially
> you need to wipe all thread-local storage before you can reuse a thread
> from the pool, and I'm somewhat sceptical that this is still worth it.)
>

My typical use case for thread pools nowadays is to run a reactive streams
thread pool. Each Rx library needs its own arbitrary context data API,
though, in order to support this sort of thing at an API level. Otherwise,
what I've done in the past was to wrap the executors with a class that
propagates any thread-local data needed (usually the authentication context
and MDC).


-- 
Matt Sicker <boa...@gmail.com>
_______________________________________________
slf4j-user mailing list
slf4j-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/slf4j-user

Reply via email to