本文介绍了当EWS客户端应该重试失败的请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在开发EWS客户端并且想知道 - 客户端是否应该在后台重试对服务器的请求?我的意思是,例如,如果我收到响应"ErrorServerBusy",那么我应该在10秒内再次尝试请求吗?对于此类问题,是否有最佳做法
,即如果EWS错误请求应自动重试?

I am developing EWS client and wondering - are there situations when client should retry request to server in background? I mean, for example, if I got response "ErrorServerBusy" then should I try request again in 10 seconds? Is there best practice for such kind of questions, i.e. in case of which EWS errors requests should be retried automatically?

谢谢

推荐答案

您可能在多服务器环境中收到的其他响应可能到期在正常操作期间邮箱发生故障转移的临时或传输中断等等。在这种情况下,根据我对Exchange Online运行
的经验,它可以在10秒到2分钟之间。例如,在这种情况下,你应该得到一个邮箱存储不可用,但有时它可能会抛出一些其他错误甚至500内部错误都是由相同的原因引起的。 

Other responses you may receive in multi server environments maybe due to temporary or transitive outages where Mailboxes are failed over during normal operations etc. In that instance it can be between 10 Seconds to 2 minutes in my experience running against Exchange Online. eg in that instance you should get a Mailbox Store Unavailable but occasionally it may throw a number of other errors or even a 500 Internal error all caused by the same reason. 

干杯

Glen

Cheers
Glen


这篇关于当EWS客户端应该重试失败的请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 06:05