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

auth-server: Add local api key cache #54

Merged
merged 1 commit into from
Oct 25, 2024
Merged

auth-server: Add local api key cache #54

merged 1 commit into from
Oct 25, 2024

Conversation

joeykraut
Copy link
Member

Purpose

This PR adds a local API key cache to the auth server. This removes the DB query from the critical path for a match bundle. Note that for now the cache is in-memory so we'll need to run the auth-server single node. If we decide to move to multi-node we can move the cache to a memcached instance, but for now this is simple.

Testing

  • Tested all cache insert and invalidation paths

@joeykraut joeykraut marked this pull request as ready for review October 24, 2024 20:24
@joeykraut joeykraut merged commit c05555c into main Oct 25, 2024
2 of 4 checks passed
@joeykraut joeykraut deleted the joey/api-key-cache branch October 25, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants