stefanprodan / WebApiThrottle

ASP.NET Web API rate limiter for IIS and Owin hosting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do you configure to throttle on ClientKey AND endpoint?

SidShetye opened this issue · comments

First off - great stuff and congrats!

We were exploring this library, just getting our feet wet. We're trying to enable endpoint throttling on a URL match like

[Any HTTP Verb] at http://www.server.com/api/external/*

but the throttling limits themselves are set based on the ClientKey of each request (via override RequestIdentity SetIdentity() via a custom ThrottlingHandler)

Can we configure something like that today in your library? The main documentation makes it feel that setting the clientkey will apply that to all requests in the entire WebAPI pipeline.