4 ms·
I've done very similar things with Varnish reverse caching proxy. And as a bonus, Varnish is crazy fast if your pages or assets are cacheable. Its scripting la
by eli 14y ago
I've done very similar things with Varnish reverse caching proxy. And as a bonus, Varnish is crazy fast if your pages or assets are cacheable.
Its scripting language is very simple (not quite as nice as Lua, IMHO), but it supports multiple backends and rewriting arbitrary headers: https://www.varnish-cache.org/trac/wiki/VCLExamples https://www.varnish-cache.org/trac/wiki/VCLExamples
- mqzaidi 14y agoWe have also done similar things to test our new platform, using nginx and cookies, by sending part of the traffic to the new platform to be beta tested. Didn't need to use lua though. http://qzaidi.github.com/2012/03/11/nginx-ab/ http://qzaidi.github.com/2012/03/11/nginx-ab/