Approach to multithreaded loading of object data

I have a project in which I load several objects from a web service. For each of these objects, I need to call several web services to enrich the object. Like, for example, a book where I need to look for the author, year, comments, recommendations, etc.

One of the main areas of this project is performance, so I worry a little about it and the best approach for loading / enriching all of these objects.

Any suggestions for this architecture are welcome.

Now I am planning a book writing cycle (first list), and then an asynchronous request for web services to get the information needed to enrich each book. Is this a good approach? Or is there a better approach?

+3
source share
1 answer

If you are using .NET 4, then the parallel task library can be continued. I used it to make multiple simultaneous web service calls in a similar scenario, and it worked pretty well.

These two blog posts can be helpful:

I hope this helps.

0
source

All Articles