问题
I'm looking for a simple messaging system for .NET, that run as a library with no external dependency.
The requirements are simple: I'd like to be able to call an external HTTP service, and if that service is offline or not responding for some reason, the system should queue the messages for later or discard previous and keep only the latest message, regular messaging stuff.
But I'm looking for something that:
- Runs on Mono/linux
- Free/open source
- Have no external dependency, it should run as part of the application
- Be able to work with existing JSON APIs, and not require the endpoints to be running anything specific
I don't need to receive messages, it is all request/response based. Also, I don't mind if it uses a local database to persist messages during crashes, but that is not that important.
I have looked at NServiceBus, MassTransit and some others. But all seem to require MSMQ or RabbitMQ, and also seem to require the endpoints to be running the same service.
Are there alternatives out there I should look at before thinking of rolling my own?
Thanks
回答1:
You should take a look at ZeroMQ and its .NET binding called NetMQ.
回答2:
In the past, I tried http://github.com/Jiddler/Hyperletter. It's free, open source, running under mono/linux, but it needs to run its own listener. And my tests were running under Xamarin/Android.
来源:https://stackoverflow.com/questions/28044990/is-there-a-messaging-system-for-netmono-with-no-external-dependency