Concurrent request for specific API key for particular endpoint

Hi,

In our environment, I have two TYK gateway servers for load balancing, and the version of TYK is OSS v4.1. I would like to limit the number of concurrent requests for a specific API key on a particular endpoint (e.g., a maximum of 5 concurrent requests). I have checked that the rate limit does not meet our requirements, as it only controls how many requests an API consumer can make in a given period of time. Is there any method that can fulfill our request? If not, are there any alternatives?

Thanks

Hi, thanks for the question!

We might be able to suggest an alternative approach, to help, please can you explain the outcome you are trying to achieve?

From your description I assume this is to protect the upstream service from abuse? But perhaps my assumption is incorrect?

With more info on what you need to achieve, we can consider other capabilities that might deliver what you need.

James

Hi James,

Thanks for your prompt reply.

I have provided the API key to a group of users. I would like to limit the concurrent connections to five for the corresponding endpoint when these users possess this API key.

How to implement this?

Thanks