How OpenResty and Lua are used to build 'intelligent load balancers', that can perform complex tasks such as: caching, throttling and application routing.
request information • POST data, UA, you name it • We currently have a dozen • pattern is a full regex, not a pattern (counterintuitively) • We have several hundred rules
lag • On each request, look at cookie, compare to lag • If lag > cookie, request passes • If lag < cookie, and we have spare RPM, request passes • Otherwise, we bounce request