node-rdkafka
node-rdkafka copied to clipboard
Does 2.12.0 support being used in worker-threads?
Environment Information
- OS [cent os 7]:
- Node Version [16.13.1]:
- NPM Version [8.1.2]:
- C++ Toolchain [g++ 7.3.1, node-gyp: 8.4.1]:
- node-rdkafka version [e.g. 2.12.0]:
Steps to Reproduce Create a worker thread and require('node-rdkafka'); Results: I see errors consistent with the library not being context aware when initializing in a worker thread. This isn't an issue when I use require('node-rdkafka') in the main thread.
node-rdkafka Configuration Settings Nothing special
Additional context I understand that there have been issues with getting node-rdkafka libraries and or itself to be context aware. It sounds like the issue was fixed, https://github.com/Blizzard/node-rdkafka/pull/857 but I may have misread.
I am wondering
- Do I need to clone master from github? Or is there a beta version with this fixed?
- Is there anything I can do to make this work?
Anyone?
by now it seems like 2.13.0 does still not support worker threads sadly :( would also be a feature we'd love to see