Tuesday, July 30, 2013

How to limit the number of threads in C#

Hello,


I think that limiting the amount of threads is quite problematic and while it might solve your problem temporarily it will hunt you in the long run when the application will need to scale so it's not really a solution.


It's really hard to tell you what to do without any details about the application such as the application environment, database infrastructure and the actual database you're working against.


I'm not sure what you're doing there but maybe a new connection should be created per session and not really per thread.






Regards,



Eyal Shilony


No comments:

Post a Comment