August 2017
Intermediate to advanced
278 pages
8h 53m
English
In this recipe, we're going to focus on just one microservice. In a real-world deployment, these microservices could be as high as 150 for a complex platform, and many typically hover between the range of 10-30.
For this microservice, we're going to take advantage of the built-in Lua DNS module (lua-resty-dns) to provide a resolution tool and return the result as JSON. As a real-world example, we're going to look up the Mail Exchanger (MX) record. This could be part of a platform for email migration, anti-spam validation, or similar and would traditionally require NGINX to proxy the connection to an external application.
Read now
Unlock full access