Skip to content

Comment on Improve your beta-testing with Nginx, Lua and Redisparent

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.