Open SubhamSinghal opened 3 years ago
TenantId is stored in a thread local variable. Now if we switch thread either by using ExecutorService or Vertx event then how can we pass tenant info to other thread?
You can use decorator pattern to pass your thread context to new threads. https://stackoverflow.com/questions/45890181/logging-mdc-with-async-and-taskdecorator
TenantId is stored in a thread local variable. Now if we switch thread either by using ExecutorService or Vertx event then how can we pass tenant info to other thread?