Skip to content

How to monitor external resources periodically #277

Answered by erin-allison
anekdoti asked this question in Q&A
Discussion options

You must be logged in to vote

There's a couple of different (fairly easy) options that I see here:

  1. Run a separate IHostedService with a timer that checks your external resources on whatever interval you desire.
  2. (Ab)use the fact that the SDK's resource watcher reconnects every 60 seconds and will process a notmodified event for all watched resources at that time, and use that event to check status of the external resources.

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by anekdoti
Comment options

You must be logged in to vote
9 replies
@anekdoti
Comment options

@buehler
Comment options

@anekdoti
Comment options

@buehler
Comment options

@anekdoti
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants