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

API cache #394

Open
eric-burel opened this issue Jun 24, 2024 · 0 comments
Open

API cache #394

eric-burel opened this issue Jun 24, 2024 · 0 comments

Comments

@eric-burel
Copy link
Contributor

eric-burel commented Jun 24, 2024

Mongodb is oversollicited by queries that are always the same, we should focus on adding a cache in API resolvers for the most common data

  • relevant invalidation logic + relevant cache disable in dev logic
    A local in-memory cache should be more than enough but we need to be careful with request cardinality, when people enter requests that are different
    Perhaps we should only cache during build time, this can usually be detected using environment variables, vs runtime API calls

Normally this is already done with Redis => check that its ok

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

No branches or pull requests

1 participant