Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Add support for watching inventory resources via websockets instead of polling all data every 5 seconds #622

Closed
mturley opened this issue Jun 3, 2021 · 1 comment

Comments

@mturley
Copy link
Collaborator

mturley commented Jun 3, 2021

From a discussion with @jortel , I didn't realize this was possible. Details known so far:

  • We can make a request to set up a watch, and open a socket that will notify us when resources have updated. We would mark relevant queries as stale only when this message tells us we need to, and react-query would refetch for us at that time.
  • When a provider is refreshed, the watch will terminate and we'll need to wait until the provider is ready again before we set up another watch. So when setting up watches, we'll get 206 responses and have to retry until we get a 200.

We can probably also do something similar for the k8s cluster API, @ibolton336 has been working on that for MTC.

@yaacov
Copy link
Member

yaacov commented Jan 12, 2023

closing as new development is moving to:
https://github.com/kubev2v/forklift-console-plugin

@yaacov yaacov closed this as completed Jan 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants