Skip to content

Check whether the opal-client has latest data #152

Answered by orweis
hongbo-miao asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hongbo-miao the same transaction mechanism that @asafc described in https://github.com/authorizon/opal/discussions/148, and in the mentioned docs applies to data updates.

Meaning a data update will invalidate the health-query state.

The easiest way in my opinion to track this, is through the Webhook feature of OPAL transactions, i.e. you can have every OPAL-client report to a URL of your choice when it completes an update transaction.

To see how to utilize this callbacks / webhook mechanism checkout this document:
https://docs.opal.ac/tutorials/healthcheck_policy_and_update_callbacks#-data-update-callbacks

You can setup a service that listens to events and keeps track of the updates g…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hongbo-miao
Comment options

@orweis
Comment options

Answer selected by hongbo-miao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants