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

Repeated requests caching #20

Closed
guicassolato opened this issue Dec 22, 2020 · 0 comments · Fixed by #247
Closed

Repeated requests caching #20

guicassolato opened this issue Dec 22, 2020 · 0 comments · Fixed by #247
Labels
kind/enhancement New feature or request

Comments

@guicassolato
Copy link
Collaborator

guicassolato commented Dec 22, 2020

Authorino will currently repeat the entire identity → metadata → authorization pipeline on every request with "repeated" payload targeting a same API. Perhaps with some proper configuration options provided, it could cache the authorization response and speed up the return to the proxy.

This is not trivial and a minimal implementation would include:

  • Enabled/disabled switch
  • TTL of the cache keys (maybe set by default to the expiration of the access token when available)
  • Hashing of the payload combining fixed (client creds, requested verb, URI, etc) and optional/additional (client IP, user-agent, etc) parts
  • Auto-cleanup of the cache on API config refresh
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
None yet
Development

Successfully merging a pull request may close this issue.

1 participant