Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Messenger] Add simple transport based rate limiter to Messenger#41171
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
b097444 to5a4e0e1Comparecarsonbot commentedMay 12, 2021
Hey! I think@tienvx has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
averatec1337 commentedOct 9, 2021
Any update on this? |
👍 on rate limiting for messenger transports 🙂 When using the Messenger component in order to asynchronously send emails via the Mailer component being able to limit the total amount of emails per time unit would be really helpful in hosting environments that impose a limit on how many emails you can send via their SMTP per hour or day for instance. |
5a4e0e1 to98c48cbCompareI just rebased the changed on the latest 6.1 branch, but I'm really looking for some input on whether these changes are actually going in the right direction (and will be accepted) before I will be spending some time on tests. |
mtaylor567 commentedFeb 15, 2022
any news on this? |
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.
LGTM past minor details. Please rebase also to resolve the conflict.
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.
src/Symfony/Bundle/FrameworkBundle/Resources/config/messenger.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
9626d5f to8bdeac3Comparebobvandevijver commentedFeb 28, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@nicolas-grekas Requested adjustments have been made, and I added two tests. (the failed checks do not seem to be related to this change) |
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.
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.
Uh oh!
There was an error while loading.Please reload this page.
08ebb0f to6e479f2CompareThank you@bobvandevijver. |
6e479f2 to29a2585Comparegavinerickson commentedNov 26, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@bobvandevijver I'm trying out the messenger/rate limiter integration in 6.2 RC1, it seems like I have a race condition when consuming a rate limited queue (RabbitMq) with multiple consumers. In the setup below, instead of 1 email every 2 secs, I get multiple emails/sec processed. messenger config: I have a lock setup as below, maybe this is the issue? Or perhaps there is some relation between the number of workers and the limits to be applied This is all running on windows server 2019 😞 |
@gavinerickson I'm no expect on the implementation of the rate limiter/lock components, but I believe you might be using the wrong lock store for what you're looking as the Otherwise I would recommend opening an issue (you can tag me with it) to discuss the issue further. |
gavinerickson commentedNov 28, 2022
@bobvandevijver I'd tried flock initially too (and just sanity checked) - that's what I've used with rate limiter previously. I'll open an issue. |
…ijver)This PR was submitted for the 6.2 branch but it was squashed and merged into the 6.3 branch instead.Discussion----------[Messenger] Add messenger rate_limiter docsDocumentation forsymfony/symfony#41171Commits-------ec2c155 [Messenger] Add messenger rate_limiter docs
Uh oh!
There was an error while loading.Please reload this page.
This PR adds the possibility to add a simple, transport based, rate limiter (as defined with the RateLimiter component) to the Messenger worker.