c# - Azure 存储队列就像本地一样

标签 c# azure azure-webjobs

我知道这个问题含糊不清,但我可以找到任何相关的内容。

是否有任何软件、 block 、SQL 中的角色、Windows Server 中的角色或任何类似于 Azure 队列的工具?

我有一个在 Azure 上运行的云网站,该网站在 Azure 队列中存储一些消息。后台服务(Azure Web 作业)正在监视队列,当有新消息时,它会在后台进行处理。我想在本地做这样的事情。

我应该如何创建队列并从 Windows 服务(例如在 Azure 中)监视它?

最佳答案

如果您正在寻求功能对等并希望在 Azure 和本地之间切换; Windows Server 服务总线正是您所寻找的。这是 Azure 云中提供的相同功能的本地安装。

Service Bus for Windows Server

The purpose of Service Bus for Windows Server is to provide similar capabilities across Windows Azure and Windows Server, and to enable flexibility in developing and deploying applications. It is built on the same architecture as the Service Bus cloud service and provides scale and resiliency capabilities. The programming model, Visual Studio support, and APIs exposed for developing applications are symmetric to that for the cloud service making it easier to develop applications for either, and switch between the two. Service Bus for Windows Server 1.1 Overview

如果您只是在寻找队列,您也可以使用 MSMQ,它可以作为 Windows 功能安装。

Installing Message Queuing (MSMQ)

Message Queuing (MSMQ) technology enables applications running at different times to communicate across heterogeneous networks and systems that may be temporarily offline. Applications send messages to queues and read messages from queues. Message Queuing (MSMQ)

消息队列还有更多替代方案,但这些替代方案要么已在您的 Windows 环境中可用,要么具有与 Azure 相同的功能。

关于c# - Azure 存储队列就像本地一样,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24006619/

相关文章:

ajax - 通过 Javascript/AJAX 使用 Microsoft Translator

node.js - Azure Bot Framework - 换行卡片操作和按钮文本

azure - 无法使用 Microsoft.Azure.Management.ResourceManager.Fluent 命名空间中的 ResourceManagementClient 类发现 Azure 资源

visual-studio-2015 - 使用 WebJob 发布简单的 Asp.Net Core App (.Net Framework)

c# - 洗牌以覆盖所有可能的排列

c# - 如何在庞大的词典中加快搜索速度

c# - Windows Phone 8 - 将列表保存到 IsolatedStorage

c# - 尝试捕捉性能

visual-studio - 如何将手动创建的 WebJobs 发布到 Azure

c# - 使用 Newtonsoft 反序列化 Json 不起作用