Thanks for detailed reply.
1. One thing good to note that my direction is correct in which i m trying to build the application stack.
2. I need to work on the encrypted session and put in place the working prototype to see how it actually interface with php.
3. One thing is to prevent twisted and lengthy nginx.conf files.
I do not understand this completely. I m sure debugging a ngnix.conf file would be complex as the application grows especially with not much understanding of the nginx internals.
What i m working on is to split each group of end points into separate conf file and include. That way each conf file will be like one mini script for lua. Further, i m also thinking go use location { internal } to map common used functions / objects and lua to incapsulate the business logic. And then used sub request to actually process them. Further, this will also cache all the lua into ngnix. Yes i plan to use drizzle + rds_json. I saw the performance bench mark in one of your presentation. The idea of putting all this in intermal end point is to encapsulate the business logic. Do you see any problem with this approach.
4. Thanks for the example. This will help me to go further.
regards,