Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use in worker_threads #342

Closed
broose-goose opened this issue Oct 11, 2019 · 2 comments · Fixed by #350
Closed

Use in worker_threads #342

broose-goose opened this issue Oct 11, 2019 · 2 comments · Fixed by #350

Comments

@broose-goose
Copy link

I'm trying to use the worker_thread node feature to allow for a worker pool of pushers that are pre-connected to a sink. I keep getting the error "Module did not self-register" wherever I try to require zeromq in a worker thread context.

Has anyone been able to successfully use zeromq in a worker thread? I read here that it might be as easy as changing a line in the binding.cc file, but had no luck. Link below

nodejs/node#21783 (comment)

@rolftimmermans
Copy link
Member

rolftimmermans commented Oct 16, 2019

Interesting. I don't think it is easily possible. Can you elaborate on your use case? Perhaps we can make it happen in future releases.

@rolftimmermans
Copy link
Member

I've published a version of zeromq-ng that works across threads (beta 27) and would like to encourage you to try it out to see if it solves your use case. Would love to hear more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants