C# 中的持久工作队列

发布于 2024-12-01 03:54:14 字数 612 浏览 5 评论 0原文

想象一下,我想要一个小型的工作无人机网络,可能位于单独的线程上,可能位于单独的进程上,甚至位于不同的 PC 上。工作项由中央程序创建。

我正在寻找可以为我完成这一切的现有产品或服务。我知道有MSMQ,也有MQSeries。 MQSeries 太贵了。 MSMQ 是出了名的不可靠。数据库支持的系统很好,但我不想拥有/管理/编写它。我想使用别人的工作队列系统。

相关文章:

Imagine I want to have a small network of worker drones possibly on separate threads and possibly on separate processes or even on different PCs. The work items are created by a central program.

I'm looking for an existing product or service that will do this all for me. I know that there is MSMQ and also MQSeries. MQSeries is too expensive. MSMQ is notoriously unreliable. A database backed system would be fine, but I don't want to own/manage/write it. I want to use someone else's work queue system.

Related Articles:

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

忆依然 2024-12-08 03:54:14

如果遵循一些准则,您可以成功地使用数据库作为队列存储,请参阅 使用表作为队列

SQL Server 带有自己的内置消息队列,即 服务代理。它可以让您在可扩展性、可靠性、高可用性和灾难恢复场景方面避免许多 MSMQ 陷阱。

Servcie Broker 完全集成在数据库中(无外部存储、一项一致的备份/恢复、一个故障转移单元、消息存储和数据库之间无需昂贵的两阶段提交 DTC、一个用于访问和编程的 T-SQL API)消息和您的数据),并且还具有一些不错的独特功能,例如事务消息传递保证精确一次按顺序交付相关消息锁定< /a>、内部激活等。

If you follow some guidelines you can use a database as a queue store with good success, see Using tables as Queues.

SQL Server comes with its own built-in message queuing, namely Service Broker. It allows you to avoid many of the MSMQ pitfalls when it comes to scalability, reliability and high availability and disaster recovery scenarios.

Servcie Broker is fully integrated in the database (no external store, one consistent backup/restore, one unit of failover, no need for expensive two-phase-commit DTC between message store and database, one single T-SQL API to access and program both the messages and your data) and also has some nice unique features such as transactional messaging with guaranteed Exactly-Once-In-Order delivery, correlated message locking, internal activation etc.

甩你一脸翔 2024-12-08 03:54:14

我过去曾在一个宠物项目中使用过Rabbit MQ,您可以将其添加到您的队列系统列表中。

至于包装队列的框架,您可以看看 http://www.nservicebus.com/ 我们已经为此完成了几个基本项目。这是一个快速入门示例: http://meisinger2.wordpress .com/2009/11/09/nservicebus-十五-分钟/

I have used Rabbit MQ in the past for a pet project, you could add that to your list for Queue systems.

As far as a framework to wrap the Queue's, you could take a look at http://www.nservicebus.com/ we have done a couple of basic projects here at work with that. And here's a quick example to get started: http://meisinger2.wordpress.com/2009/11/09/nservicebus-fifteen-minutes/

︶葆Ⅱㄣ 2024-12-08 03:54:14

我过去曾成功使用过 MassTransit。它支持使用 MSMQ 以及 RabbitMQ。

I have successfully used MassTransit in the past. It supports using MSMQ as well as RabbitMQ.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文