-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
react-query
Discontinued 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]
Pigeon is a library that comes pretty close to what I had in mind as it is even inspired by React Query, however, it still seems a bit unfinished and the project might even be more or less dead already, so I'm a bit worried building my app around it.
Image loading, displaying and caching is a very similar problem and it seems there are some pretty good solutions available (e.g. Kingfisher), so I'm quite surprised that I'm struggling to find a popular/reliable/stable solution for (REST) API data.
In a React (JavaScript) environment I found React Query does a fantastic job. Basically, you tell it how to fetch data and it automatically re-renders the component (view) whenever the state changes, e.g. idle, fetching, error, or the actual result data. In addition you can easily define caching behaviour globally or for each query (API endpoint) individually, how long stale data is acceptable etc., plus, data is shared between all views/components that require it. The library abstracts away a lot of common yet pretty hard to manage tasks whilst still being flexible.