stefanprodan / WebApiThrottle

ASP.NET Web API rate limiter for IIS and Owin hosting
MIT License
1.28k stars 274 forks source link

Global lock on throttle counter #136

Open giladsu opened 4 years ago

giladsu commented 4 years ago

IIUC, there is one global lock being used when accessing throttle counters.

Has using a lock per throttle key been explored? Other than a larger memory footprint, are there any downsides? Any ideas on how much of a performance boost this would be?