Is it possible to have a different rate in req/second based on the path for the same API? for the same API

Hi,

is it possible to have a different rate in req/second based on the path for the same API?

For example,

For api.myservice.com/feature1/* have 10 request/seconds
For api.myservice.com/feature2/* have 500 request/seconds

They are both the same API and use the same key, the rate depends on the path. Is this possible to achieve?

Hello @javiertc

The only possible way of accomplishing this is to have Tyk manage those as two separate APIs. Once you create the separate APIs you can generate a key that gives access to both APIs and you apply the limit on the API level or the key per API level.

1 Like

@javiertc You can either go with what @zaid said or have another API or two APIs serve as a proxy to the same API but with different rate limits applied.

1 Like