avast / continuity

Library for passing context between threads in multi-threaded applications
1 stars 1 forks source link

Vert.x #6

Open davidjirovec opened 6 years ago

davidjirovec commented 6 years ago

Would this library make possible to use MDC in Vert.x?

jakubjanecek commented 6 years ago

Hello. Since Vert.x is using the reactor pattern I think it should also be working with Vert.x. You need to wrap all the executing thread pools in Continuity and you'll see. It really depends on the internal implementation of Vert.x, if there is any point where Vert.x would do some context switch without using Continuity pool (these things unfortunately happen) than there is nothing this library can do about it and the context will be lost.