Reputation: 5943
I have a node.js application that runs on different servers/containers. Clients are authenticated with JWT tokens. I want to protect this API from DDos attacks. User usage limit settings can be stored in the token. I've been thinking about som approaches:
How to solve this?
Upvotes: 1
Views: 1708
Reputation: 1881
There are dedicated npm
packages like
express-rate-limit
https://www.npmjs.com/package/express-rate-limit
ratelimiter
https://www.npmjs.com/package/ratelimiter
I don't know about AWS
but in Azure
you can use Azure API Management
to secure your api https://learn.microsoft.com/en-us/azure/api-management/api-management-key-concepts
Upvotes: 1