Why does it need
to be in Redis?
It seems like the easiest option would be to read
the config files during init_by_lua and save it into a module level
variable that gets shared across all workers.
If
it *has* to be in Redis for some reason then you could use ngx.timer.at
in init_worker_by_lua to read the files and save them into Redis
immediately after startup.
On Thursday, 4
September 2014 16:21:21 UTC+1, Stefan Parvu wrote:
- during first request, read
the files and extract the needed information in Lua
OpenResty and
map that to Redis
- have a Redis dump (RDB), which can be
imported into Redis everytime we start Redis ?
this means we could
process everything on the redis side ?
- anything else ?
Any
pointers or ideas ?
Thanks a lot,