Question

I'm completely new to Node.JS, if I want to pass messages to external systems using a message/event/servicebus.. what alternatives are there that integrates well with Node?

The messages are just JSON strings, and external systems can be whatever, e.g. a C# agent or some such.

(Maybe this should be on some other part of the site cluser than stackoverflow since it's more of a tech question than programming)?

Was it helpful?

Solution

I built a proof of concept for gameinformer.com's commenting system with nodejs/mogodb as the comment service, sending messages to RabitMQ (with node-amqp) and HornetQ (with stomp). A message bus is definitely the way to go if you're building enterprise level applications. I haven't tried sending messages from nodejs to MSMQ but when I do, my first attempt will be with the node js stomp module.

OTHER TIPS

You can use something like Zeromq, redis or you can use a transport protocol like TCP or HTTP.

You are not very specific. But Node.js gives you several options. And you could always use one of these, if you want to implement something yourself:

http://nodejs.org/api/net.html

http://nodejs.org/api/http.html

IMHO I would suggest to use a message broker. You may use ActiveMQ with node.JS through Stomp (node.js plugin). I have implement such architecture and has serve me well for JSON-body-messages ( average 6k TPS ). Both ActiveMQ and Stomp are lightweight enough and easy to serve your application's logic and scalability.

If you can't/don't want to use an external message broker you may use only the Stomp as it provides API for any of the most used technologies (from php to C#,Java & C++). (with activeMQ you could also use JS client through Websocket & Ajax)

Cheers!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top