Skip to content
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

Provide an event watcher #6

Open
amimart opened this issue Aug 9, 2024 · 0 comments
Open

Provide an event watcher #6

amimart opened this issue Aug 9, 2024 · 0 comments

Comments

@amimart
Copy link
Member

amimart commented Aug 9, 2024

Provide a way to react to some dataverse events

Context

Some components must be active regarding the state of the dataverse, especially when OrchestrationServiceExecutionOrderCredential are registered, these encapsulate the intent to trigger an execution, the concerned service shall react to fulfil this order.

Details

For a component to react on-chain events, a watching mechanism should allow it, I propose to implement a Waker who will ensure a provided function is triggered when a specific event occur.

The watching of such events could be implemented through the comet web socket, however this should be considered as critical and the implementation shall ensure that no events will be missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant