Re:Improve your beta-testing with Nginx, Lua and Redis
by transmit101 on Wednesday June 27, 2012 @10:14AM
(#4167001)
Cheers. Yeah a cookie approach would be suitable for a lot of uses, including A/B testing. It's easy in Nginx/Lua:
local is_some_cookie_set = nginx.var.cookie_SomeCookie ~= nil;
Then you don't need Redis at all. For us though, we want to separate users by the URL and then a check at an application level variable, so I think this is the right approach still.
local is_some_cookie_set = nginx.var.cookie_SomeCookie ~= nil;
Then you don't need Redis at all. For us though, we want to separate users by the URL and then a check at an application level variable, so I think this is the right approach still.