Search code examples
node.jshook.io

How to message between CPU Cores in Node?


I have an application that I'm working on that needs to sync a timer between multiple cores (using cluster).

Is there an efficient reliable way that I can communicate between cores? I've looked at Redis, but that seems to be more geared towards client/server communication. I'd be grateful for any advice.

Thank you,


Solution

  • You need to take a look at hook.io:

    hook.io creates a distributed node.js EventEmitter that works cross-process / cross-platform / cross-browser. Think of it like a real-time event bus that works anywhere JavaScript is supported.