Azure存储-队列客户端创建随机失败

问题描述

在使用nuget软件包WindowsAzure.Storage版本= 8.1.4使用SDK创建Azure队列客户端时 cloudstorageAccount.CreateCloudQueueClient()由于生产上的未知原因间歇性地失败。

P.S:应用程序托管在Service Fabric上

以下代码用于创建惰性连接

  AsyncLazy<CloudQueue> qClient = new AsyncLazy<CloudQueue>( async () =>
        {
            var myStorageAccount = CloudStorageAccount.Parse("ConnectionString");
            var myQueue = myStorageAccount .CreateCloudQueueClient()
                .GetQueueReference("QueueName");
            await myQueue.CreateIfNotExistsAsync();
            return myQueue;
        });

这是已知问题吗?

可能是什么原因?

如何知道失败的根本原因?

是否有解决此间歇性问题的解决方法,例如使用“ Polly”等实施重试策略?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)