Skip to content

Investigate alternatives to file system cache #138

Description

@jsaur

We need a simple way to store key-value pairs to save state. Right now we're using an npm library (cache-manager) to get and set cache values. Initially this was an in-memory cache, but this caused issues during pod updates as memory was cleared. We then switched to a file-system cache, which solves that initial problem but makes deployments cumbersome, and doesn't scale well. Another solution supported by our cache-manager is redis, which would work well, it would just need to be deployed on our various environments as well as CNBS on-prem. Another option would be to create a simple table in postgres with two coluns, key + value, and use that. This would require either writing a plugin for cache-manager, or alternatively writing a class that mirrored cache-manager function signatures (there's only 3 or 4) and then swap it out everywhere.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions