IndraGunawan / api-rate-limit-bundle

Rate limits protection for api-platform resources.
MIT License
66 stars 10 forks source link

Integrate symfony/rate-limiter #20

Open norkunas opened 3 years ago

norkunas commented 3 years ago

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

alanpoulain commented 2 years ago

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

norkunas commented 2 years ago

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

alanpoulain commented 2 years ago

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).