NestJS · Junior · Question 54 of 75

How do you add rate limiting to a Nest API?

Explanation

You can set limits per route with @Throttle() or skip them with @SkipThrottle(). Behind a proxy, make sure the real client IP is used.

Further reading

Problem with a question

NestJS · Junior · question 54

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz