node-rdkafka icon indicating copy to clipboard operation
node-rdkafka copied to clipboard

Does 2.12.0 support being used in worker-threads?

Open iklotzko opened this issue 3 years ago • 2 comments

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?

iklotzko avatar Feb 07 '22 21:02 iklotzko

Anyone?

iklotzko avatar Feb 24 '22 15:02 iklotzko

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

relief-melone avatar Sep 06 '22 18:09 relief-melone