How do I configure Redis rate limiting behind an Nginx API gateway to protect our downstream auth service from distributed brute-force attacks?
Download run
Fan-out diagram
The searches the AI actually ran for this prompt.
SEED QUERY
How do I configure Redis rate limiting behind an Nginx API gateway to protect our downstream auth service from distributed brute-force attacks?
3 real searches · 1 real-search pass
OpenResty lua-resty-redis rate limiting shared Redis Nginx API gateway official documentationGoogle ↗
OBSERVEDInstruction
Redis official documentation INCR EXPIRE Lua scripts atomic rate limiterGoogle ↗
OBSERVEDConsequence
NGINX official limit_req module documentation shared memory zoneGoogle ↗
OBSERVEDInstruction
Badge and edge weight = share of passes that produced the query. Hover a query for its intent and routing format.
Query classes
Google's semantic query class for every sub-query: what kind of answer each search is after, simulated vs real.
ChatGPT real searches (3)
Classes come from the query-classifier (a local Laya model). 3 of 3 calls are low-confidence (under 50%) — hover a query in the table to see its confidence.
Searches and sources
ChatGPT3 real searches · gpt-6
OpenResty lua-resty-redis rate limiting shared Redis Nginx API gateway official documentation Google ↗
Redis official documentation INCR EXPIRE Lua scripts atomic rate limiter Google ↗
NGINX official limit_req module documentation shared memory zone Google ↗
- Module ngx_http_limit_req_module · nginx.org
- Limiting Access to Proxied HTTP Resources · docs.nginx.com
- Redis rate limiter · redis.io
- INCR · redis.io
- GitHub - openresty/lua-resty-redis: Lua redis client driver for the ngx_lua based on the cosocket API · github.com
- GitHub - openresty/lua-resty-limit-traffic: Lua library for limiting and controlling traffic in OpenResty/ngx_lua · github.com
Queries
3 queries · click a column to sort
| Query / type | Search | Intent | Query class | Routing format | Cluster | Freq ↓ | Weight |
|---|---|---|---|---|---|---|---|
OpenResty lua-resty-redis rate limiting shared Redis Nginx API gateway official documentation OBSERVED | Google ↗ AI Mode ↗ | — | Instruction | — | — | 1x of 1 | |
Redis official documentation INCR EXPIRE Lua scripts atomic rate limiter OBSERVED | Google ↗ AI Mode ↗ | — | Consequence | — | — | 1x of 1 | |
NGINX official limit_req module documentation shared memory zone OBSERVED | Google ↗ AI Mode ↗ | — | Instruction | — | — | 1x of 1 |