Double Your Cache, Double Your Fun

Long, long ago, when I was at GitHub, the file servers were setup active-passive, with the passive replicas sitting relatively unused. In an effort to prevent them from twiddling their thumbs, they were used as the primary memcached cluster. Sharing resources like this had benefits like less cost and higher…

Fighting Bots & Spam with Feature Flags

Feature flags are one of those things where once they click, you see opportunities for them everywhere. From managing development or analytics tools across environments to things like protecting registration or contact forms, they come in handy in endless ways. While nobody ever wants to take a registration or contact…

Performing Database Changes with Feature Flags

Releasing code behind feature flags when much of the related functionality is incomplete can sometimes require creative solutions. For example, if some new functionality requires a new column with a default value, how can we handle the scenario where the database’s default value should be different after the future…

How to make web analytics valuable for Rails apps

Traditional web analytics aren't always the most useful for web apps, where a single controller with a dynamic route can serve an infinite number of different URLs. For example, /organization/fewer-and-faster and /organizations/boxout-sports are really the same page, but they show up in analytics as two separate…