New ‘Widget Cache’ Feature - Pros and Cons

New ‘Widget Cache’ Feature - Pros and Cons

The TagoIO Cache System is a functionality now available on the Widgets to cache the data that can be visualized by users accessing the dashboard. Its goal is to provide faster responses while reducing costs in heavily demanding dashboards.

The image shows how the cache can be configured in the Widget configuration, which is mandatory when Data Analytics is enabled.

Functionality:

  • Let's say you've configured the widget to cache data for 10 minutes.

  • The first time the user accesses the Dashboard with the same visualization settings, it will store the data for 10 minutes.

  • Users who access the dashboard within 10 minutes will immediately receive the data without waiting for the API, resulting in faster response times.

  • After 10 minutes, if the user looks at the dashboard, the widget will automatically reset its cache and update with new data.


Pros:

  1. Faster response time for high-demanding dashboards.
  2. Reduced Data Output RPM when many users access the same dashboard.
  3. It doesn't impact users with different visualization settings on the same dashboard.
  4. Fine-grained control over the cache time, allowing for support in different scenarios.

Cons

  1. Data is not displayed in real-time, needing to wait for the cache reset time for new data to display.
  1. Unlike real-time updates, when the cache is reset, it will fetch all the data even if there is no new data available. Adjusting the cache properly for your use case is essential to avoid making needless additional requests.
If you need more information about the TagoIO Cache System, please refer to the following documentation: Data Analytics and Cache System.