Reputation: 1325
I have to make a few request to get some data from third party services. As response time from each petition can range from a few seconds to a full minute, I've thinking that would be a good case for implement a multi-thread solution (as seen in this question) but as I haven't used it before, I'm not sure how to implement it.
I have to call 4 services, and each of them with similar parameters. Each of the calls will have a ID which I must generate and keep associated with the session. Also, I have to display information from the first call of each service.
Which would be the best approach? Any advice on sources of information (apart from SO, of course).
Upvotes: 0
Views: 459
Reputation: 4521
You can have a look at Use Threads and Build Asynchronous Handlers in Your Server-Side Web Code and Asynchronous Pages in ASP.NET 2.0.
Upvotes: 2