Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[FrameworkBundle][HttpClient] AddThrottlingHttpClient to limit requests within a timeframe#53550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
8c8ad49 toe70c356Comparesrc/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
5b676f0 toe554083Compare...y/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/http_client_rate_limiter.yml OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/HttpClient/Tests/ThrottlingHttpClientTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
27cfc2c to8d43eb7Comparenicolas-grekas commentedJan 22, 2024
Can you please help me get the steps that achieve the throttling? Which part is sleeping especially? The lock is, right? |
HypeMC commentedJan 23, 2024
@nicolas-grekas Actually no, |
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for the insights, makes sense now.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
84c8927 to1a8b068Compare…uests within a timeframe
1a8b068 to5bb5474Comparefabpot commentedFeb 3, 2024
Thank you@HypeMC. |
Uh oh!
There was an error while loading.Please reload this page.
This PR adds a simple
ThrottlingHttpClientto help with limiting the number of requests within a certain period.Simple example, don't send more than 10 requests in 5 second:
Receiving controller:
Output: