Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby Feature Switches / Feature Flippers

I have been inspired by how both Flickr and Disqus use feature switches. They both blogged about them and how they work on both of their development blogs.

I was just wondering if there was a Ruby gem i'm missing or if anyone knows of a way to do this in Ruby? If there isn't anything, I'd hope to make my own and release it out in the wild. But I just wanted to ask here first because I haven't been able to find anything remotely similar to what both Flickr and Disqus achieve.

like image 877
Garrett Avatar asked Feb 14 '11 17:02

Garrett


2 Answers

Check rollout if you're already using Redis.

like image 93
Adrian Pacala Avatar answered Sep 28 '22 07:09

Adrian Pacala


I recently (9 Oct 14) took a look at the available gems - 9+ in various states of maintenance - and decided to go with Flipper. Rollout is also worth a look.

If you are looking to roll your own the source code for Rollout is only 200 lines and a good place to start. https://github.com/FetLife/rollout/blob/master/lib/rollout.rb

This railscast also has a barebones example http://railscasts.com/episodes/315-rollout-and-degrade

like image 29
andorov Avatar answered Sep 28 '22 07:09

andorov