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

Cache api keys in memorystore #369

Open
steveoh opened this issue Aug 9, 2024 · 0 comments
Open

Cache api keys in memorystore #369

steveoh opened this issue Aug 9, 2024 · 0 comments
Labels
enhancement service - api geocoding the geocoding endpoint of the api service - developer console the self service api key service

Comments

@steveoh
Copy link
Member

steveoh commented Aug 9, 2024

We're getting charged for some firestore reads since it's going above the free tier. It's not much, like less than a quarter, but it's not necessary.

Every request to the api reads from firestore to get the api key details. I'm thinking we can cache the api key details in redis with a time to live setting to remove some repeated pressure on firestore.

The only issue is that a key is paused or deleted and the cache needs to be cleared.

I'm thinking a dotnet background service can check for pub/sub topics on a schedule to check for self service actions to keys that the api needs to react to.

@steveoh steveoh added enhancement service - api geocoding the geocoding endpoint of the api service - developer console the self service api key service labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement service - api geocoding the geocoding endpoint of the api service - developer console the self service api key service
Projects
None yet
Development

No branches or pull requests

1 participant