使用 Web 应用程序中的 MessageQueue 写入 SQL Server
我必须从 Web 应用程序向 SQL Server 写入一些信息。但为了最大限度地减少延迟,我希望它是使用消息队列的异步操作。
我可以创建一个队列并将消息(要存储的 xml 序列化对象)发布到队列中。
我需要做什么才能将该消息从队列写入数据库?
I have to write some information to SQL Server from a web application. But to minimize the delay I want it to be asynchronous operation using Message Queue.
I can create a Queue and post a Message (xml serialized object to be stored) to the queue.
What do I need to do to write that message from Queue to database?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有必要让 MSMQ 参与其中,除非您想大幅降低性能。 SQL Server 已经有队列。请参阅异步过程执行。
There is no need to involve MSMQ into this, unless you want to nose dive the performance. SQL Server already has queues. See Asynchronous procedure execution.