事件通知引擎 - MSMQ
我正在开发一个网络应用程序,它是一种竞价门户,买家可以在其中发布他们的工作,服务提供商可以对他们进行竞价。该应用程序正在使用 EF 4.0、.Net 4.0、ASP.NET 和 Sql Server 2008 进行开发。现在需要生成大量通知并将其发送给相关方/用户。事件的一些示例是:如果工作被取消,或者选择了出价,或者服务提供商已经在工作上发布了消息等等。总共有 14 个这样的事件。
现在我的要求是能够向各方发送电子邮件、短信。此外,登录用户在登录时应该能够通过网络表单查看这些通知。
应用程序要求不应错过任何通知,因此我在这里寻找可扩展且可靠的解决方案。我正在探索 MSMQ 和 sql 服务代理来管理这些消息/通知的队列,但我不确定我是否遵循正确的方向。我还想考虑事务管理、正常运行时间和可扩展性等因素。我将不胜感激这方面的任何帮助。
I am working on a web application which is a sort of bidding portal where buyer post their jobs and the service provider bid against them. The application is being developed using EF 4.0 , .Net 4.0, ASP.NET and Sql Server 2008. Now there are a lot of notifications that needs to be generated and send to respective parties/users. Some example of events are: if a job is cancelled, or a bid has been selected or a message has been posted on the job by the service provider and etc. Altogether there are 14 such events.
Now what my requirement is to be able to send an email , a sms to the respective parties. Also the logged in user should be able to view these notifications through a webform when logged in.
The application demands that no notification should be missed, hence i am looking for a scalable and reliable solution here. I am explorig MSMQ and sql service broker for managing a queue for these messages/notifications but i am not exactly sure if i am following the right direction. Also i would like to consider factors such as transaction management , uptime and scalability etc. I would appreciate any help in this regard.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议考虑使用 nServiceBus,因为它可以满足您的大部分要求。您还可以查看 CQRS 模式。您可以通过查看 nServiceBus 作者网站 http://www.udidahan.com 找到有关这两者的详细信息
I would suggest looking into using nServiceBus as it provides most of your requirements. You could also look at the CQRS pattern. You can find details on both by looking at the nServiceBus authors website http://www.udidahan.com
作为 nServiceBus 的替代方案,您可以查看 Mass Transit
http://masstransit-project.com/
http://code.google.com/p/masstransit/
公共交通建立在消息子系统 (MSMQ) 并简化了订阅管理、故障、sagas(长时间运行的事务)等操作。
我们在生产环境中使用它并且它表现可靠。另外,它有一个简单、自然的 API,并且具有很强的可扩展性。
As an alternative to nServiceBus, you could look at Mass Transit
http://masstransit-project.com/
http://code.google.com/p/masstransit/
Mass Transit is built on top of a messaging subsystem (MSMQ) and simplifies things like subscription management, failures, sagas (long running transactions).
We use it in a production environment and it behaves reliably. Plus, it has an easy and natural API and is quite extensible.