July 2017
Beginner to intermediate
340 pages
7h 43m
English
OpenResty comes with many Lua scripts that can be useful to enhance nginx. Some developers are even using it to serve their data directly.
If you look at the components page at http://openresty.org/en/components.html, you will find some useful tools to have nginx interact with databases, cache servers, and so on. There's also a website for the community to publish OpenResty components, refer to https://opm.openresty.org/.
If you are using OpenResty in front of your Flask microservices, there will probably be other use cases where you can transfer some code that's in the Flask app to a few lines of Lua in OpenResty. The goal should not be to move the app's logic to OpenResty, but rather to leverage the web server to ...