我想要一个事件驱动的体系结构,其中事件消费者(订阅者/观察者)和事件生产者(发布者/主题)位于分布式地理区域。
.NET 中是否有某种东西可以通过网络无缝地中继事件,而无需我深入研究传输机制的实现?
我记得 Juval Lowy 大约两年前在 DNR 节目中谈到过有关企业服务的内容,但不记得那是什么了。
有人知道我可以使用 .NET 框架中的什么来做到这一点吗?
I want to have an event driven architecture where the event consumer (subscriber/observer) and the event producer (publisher/subject) are over a distributed geography.
Is there something in .NET that relays events over a network seamlessly without my having to plumb into the implementation of the transport mechanism?
I recall Juval Lowy saying something about Enterprise Services in a DNR show 2 years or so ago but can't recall what that was.
Anyone know what I can use from the .NET framework to do this?
发布评论
评论(5)
您可以使用 WCF 和 MSMQ 来完成此操作。汤姆·霍兰德 (Tom Hollander) 有一个 关于它的博客文章。。您还可以查看 TIBCO 等解决方案。如果您喜欢开源,RabbitMQ 也值得一看。如果您正在寻找服务巴士,那么公共交通也是一个开源选项。 Mike Hadlow 在此处发表了相关博客。
You can do this with WCF and MSMQ. Tom Hollander has a blog post on it.. You could also look at solutions like TIBCO. If you fancy open source, RabbitMQ is worth a look at too. If you're looking for a service bus, then mass transit is also an open source option. Mike Hadlow has blogged about it here.
我相信这就是 .NET 远程处理(链接) 开始发挥作用。我不是这方面的专家,但它看起来像你正在寻找的东西。
除了 .NET Remoting 之外,WCF (Windows Communication Foundation)(链接) 可能是远程处理的更好替代方案。我在 WebServices 方面有一些经验,但在 WCF 方面却很少,但我会研究这两种 .NET 技术。
I believe this is where .NET Remoting (link) comes into play. I'm no expert with it, but it looks like what you're looking for.
In addition to .NET Remoting, WCF (Windows Communication Foundation) (link) may be a better alternative to Remoting. I have some experience with WebServices and little with WCF, but I would investigate these two .NET technologies.
这听起来像是 MSMQ 的工作。本文应该可以帮助您入门。
http://msdn.microsoft.com/en-us/library/ms978430。 ASPX
This sounds like a job for MSMQ. This article should help get you started.
http://msdn.microsoft.com/en-us/library/ms978430.aspx
这听起来对于 Erlang 系统来说是一项完美的工作……或者可以使用像 RabbitMQ 这样的 AMCQ 客户端,不是吗?
This sounds like a perfect job for an Erlang system ... or maybe use an AMCQ client like RabbitMQ, no?
如果您具有配置访问权限,MSMQ 将是执行此操作的好方法。 WCF 应该是一个合理的替代方案,具体取决于消息传递的重要性。
简单的 MSMQ 示例:http://www.codeproject.com/KB/cs/mgpmyqueue。 ASPX
MSMQ would be a good way of doing this if you have configuration access. WCF should be a reasonable alternative depending on how vital the messaging is.
Simple MSMQ example: http://www.codeproject.com/KB/cs/mgpmyqueue.aspx