In a production environment, you can use the standard NGINX rate-limiting features (as covered in Chapter 9, Advanced Features) to limit the abuse of a service like this, especially if it's exposed directly to the internet. The advantage of OpenResty is that you still have the full power of NGINX to use outside of the enhancements it provides.