How to implement EventEmitter Server to Server

How to implement EventEmitter server to server.
example:
App A -> Event.emit(‘PRODUCT-CREATED’,{xx});

App B -> Event.on(‘PRODUCT-CREATED’,data=>{});
App C -> Event.on(‘PRODUCT-CREATED’,data=>{});

Thank you.

1 Like

Use a message system for that. I just started using https://github.com/OptimalBits/bull for Jobs, but they say it’s also feasible for messaging.

If you don’t need a Job system, you might find other good tools.

Anyway, if you want to send events from server to server you need more than a node event emitter. Normally need a database like redis in between.

@vuhrmeister
Thank you very much.