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

Enhance Oracle services data fetching with self hydrating cache #824

Closed
netboz opened this issue Jan 12, 2023 · 1 comment · Fixed by #854
Closed

Enhance Oracle services data fetching with self hydrating cache #824

netboz opened this issue Jan 12, 2023 · 1 comment · Fixed by #854
Assignees
Labels
core team Assigned to the core team enhancements feature New feature request oracle chain Involve OracleChain

Comments

@netboz
Copy link
Contributor

netboz commented Jan 12, 2023

Is your feature request related to a problem?

  • We might need a per-service refresh frequency
  • Currently if a service is not responding the service time-out is added to oracle transaction processing time.
  • Later, as more services will be added ( meteo, ... ), we will need a solution that can scale better
  • This will bring also a TTL to the services values

Describe the solution you'd like

This can be achieved by integrating a "self hydrating" cache between the services and the scheduler.

The cache will be started at node startup.
The cache, at initialisation will retrieve the services list and the hydrating ( update ) function from node configuration.
If the scheduler request a value for which the hydrating function is running, then the cache will wait for function execution termination before returning the value.

Additional context

No response

@netboz netboz added feature New feature request oracle chain Involve OracleChain core team Assigned to the core team enhancements labels Jan 12, 2023
@netboz netboz self-assigned this Jan 12, 2023
@internet-zero
Copy link
Member

Hey team! Please add your planning poker estimate with Zenhub @samuelmanzanera @Neylix @netboz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core team Assigned to the core team enhancements feature New feature request oracle chain Involve OracleChain
Projects
Status: Done 🍻
Development

Successfully merging a pull request may close this issue.

2 participants