Check whether the opal-client has latest data #152
-
EDIT: created the feature request ticket at https://github.com/authorizon/opal/issues/154 A similar question to Check whether the opal-client has latest policy, but for data instead of policy. As for data, we send Is it possible for us to know
I think this can solves by parsing opal-client logs. However, does it make sense to have some health APIs just like policy? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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: You can setup a service that listens to events and keeps track of the updates given to each client. Eager to hear what you think. |
Beta Was this translation helpful? Give feedback.
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…