Hello!
On Thu, Aug 13, 2015 at 11:48 AM, MELWIN JOSE wrote:
> I want to do the following using NGINX Module : Nginx receives a request,
> checks if it has the key to decode the request in the cache(custom)
>
> if YES, then decode request, obtain an ID from it and check if there is a
> value against this ID in a key-value store (asynchronously) and return it in
> the response
> if NO, then get the new key from the key-value store (asynchronously) and
> then store this key in the cache and use it to decode the request. Obtain
> the ID and check if there is a value against this ID in the key-value
> store(asynchronously) and send it in the response.
Why not just use the ngx_lua module to do this? All these look simple
enough for a dozen lines of Lua to me :)
Regards,
-agentzh