March 2008 Entries

For...Each loops can be nasty...

A couple weeks ago, my team was having issues with a new version of one of our web services. It seemed that it was using up all available TCP ports on the server, thereby causing a Denial of Service. We found the root cause of the issue... A For..Each loop! So, For..Each loops aren't bad. The problem was what we did inside the loop. We were looping over a set of records and then reaching out to another web service. This resulted in thousands of individual web service calls back to the same web farm. The solution:...

posted @ Wednesday, March 26, 2008 3:06 PM | Feedback (0)