开发者

Multithreading on ASP .NET 2.0

开发者 https://www.devze.com 2022-12-08 06:45 出处:网络
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

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 h开发者_C百科aven'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).


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号