Wordpress -> Middleman: Lessons Learned in the 2 Years Since Migrating

If you like this presentation – show it...

Slide 0

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

Slide 1

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

Slide 2

How do you survive the Hacker News Front Page?

Slide 3

Wordpress usually won't cut it

Slide 4

Most Heroku rails apps die

Slide 5

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

Slide 6

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 7

The tests 1 · Started with ab (Apache Bench) · Static variant against an optimized wpsupercache 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 8

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 9

Static Site Generators

Slide 10

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

Slide 11

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

Slide 12

commit 020f4159ba448412fadc461c097dc637c18d85f4 Author: James Stone <jamesmanofstone@gmail.com> Date: Sat Nov 23 21:02:54 2013 +0100 initial commit

Slide 13

James Stone @JAMESSTONEco james@jamesstone.com

Slide 14