Slide 1

Slide 1 text

wordpress -> middleman lessons learned in the 2-years since migrating

Slide 2

Slide 2 text

About James · Front-end Dev · Focused on ZURB Foundation · Author, Blogger, vLogger

Slide 3

Slide 3 text

How do you survive the Hacker News Front Page?

Slide 4

Slide 4 text

Wordpress usually won't cut it

Slide 5

Slide 5 text

Most Heroku rails apps die

Slide 6

Slide 6 text

We added more dyno's! It's back up!

Slide 7

Slide 7 text

How do you survive as a blogger · 6,000 users within about an hour · If they stayed a minute on average · 100 concurrent users minimum · Large spike at the start tapering off

Slide 8

Slide 8 text

The tests · Started with ab (Apache Bench)1 · Static variant against an optimized wp- supercache enabled Wordpress site, same content · Traded Apache for Nginx, started optimizing · RackSpace 512mb Ubuntu based server 1 http://httpd.apache.org/docs/2.2/programs/ab.html

Slide 9

Slide 9 text

The results · Even simple php scripts ran 6 - 12x slower than a static counterpart · Approximately the same ratio for the number of concurrent connections with minimal slowdown

Slide 10

Slide 10 text

Static Site Generators

Slide 11

Slide 11 text

Octopress · complicated themes with a lot of partial granularity · themes were not great, had an Octopress look

Slide 12

Slide 12 text

Middleman · Very flexible · Ruby based · Sprockets Asset Pipeline · Worked great with ZURB Foundation · Could create anything you want fast

Slide 13

Slide 13 text

commit 020f4159ba448412fadc461c097dc637c18d85f4 Author: James Stone Date: Sat Nov 23 21:02:54 2013 +0100 initial commit

Slide 14

Slide 14 text

James Stone @JAMESSTONEco [email protected]