Skip to content

Autocache using redis #1131

@gabestein

Description

@gabestein

Motivation

So we don't rely on file system based storage that slows down or crashes the app for large queries.

Requirements

  • A ValKey service is added to our dev, self-host, and production environments.
  • Next is configured to store data cached with unstable_cache in ValKey.
  • A maximum entry size is set to prevent extremely large queries from being cached.

Acceptance Criteria

  • Include the output of mask tf plan in the PR, and run mask tf apply only after the PR is approved.
  • Justify the maximum entry size with some napkin math.

Extra work

  • Instrument ValKey to report cache hits/misses somewhere. Neither Honeycomb, nor Sentry support ValKey as a data source. So this might be tricky.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions