c# - How to package MSMQ (or similar) server into an application? -
I am putting an application that is set to install copies of itself in a downstream server (s). I am reading about Rabbit MQ, and when message / upstream / downstream applications speak to each other then I am very interested in using message rout from what I can do both RabbitMQ and MSMQ, server / broker component First of all, I would like to use an NuGet package or similar from either an installer or a script so that the upstream application is a person (or script) Programming without installing unconditionally to install a copy of the downstream of itself, because it is always to reach at all times.
My question - Is there a message queue library available, where I can embed it in my application for both MQ client and server components?
The idea is to do something (psuedo-code):
class program {static zero main (string [] args) {MyQueueServer.Start (); MyQueueServer.MessageReceived + = FancyCallback; } Fixed Zero FancyCallback (Object Sender, CustomEventArgs e) {ReadMessageAndDoStuff (e); } Fixed Zero SendMessage () {string message = "Hello server"; Var sender = new MyQueueClient (serverConfig description); Sender.Send (message); }
Update:
It seems that there might be a way to go to ZeroMQ, but it seems that I'm not stabilizing the stability by making stuff on the disc I am not also clear that if the remote host is offline, then ZeroMac will be trying to give a message. Google says that you have to roll out your own implementation for these kinds of things. I am ready to do this, but still hope for a different solution that I can take advantage of it.
Comments
Post a Comment