Re:Improve your beta-testing with Nginx, Lua and Redis
by transmit101 on Wednesday June 27, 2012 @11:21AM
(#4167430)
Yes that works too as I mentioned in the first couple of paragraphs of the post.
However having a beta.mixlr.com domain a) introduces a lot of friction and seriously reduces the ease with which you can test features b) may alter the perception or expectations of a visitor, making testing less valid.
We've got a lot of users and we want to make the roll-out process completely transparent and inclusive.
Hence this solution.
While it's not as clean as having the check done in nginx itself via Lua script + Redis, it's relatively low friction. That said, the Lua script embedded in the nginx config is very slick, and I had been contemplating writing something similar using the nginx memcache module. Nice work.