Skip to content
Initiate North edited this page Jan 9, 2018 · 8 revisions

Welcome to the ThrottlingService wiki

Summary

This library was created in order to provide a basic in-memory throttle for number of requests per x minutes from specific caller identities.

Please see the sample file for a demo of it's basic usage.

It should be noted that making a call to IsThrottled when you have not reached the throttle limit, counts towards the current total of requests you have made. Therefore, the expected usage for the code would be something like:

`if (!throttlingService.IsThrottled(identity))`
`{`
    `// Perform the action which is to be protected by throttling.`
`}`

Obviously, if the app crashes, is restarted (or the machine running it) the cache will be reset.
Clone this wiki locally