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

Понравилась презентация – покажи это...

Слайд 0

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

Слайд 1

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

Слайд 2

How do you survive the Hacker News Front Page?

Слайд 3

Wordpress usually won't cut it

Слайд 4

Most Heroku rails apps die

Слайд 5

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

Слайд 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

Слайд 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

Слайд 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

Слайд 9

Static Site Generators

Слайд 10

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

Слайд 11

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

Слайд 12

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

Слайд 13

James Stone @JAMESSTONEco james@jamesstone.com

Слайд 14