nginx provies rate limiting functionality (https://www.nginx.com/blog/rate-limiting-nginx/). This could be used to reduce the stress on the limited resources.