-
Notifications
You must be signed in to change notification settings - Fork 0
Add refreshHandler
feature.
#44
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #44 +/- ##
==========================================
+ Coverage 83.15% 83.97% +0.81%
==========================================
Files 12 13 +1
Lines 1538 1772 +234
==========================================
+ Hits 1279 1488 +209
- Misses 259 284 +25
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
In addition to this implementation, you may want to consider how this might work in the context of a cron job sort of approach or possibly a webhook. A job based approach will better support deployments where applications are idle/suspended or scaled to zero. https://cloud.google.com/run/docs/execute/jobs-on-schedule I also wonder what the best way to surface unresolved refresh failures given the critical nature of the task. |
These are good considerations. The design is such that the integrated scheduler could be, in the future, disabled and augmented (without too much effort, I think) with a webhook / cron job style driver if desired. However, this alternate approach doesn't also come with downsides, including introducing additional dependencies on those driving systems and then monitors for those -- as well as authorization and DoS considerations on the interfaces that might be used to trigger the behavior. There would also be additional infrastructure setup, etc. Perhaps with time both approaches might become available (with the drawback of additional maintenance).
Monitoring logs and / or using the webhook mechanism to obtain metrics (e.g., number of stale service object configs -- including those that are not "refresh enabled") instead of driving the refresh mechanism itself might be options for getting information on areas that are in need of manual intervention. |
No description provided.