I am working on WCF project hosted by asp.net/IIS. This WCF service has a Method called SearchImage, which looks like this:
string SearchImage(string query)
{
//call bing service to get the images
//it is very time-consuming
return result.
}
The call to bing service is very time consuming. This can impact the service very much. Async call doesn't help here:
string SearchImage(string query)
{
//async call bing service to get the images
WaitForComplete();
return result.
}
You can see, I still need to wait until bing returns result.
My question is, is there any technology to avoid this kind of block IO issue? Ideally, I want to tell asp.net to response when bing result is back.