API Testing · Senior · Question 41 of 75

How do you test that an API rate limiter works across several instances?

Show the answer

Correct answer: Spread requests across instances and check the shared limit holds

Explanation

In-memory limiters per instance multiply the real limit by the instance count. Distributed limits need a shared store and tests that hit several nodes.

Further reading

Problem with a question

API Testing · Senior · question 41

Test yourself

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

Take this quiz