Home ci 07. pricing: Manage and optimize usage for Data Cache

07. pricing: Manage and optimize usage for Data Cache

Last updated on Aug 05, 2025

Manage and Optimize Usage for Data Cache

Introduction

The Epycbyte Data Cache, introduced with the App Router, is currently in public beta and not yet charged. This guide helps you understand the charts available in the Epycbyte dashboard, how usage relates to billing, and how to optimize your Data Cache usage.


Table of Contents

  1. Overview of Data Cache
  2. Optimizing Data Cache Reads and Writes
  3. Data Cache Charts
    • Overview Chart
    • Reads Chart
    • Writes Chart
    • Bandwidth Chart
    • Revalidation Chart

Understanding Data Cache Usage

  • Reads and Writes: Measured in 8 KB units.
    • Read unit: 8 KB of data read from the cache.
    • Write unit: 8 KB of data written to the cache.
  • Billing: Charged based on data read and written, plus regions where these actions occur.

Optimizing Data Cache Reads and Writes

  1. Time-based Revalidation:

    • For content that rarely changes, set a longer revalidation interval.
    • Example: Longer intervals reduce both reads and writes.
  2. On-demand Revalidation:

    • Trigger data updates with specific events to avoid unnecessary reads/writes.
    • Example: Manual control over revalidation.

Data Cache Charts Explained

1. Overview Chart

  • Hits: Percentage of fetch requests that hit the cache.
  • Misses: Percentage of fetch requests that miss the cache.
  • Requests: Number of unique path requests.
  • Bandwidth: Data transferred from each unique path.

2. Reads Chart

  • Origin: Read units from Epycbyte Data Cache or ISR projects.
  • Region: Read units per region.
  • Projects: Total read units across projects.

3. Writes Chart

  • Origin: Write units to Epycbyte Data Cache or ISR projects.
  • Region: Write units per region.
  • Projects: Total write units across projects.

4. Bandwidth Chart

  • Projects: Data transferred and written by each project.
  • Ratio: Percentage of total data transferred.

5. Revalidation Chart

  • Projects: Number of revalidation requests per project.
  • Ratio: Total revalidation requests.

Strategies for Optimization

  1. Use higher revalidate values to reduce writes.
  2. Implement on-demand revalidation for manual control.

Conclusion

Optimizing Data Cache usage through time-based and on-demand revalidation can reduce costs and improve performance. Regularly review your Epycbyte dashboard to monitor usage and apply these strategies effectively.