How to cache Exchange web service API autodiscoverurl?

1k views Asked by At

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)

2

There are 2 answers

2
Mark On BEST ANSWER

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
0
Venkat Ayyadevara - MSFT On

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.