Patent ID: 8495166

Claim:
A method to be executed in a computing device for optimized caching to accommodate multiple requests in a web service, the method comprising: in response to receiving a first request for a file, creating a background thread for transferring the file from a back end data store to a temporary local data store at a front end of the web service; creating a shared data structure (SDS) for tracking portions of the file transferred to the temporary local data store; creating a new thread for each subsequent request associated with portions of the file such that multiple requests are accommodated for transferred portions of the file and requests for not-yet-transferred portions of the file are blocked; creating a monitor associated with the SDS for monitoring a status of file transfer from the back end to the temporary local data store; employing the monitor to enable multiple clients of the web service to block and be woken up each time new data is available at the back end data store; and transmitting an error to a user subsequent to a failure to receive at least one of the portions from the back end data store.