Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External cache storage #290

Open
guicassolato opened this issue May 30, 2022 · 0 comments
Open

External cache storage #290

guicassolato opened this issue May 30, 2022 · 0 comments
Labels
kind/enhancement New feature or request

Comments

@guicassolato
Copy link
Collaborator

#247 delivered the first step of runtime evaluator caching, i.e. in-memory caching. Next step is to make possible for users to extend/move this type of caching to an external storage (e.g. Redis database).

Benefits include:

  1. Better management of cache size and cache resources, working around the constraints imposed at the level of the Authorino deployment (to protect the instance);
  2. Sharing the cache between multiple Authorino instances and deployments.

A possible API could look like the following:

spec:
  authorization:
  - name: my-policy
    cache:
      key: { valueFrom: context.request.http.headers.authorization }
      ttl: 120
      external:
        url: redis://my-redis/db
@guicassolato guicassolato added the kind/enhancement New feature or request label May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
Status: No status
Status: No status
Development

No branches or pull requests

2 participants