Windows Azure Service Bus (4) Service Bus Queue和Storage Queue的区别

简介:

 《Windows Azure Platform 系列文章目录

 

  熟悉笔者文章的读者都了解,Azure提供两种不同方式的Queue消息队列:

  1.Azure Storage Queue

  具体可以参考:

      Windows Azure Cloud Service (12) PaaS之Web Role, Worker Role, Azure Storage Queue(下)

  Azure Storage Queue提供基础的消息队列服务,例如AddMessage, DeleteMessage。

  Azure Storage Queue消息容量为64KB(使用 Base64 编码时为 48 KB),最大容量为200TB

  Azure Storage Queue的消息接受,需要在WorkerRole.cs的Run()函数中编写额外的代码。

 

  2.Azure Service Bus Queue

  具体可以参考:

      Windows Azure Service Bus (2) 队列(Queue)入门

      Windows Azure Service Bus (3) 队列(Queue) 使用VS2013开发Service Bus Queue

      Windows Azure Service Bus (5) 主题(Topic) 使用VS2013开发Service Bus Topic

  Azure Service Bus Queue提供更加复杂的消息队列服务,例如队列、主题、中继等。

  Azure Service Bus Queue的消息容量为256KB,最大容量1GB至80GB,能够保证绝对的First-In-First-Out (FIFO)

  Azure Service Bus Queue的消息接受,在WorkerRoleWithSBQueue1的Run()函数中,提供Client.OnMessage((receivedMessage) => ,用来接收消息。

 

 

  其他有关Azure  Storage Queue和 Service Bus Queue的详细比较,请参考MSDN文章:

  https://msdn.microsoft.com/zh-cn/library/azure/hh767287.aspx


本文转自Lei Zhang博客园博客,原文链接:http://www.cnblogs.com/threestone/p/4533641.html,如需转载请自行联系原作者

目录
相关文章
|
3月前
|
安全 Windows
【Azure Cloud Service】在Windows系统中抓取网络包 ( 不需要另外安全抓包工具)
通常,在生产环境中,为了保证系统环境的安全和纯粹,是不建议安装其它软件或排查工具(如果可以安装,也是需要走审批流程)。 本文将介绍一种,不用安装Wireshark / tcpdump 等工具,使用Windows系统自带的 netsh trace 命令来获取网络包的步骤
106 32
|
3月前
|
C# Windows
【Azure App Service】在App Service for Windows上验证能占用的内存最大值
根据以上测验,当使用App Service内存没有达到预期的值,且应用异常日志出现OutOfMemory时,就需要检查Platform的设置是否位64bit。
67 11
|
6月前
|
Java 应用服务中间件 开发工具
[App Service for Windows]通过 KUDU 查看 Tomcat 配置信息
[App Service for Windows]通过 KUDU 查看 Tomcat 配置信息
|
6月前
|
Java 应用服务中间件 Windows
【App Service for Windows】为 App Service 配置自定义 Tomcat 环境
【App Service for Windows】为 App Service 配置自定义 Tomcat 环境
|
6月前
|
网络安全 API 数据安全/隐私保护
【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Windows)
【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Windows)
|
Windows C#
Windows Service的安装卸载 和 Service控制
原文 Windows Service的安装卸载 和 Service控制 本文内容包括如何通过C#代码安装Windows Service(exe文件,并非打包后的安装文件)、判断Service是否存在、获得Service状态及启动停止Service。
912 0
|
6天前
|
安全 Unix 虚拟化
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 2 月更新)
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 2 月更新)
32 11
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 2 月更新)
|
6天前
|
Unix 虚拟化 Windows
Windows Server 2025 中文版、英文版下载 (2025 年 2 月更新)
Windows Server 2025 中文版、英文版下载 (2025 年 2 月更新)
28 7
Windows Server 2025 中文版、英文版下载 (2025 年 2 月更新)
|
6天前
|
安全 虚拟化 Windows
Windows Server 2019 中文版、英文版下载 (2025 年 2 月更新)
Windows Server 2019 中文版、英文版下载 (2025 年 2 月更新)
41 22
|
13天前
|
安全 网络安全 数据安全/隐私保护
Windows Server 2025 Active Directory 重置用户密码
密码重置是管理员日常任务之一,用户因忘记或多次输错密码导致账户锁定时需进行重置。本文介绍在Active Directory服务器上重置密码的三种方法。