是否有.NET + Mono的消息传递系统,没有外部依赖关系? [英] Is there a messaging system for .NET+Mono with no external dependency?

查看:95
本文介绍了是否有.NET + Mono的消息传递系统,没有外部依赖关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个用于.NET的简单消息传递系统,该系统可以作为没有外部依赖项的库运行.

I'm looking for a simple messaging system for .NET, that run as a library with no external dependency.

要求很简单:我希望能够调用一个外部HTTP服务,并且如果该服务处于脱机状态或由于某种原因而没有响应,则系统应将消息排队以备后用或丢弃先前的消息,并仅保留最新消息,常规消息内容.

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:

  • 在Mono/linux上运行
  • 免费/开源
  • 没有外部依赖关系,它应作为应用程序的一部分运行
  • 能够使用现有的JSON API,并且不需要端点运行任何特定的东西

我不需要接收消息,这全部基于请求/响应.另外,我不介意它是否在崩溃期间使用本地数据库来保留消息,但这并不重要.

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.

我看过NServiceBus,MassTransit等.但是所有这些似乎都需要MSMQ或RabbitMQ,并且似乎还要求端点运行相同的服务.

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?

谢谢

推荐答案

您应该看看 ZeroMQ 及其.NET绑定称为 NetMQ .

You should take a look at ZeroMQ and its .NET binding called NetMQ.

这篇关于是否有.NET + Mono的消息传递系统,没有外部依赖关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆