Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add rate limiting #81
Since infrastructure is pretty custom and there are various ways you can do rate limiting (a proxy like nginx, app level, feathers service level, etc.) i don't think this should be baked into the core plugin. It should be left up to the user to do outside of the plugin in order to maintain flexibility.
For example, you can add rate limiting to the auth service out side of the plugin.
const limiter = require('express-rate-limit'); // Set up rate limiting the individual services with independent options. app.use('/auth/local', limiter()); app.use('/auth/token', limiter());
Someone had a stab, simple hook around fast-ratelimit
Realistically any real world rate limiting solution needs to work across servers/instances, at the edge, with the load balancers.
This is where API gateways solutions are handy, with deep packet inspection and rules.
AWS and co will devour everything eventually.