Click here to Skip to main content
15,847,549 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,

I need a bit of advice on how to tackle the latest challenge I have received.

I need to create a windows service that will be installed on 3 diffrent servers.

This windows service will have to spawn 200 threads, each thread will query the same sql tables with unique filters using the same stored procedure ( no 2 threads will have the same data) and each thread needs to make a webservice call to send that data to a Client. The client webservice that has been exposed to us can handle a 1000 simultaneous connections.

Do you guys think that I should stick to traditional threading or make use of the parallel classes?

Do you guys know of any refrence material I could read through to architect this correctly?

What are the pitfalls to look out for?
Posted
Comments
kiquenet.com 31-Jan-13 16:13pm    
any final solution with source code sample?

1 solution

If you could do it with .Net 4.0 I would recommend using the Task Parallel Library. Sacha Barber has an excellent set of articles on this. Here[^] is the first in the series. It makes threading so much more intuitive.
 
Share this answer
 
Comments
sucram 3-Jun-11 8:39am    
Thanks Wayne, I will deffinetly read through this series of articles, I was reading Sacha's series of articles called Beginner's Guide to Threading just to familiarize myself again with some of the pitfalls wrt threading.
sucram 9-Jun-11 6:04am    
Sorry for the late feedback.

The link you provided me with answered my questions. Thanks a mill.
Wayne Gaylard 9-Jun-11 6:24am    
My Pleasure:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900