Response.TransmitFile + Close will kill your application

Just before last weekend I noticed that a website I'm responsible for started spitting out "Server is busy" messages, not something you want to see on a website with millions of visitors per day. The quickfix was to recycle the application pool, and thus I solved the symptoms by setting a 15 mins recycle cycle on all the application pools. Not exactly optimal, but sometimes pissing your pants is the way to go.

Read the complete 13300 bytes...

Digg it | Kick it | Dzone it | Reddit


XmlOutput vs XmlSerializer performance

I got quite a lot of comments for my XmlDocument fluent interface, and I'm very glad I did. I'm always open towards new ways to solve problems, and I got a couple of suggestions to my post that I afterwards experimented with. One of those is using the XmlSerializer to serialize strongly typed classes (or structs - performance is the same) into XML. Jon von Gillern originally suggested it, but Kris Vandermotten made me want to test it out.

Read the complete 5940 bytes...

Digg it | Kick it | Dzone it | Reddit


SQL Server Mirroring, a practical approach

In this post I'll take a practical approach at talking about what SQL Server Mirroring is, the advantages and considerations that follows.

Read the complete 19534 bytes...

Digg it | Kick it | Dzone it | Reddit


C# String enumerations

Switches are rarely nice in an architectural aspect, but they are often required none the less. One of the ways we can reduce the risk of errors as well as increase readability is to use enumeration values instead of constants. Unfortunately this only works for numeric types, we cannot create a string enumeration. Here's a workaround.

Read the complete 2031 bytes...

Digg it | Kick it | Dzone it | Reddit


Controlling SqlConnection timeouts

When performing queries against a SQL Server database, there are a couple of methods readily available. However, an option is missing.

Read the complete 3059 bytes...

Digg it | Kick it | Dzone it | Reddit


Using Network Load Balancing for Availability & Scalability

There are two primary reasons for venturing into the realms of clustering/load balancing - availability & scalability. In this post I'll give a quick demo of how to setup Windows Network Load Balancing (NLB) on Server 2003 and how it affects the availability of a web application.

Read the complete 4885 bytes...

Digg it | Kick it | Dzone it | Reddit


MTH going open

Some of you may know that I used to play a lot of poker. Unfortunately that's not the case any more. I really enjoy live poker when I'm in Vegas, I enjoy the major tournaments and I've definitely not participated in my last WSOP. But as for online poker and the daily grind, I've quit it. I just don't find it exciting any more. While the mathematical aspect acquired my interest early on, I never enjoyed grinding as such, it was purely for monetary reasons.

Read the complete 4183 bytes...

Digg it | Kick it | Dzone it | Reddit


Setting up and testing Active Directory failover

I spend a lot of time architecting for scalability, availability and security during my daily work. Currently I've got a distributed system consisting of several windows services communicating across machines using WCF and authenticating through Active Directory.

Read the complete 10764 bytes...

Digg it | Kick it | Dzone it | Reddit