'How do you rate limit / throttle a Strapi API?

My organization uses a pretty basic strapi API in nodejs, deployed on Heroku. We've been searching for a way to rate limit it to no avail, as it seems heroku doesn't have throttling add ons & strapi doesn't have native throttling capabilities (nor guides).

Has anyone faced this issue before that might have a solution?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source