Need to know what are the possible ways to cache external service data on Sharpeoint WFE's.
Example of external service data: Stock updates from a third party service.
As per my analysis, Distributed Caching is the way to go. The Sharepoint 2013 object model also provides an API to add/remove objects from the Distributed cache.
But, in our case, we are using Javascript to call the external service. Essentially, it is a ajax service call.
Options that I have seen [which are possible via javascript ]:
1) In memory cache - create a cache object and add the key(request) and value(response). However, the in memory cache eats a lot of memory and could hamper the performance instead of improving.
2) Set the HttpHeader : cache-control with the value: 'public, maxage=20'
3) Timer Job which would run periodically and get the data..
I am trying to understand whether distributed caching would fit here. I would appreciate if experts help me out here.
Thanks in advance
Priyanka http://priyankaps.blogspot.com/