On MT's resiliency when "getting Dugg"
sarahintampa wants to move off of TypePad and is trying to decided if MT4 is right for her. In posting her thoughts she writes:
I read somewhere that if you get Dugg, your MT site stays up and your WP site goes down…something to do with the database…? Anyone who can explain this, please comment!
This comes up frequently enough that I thought I would post it here for the benefit of others and my own future reference. What follows is a lightly edited version of the comment I made.
This is mostly true though given enough traffic or lack of server resources any site, regardless of the tool, will go down. A more accurate statement is that MT is more resilient to “getting Dugg” then WordPress and other dynamic publishing tools.
WP, and other tools like ExpressionEngine, uses a dynamic publishing model. This means with each request by a user via the browser, a page is compiled and rendered before being returned. The process means that one (and often more) database requests need to be issued to get your content so it can be merged with the markup in the template to produce the page that is sent back to the browser. The benefit is instant gratification for the author.
MT uses a static publishing model. The process of issuing database requests and merging them with the markup in a template is similar; however, MT will write a physical file to your server. These static publishing (formerly referred to as rebuilding in MT parlance) events are triggered in a number of explicit and implicit ways.
With a static file, when a user requests a page your web server simple reads the file and sends it down the pipe to the browser. The key benefit here is that each request does not need to make any database requests and there is very little computation needed. This makes MT powered sites more resilient to sudden spike in activity such as getting Dugg because serving static files use significantly less server resources.
Another benefit is that your database can go down, but your site will still be viewable. Only accepting comments and publishing new content would be affected. IMHO that’s better then your site just disappearing.
There are a few trade-offs to the static model that are worth mentioning. Given enough content or unoptimized templates you can experience very long publish times. You also have to be mindful of frequently updated sidebar or footer content in archive pages. MT’s default templates design around this issue. If you really want to include something of this nature there are work arounds using server or JavaScript includes. The issue here is that it’s not as intuitive for the developer/publisher designing the site.
I know that there are a few caching options for WP (wp-cache comes to mind) that will help it perform better making it more resilient. I haven’t worked with them personally so take that for what it’s worth. I’ve read mixed reviews and still a fair number of WP feeds going down when Dugg. Perhaps that is just a lack of user awareness. I don’t know.

2 Comments