使用 Web 应用程序中的 MessageQueue 写入 SQL Server

发布于 2024-08-21 21:05:22 字数 145 浏览 4 评论 0原文

我必须从 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 技术交流群。

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

发布评论

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

评论(1

浪漫人生路 2024-08-28 21:05:22

没有必要让 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.

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