api-rate-limit-bundle icon indicating copy to clipboard operation
api-rate-limit-bundle copied to clipboard

Integrate symfony/rate-limiter

Open norkunas opened this issue 4 years ago • 3 comments

Now that Symfony has a RateLimiter component maybe it's time to leverage it behind the scenes? :)

norkunas avatar Sep 16 '21 05:09 norkunas

Yes it would be nice! See also: https://jolicode.com/blog/rate-limit-your-symfony-apis

alanpoulain avatar Nov 22 '21 10:11 alanpoulain

@alanpoulain https://github.com/api-platform/core/pull/2300#issuecomment-920585416 could you give some feedback here? :slightly_smiling_face:

norkunas avatar Nov 22 '21 10:11 norkunas

I think it can wait for the new metadata architecture to be available (API P 2.7). It will be probably easier to do it in this bundle then (for instance with https://github.com/api-platform/core/blob/10827bb570c44cdee2c1bb7a307a8a18df9b4f00/src/Metadata/Operation.php#L1140).

alanpoulain avatar Nov 22 '21 10:11 alanpoulain