Devographics / Devographics/Monorepo

API cache

Open
#394 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
178
Forks
55
Avg merge
1m
Merged PRs (30d)
2

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.