-
-
Notifications
You must be signed in to change notification settings - Fork 964
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: increase courier watchMessages polling delay from 1 second to 30 #3460
Conversation
The database is flooded with calls all the time for this!
Codecov Report
@@ Coverage Diff @@
## master #3460 +/- ##
=======================================
Coverage 78.14% 78.14%
=======================================
Files 327 327
Lines 21742 21742
=======================================
Hits 16991 16991
Misses 3492 3492
Partials 1259 1259
|
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.
Thank you for the PR @frederikhors
I don't think this is a good solution though. It will take up to 30 seconds + email send delay, before the email arrives at the user. So the user has to wait half a minute before they receive their account recovery code, or their login code. That's unfortunately not acceptable and we would like to keep the watcher at one second for the time being.
Ok. I get that but I think 30 seconds is a decent wait time for anyone. What about 15? |
Maybe, instead of using a hard-coded value, we can make this configurable, by adding an optional key |
Telling the truth, I think this should just stay as is. Adding one QPS to the database should not really have a big effect on overall query performance. I also don't want this to be configurable in Ory Network. |
I think the suggestion to make it configurable is good. Please. Please. |
What exactly is the problem you are trying to solve with this? Is there a negative effect you are experiencing? If configurable, it should be at most a CLI flag, but not a configuration setting in the YAML config. |
Yep. A very small DB (many DBS) and no need to send courier emails. If you prefer to use a CLI flag ok. Thanks anyway. |
If you don’t need to send emails from Kratos, you could also just not run the courier? 🤔 |
Sorry I meant not as fast as 1 second delay. I'm fine waiting 30 seconds or more. |
#3601 will make this configurable |
The database is flooded with calls all the time for this!
Related to #466.
Related issue(s)
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security vulnerability, I
confirm that I got the approval (please contact
[email protected]) from the maintainers to push
the changes.
works.
Further Comments