AtomGraph / LinkedDataHub

The low-code Knowledge Graph application platform. Apache license.
https://atomgraph.github.io/LinkedDataHub/
Apache License 2.0
493 stars 124 forks source link

Rate limiting #79

Closed namedgraph closed 3 years ago

namedgraph commented 3 years ago

Now that we have SSL termination/HTTP request parsing in nginx (so far in the develop branch), we should be able to implement rate limiting and guard against crawler bots or some malicious clients trying to bring down the service with too many requests.

namedgraph commented 3 years ago

A dynamic implementation would allow a higher request rate for authenticated agents and a low one for the rest: https://www.nginx.com/blog/dynamic-bandwidth-limits-nginx-plus-key-value-store/

namedgraph commented 3 years ago

Rate limiting is now configured in platform/nginx.conf.template using limit_req_zone.