存储队列消耗最佳实践 [英] Storage queue consumption best practice
问题描述
你好,
我需要创建一个服务来使用来自Azure存储队列的消息.
在效率和可伸缩性方面,最佳做法是什么?
我应该使用诸如Web作业之类的东西吗?
预先感谢.
https://docs.microsoft.com/zh-CN/azure/storage/queues/storage-dotnet队列使用方法
https://www.developerfusion.com/article/120197/using-the-queuing-service-in-windows-天蓝色/
-------------- -------------------------------------------------- ----------------------------------
如果此答案有帮助,点击"标记为答案"或 投票.要提供有关您的论坛体验的其他反馈,请单击 在这里
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/storage/queues/storage-dotnet-how-to-use-queues
https://www.developerfusion.com/article/120197/using-the-queuing-service-in-windows-azure/
--------------------------------------------------------------------------------------------------
If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click here
这篇关于存储队列消耗最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!