Archives for Software Dev - Page 51
Async and Await, an easy way to keep your user interface responsive
Introduction Normally, when you invoke a method, it is invoked synchronously on your calling thread. Since you made no provision to ‘unblock’ the main thread, the method essentially ‘blocks’ the…
Improving throughput of your Microsoft stack web app
The flow of a web request (from IIS inwards) The request is still handed over to on an IIS I/O thread. And immediately posts the request to the CLR Threadpool…
POST-ing data using Fiddler
Introduction Composing requests in Fiddler is easy (just use the ‘Composer’ tab). However, by default, fiddler is set to do ‘GET’ requests – which is what a majority of users…
Load Testing with Fiddler and StresStimulus
Introduction As web applications grow in complexity, obtaining a good ‘baseline’ around their load handling capabilities becomes important. Obtaining a baseline is usually a pre-requisite to isolating any performance bottlenecks.…
A (quick) performance review of healthcare.gov
Introduction Which ecommerce website received the most hits on Oct 1? If your answer was , you would be wrong. It was the newly launched – as per these ;…
Move over nUnit (and MSTest), there’s a new kid in town (xUnit)
Introduction xUnit is a newish test framework developed by the original contributor to NUnit. In essence, he seems to have distilled the best features of the various test frameworks out…
StresStimulus (and Fiddler) for Load Testing
Fiddler as a load testing tool Using a fairly obscure feature (hold down the SHFT key while ‘replaying’ your request in Fiddler), you can send multiple requests to your URL…
Replacing foreach loops with LINQ expressions–A performance gain
Resharper can be used to ‘inspect’ your current codebase – based on which, it makes ‘recommendations’ about your code. One of the things that Resharper discovers is ‘Language usage opportunities’…
ADO.NET – simple test of connection pooling
Introduction By default, uses a connection pool – to reuse open database connections. To see how dramatic the consequences of the connection pool are, I wrote a simple test –…
Mirroring versus Replication
Both replication and mirroring are methods of transferring data from a primary database to a secondary database. However, they both serve different purposes – and are used in completely different…