存储队列消耗最佳实践 [英] Storage queue consumption best practice

查看:89
本文介绍了存储队列消耗最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我需要创建一个服务来使用来自Azure存储队列的消息.

在效率和可伸缩性方面,最佳做法是什么?

我应该使用诸如Web作业之类的东西吗?

预先感谢.

解决方案

带有存储队列和异常的Azure WebJobs

https://docs.microsoft.com/zh-cn/azure /service-bus-messaging/service-bus-azure-and-service-bus-queues比较对比

https://docs.microsoft.com/zh-CN/azure/storage/queues/storage-dotnet队列使用方法

https://www.developerfusion.com/article/120197/using-the-queuing-service-in-windows-天蓝色/

https://docs.microsoft.com/en -us/azure/architecture/guide/architecture-styles/web-queue-worker#web-queue-worker-on-azure-app-service

-------------- -------------------------------------------------- ----------------------------------

如果此答案有帮助,点击"标记为答案"或 投票.要提供有关您的论坛体验的其他反馈,请单击 在这里


Hi there,

i need to create a service that will consume messages from an Azure storage queue.

what is the best practice for that in terms of efficiency and scalability? 

Should i use for example web jobs or something else?

Thanks in advance.

解决方案

In all cases, the request rate and bandwidth achieved by your storage queue depends upon the size of objects stored, the access patterns utilized, and the type of workload your application performs. Be sure to test your service to determine whether its performance meets your requirements. If possible, avoid sudden spikes in the rate of traffic and ensure that traffic is well-distributed across partitions.

When your application reaches the limit of what a partition can handle for your workload, Azure Storage begins to return error code 503 (Server Busy) or error code 500 (Operation Timeout) responses. If these errors are occurring, then your application should use an exponential back off policy for retries. The exponential back off allows the load on the partition to decrease, and to ease out spikes in traffic to that partition. Storage queues, which are part of the Azure storage infrastructure, feature a simple REST-based GET/PUT/PEEK interface, providing reliable, persistent messaging within and between services. Suggest you to refer below links for better understanding.

Azure WebJobs with Storage Queue and Exceptions

https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-azure-and-service-bus-queues-compared-contrasted

https://docs.microsoft.com/en-us/azure/storage/queues/storage-dotnet-how-to-use-queues

https://www.developerfusion.com/article/120197/using-the-queuing-service-in-windows-azure/

https://docs.microsoft.com/en-us/azure/architecture/guide/architecture-styles/web-queue-worker#web-queue-worker-on-azure-app-service

--------------------------------------------------------------------------------------------------

If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click here


这篇关于存储队列消耗最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆