I am a relatively new developer, but I am working on an application that aggregates several XML files. For one particular controller, about 25 calls to a remote REST-based service are made, and it takes roughly 5-7 seconds to complete all the calls, parse the data and return the view. I am caching the results of the controller for 30 minutes.
What I want to avoid is a user having to wait that 7 seconds when the cache expires. So, my idea is to execute a method every half hour which aggregates the XML files to a single local file which can then be queried. Hence, the controller would no longer directly make a call to the services, but merely call the stored file.
I have remote access to the IIS, so I can't set tasks in that manner. It would have to be a application layer solution. Suggestions?