简体   繁体   中英

How to cache Exchange web service API autodiscoverurl?

https://msdn.microsoft.com/en-us/library/office/dn659837%28v=exchg.150%29.aspx

According to link above, we can caching the information for Autodiscover.

The question is:

1) Should i serialize ExchangeService object to xml or just cache some of the properties (which properties) ? (I want to improve performance of the system because autodiscoverurl is too slow)

I would suggest you cache the minimum information your app needs to function.

This page suggests

  • Autodiscover endpoint
  • EWS URL and any other settings retrieved from the Autodiscover response

Most apps just cache the EWS URL. If you are requesting any additional properties when making GetUserSettings operation (SOAP) , you could cache them as well. And please make AutoDiscover request at least once every 24 hours. I am not sure it would help to serialize ExchangeService, or if it is even possible to serialize this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM