.
.
.git/config2020-09-22 19:17:02
Nginx
.git/config, 2020-09-22 19:17:02

Throttling api requests for each client separately?

It is necessary to flexibly limit the number of API requests per client.
Those.
api.example.com/method?key=123 - 100 requests per minute
api.example.com/method?key=456 - 10 requests per minute
etc.

There is no problem how to do it manually in the symfony + redis bundle.
The question arises whether there are ready-made services / software that allow you to configure throttling in this way. Perhaps I didn’t search well, but I didn’t find this with Cloudflare and Amazon . Amazon has a similar one, but
>> Per-client throttling limits are applied to clients that use API keys associated with your usage policy as client identifier.
>> API keys per account per Region 500
Those. if I understand correctly, it will not work to connect more than 500 clients to one region.
It is also desirable to receive information about throttling events so that the client can then see in the UI why his API was not available.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2020-09-22
@inoise

By the fact that it is in the API Gateway and is called Usage Plans
. As for the limits, AWS has soft and hard limits. Soft is the default and many can be requested to increase to the hard limit.
In general, if you want to have no restrictions, then just cut your system and it will most likely be quite slow.
You can look at alternatives like apigee

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question