Eduardo
Eduardo

Reputation: 5943

How to rate limit a node.js API that uses JWT?

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

Answers (1)

Łukasz Szewczak
Łukasz Szewczak

Reputation: 1881

There are dedicated npm packages like

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

Related Questions