Hey!
So, a weird question - if I store a rather large static string(~17kb json) in an nginx variable, will it be as fast as retreiving it from local memcached?
I will have one JSON per .conf file, but will probably eventually have thousands of .conf files, so a lot of JSONs to keep in memcached.
My reasons are - I would be required to dynamically generate a package of *.conf scripts, one script per web-site, and update them if they change. I will soon begin writing a service to sync those. At the same time I need to keep jsons updated in memcached on the same machine, to access them from lua.
This would probably be the same service, and so I thought, why not include the JSONs in the .conf files? Maybe save them to a text file and somehow include them in .conf, so it would get loaded once, upon nginx start?
Anyone done something like that?