Open pgayvallet opened 1 year ago
Pinging @elastic/appex-sharedux (Team:SharedUX)
We don't have on our roadmaps Server-Sent events or any other pushing mechanism right ?
AFAIK, there isn't any active discussions about SSE/WS or other pushing systems right now, at least from Core's side.
At the moment, the SO tagging plugin fetches the tags at a fixed interval (15mins by default)
This was mostly driven by technical constraints, as the places where the feature was integrated in other applications (e.g dashboard) did not support async loading, so we had to keep an up-to-date cache with synchronous access.
https://github.com/elastic/kibana/blob/3730dd0779ed8efd74aee88f57422781ec1ac122/x-pack/plugins/saved_objects_tagging/public/plugin.ts#L71-L75
However, this approach creates a few problems:
Ideally, we would find a way to stop using a cache and load the list on-demand when an application needs it. However, this may be quite challenging, given the places SOT is integrated (e.g dash/vis edition popins)
If this can't be done, then we should at least look at solutions to limit the problems:
cache_refresh_interval
value?