自动发现最佳实践:查询EWS URL的频率如何? [英] autodiscover best practice: how often to query for the EWS URL?

查看:188
本文介绍了自动发现最佳实践:查询EWS URL的频率如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找第三方服务器应用程序为Exchange用户执行自动发现的频率的最佳实践。

对于使用EWS的服务器应用程序,我实现了Outlook算法以查找EWS URL对于使用EWS自动发现服务的给定用户。我的理解是,每次Outlook启动时,它都会重新启动Outlook用户的自动发现过程。那是对的吗?如果是这样,如果我有一个服务器应用程序可以拥有10000到100000个用户,那么对于每个用户,我应该多久为每个用户重新查询EWS URL?

我可以在SQL中保留EWS URL吗?每个用户的服务器,直到从EWS API抛出特定的C#异常,然后告诉我重新查询受影响用户的EWS URL?如果是这样,有哪些例外情况会告诉我应该为特定用户重做自动发现过程?

每6到12个小时重新执行一次所有用户的自动发现过程是否有点过分并真正使我的Exchange和网络管理员不开心?我也在考虑添加一个配置设置,让我的服务器应用程序的管理员指定自动发现过程应该重新执行的频率。

我是EWS的新手,所以我希望这个领域有一些最佳实践,或者至少有一些专家知识如何做得好或其他服务器应用程序如何处理这个问题:)

I am looking for a best practice for how often a third-party server application should perform autodiscover for Exchange users.

For my server application that uses EWS, I implemented the Outlook algorithm for finding the EWS url for a given user using the EWS autodiscover service.  My understanding is that everytime Outlook starts, it redoes the autodiscover process for the Outlook user.  Is that correct?  If so, if I have a server application that can have 10000s to 100000s of users, for each of those users how often should I requery the EWS URL for each user?

Can I just persist the EWS URL in SQL Server for each user until specific C# exceptions are thrown from the EWS API that will then tell me to requery the EWS url for the impacted users?   If so, what exceptions would tell me that I should redo the autodiscover process for a specific user?

Would reperforming the autodiscover process for all of my users every 6 to 12 hours be overkill and really make my Exchange and network admins unhappy?  I'm also thinking about adding a configuration setting where I'll let the admins of my server application specify how often the autodiscover process should be reperformed.

I'm new to EWS, and so I'm hoping there are some best practices in this area, or at least some expert insight into how to do this well or how other server applications handle this issue :)

推荐答案

http:// techonq。 com / blogs / microsoft / archive / 2008/07/18 / ews-cas-to-cas-request-proxying.aspx

所以当* 时应该 *你重新自动发现?作为一般惯例,我们建议您每天调用一次自动发现。此外,如果您遇到以下任何一个失败响应代码,您应该重新自动发现:

http://techonq.com/blogs/microsoft/archive/2008/07/18/ews-cas-to-cas-request-proxying.aspx

So when *should* you re-autodiscover?  As a general practice, we would recommend you calling autodiscover once per day.  In addition, if you encounter any of the following failure response codes, you should re-autodiscover:


  • ErrorMailboxMoveInProgress
  • ErrorMailboxStoreUnavailable
  • ErrorNoDestinationCASDueToKerberosRequirements
  • ErrorNoDestinationCASDueToSSLRequirements
  • ErrorNoDestinationCASDueToVersionMismatch
  • ErrorNoRespondingCASInDestinationSite
  • ErrorProxiedSubscriptionCallFailure
  • ErrorProxyCallFailed
  • ErrorMailboxMoveInProgress
  • ErrorMailboxStoreUnavailable
  • ErrorNoDestinationCASDueToKerberosRequirements
  • ErrorNoDestinationCASDueToSSLRequirements
  • ErrorNoDestinationCASDueToVersionMismatch
  • ErrorNoRespondingCASInDestinationSite
  • ErrorProxiedSubscriptionCallFailure
  • ErrorProxyCallFailed

然而,我会摆脱"每天一次"的并且当你遇到错误时真的只是自动发现。因此,持久化URL可能是一个好主意。

However, I would get rid of the "once per day" and really just autodiscover when you encounter an error.  So persisting the URL is probably a good idea.


这篇关于自动发现最佳实践:查询EWS URL的频率如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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