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

node server API request cache - persistent #249

Closed
1 task done
Don-Isdale opened this issue May 28, 2021 · 0 comments
Closed
1 task done

node server API request cache - persistent #249

Don-Isdale opened this issue May 28, 2021 · 0 comments

Comments

@Don-Isdale
Copy link
Collaborator

Don-Isdale commented May 28, 2021

Overview

So far memory-cache is used in node server to cache results of API requests which are common, e.g. zoomed-out requests for featuresCounts, blockFeaturesLimits, paths{,ViaAliases}.
HighDensity data means that db queries can be sufficiently long that persistence of this cache is desirable.
There are a number of options - see resources below; the simplest change is to use flat-cache in place of memory-cache.

Branch : feature/requestCachePersistent

Resources

Caching in database

Simple caches


  • used flat-cache in place of memory-cache (wrapped with an equivalent api so they are swappable)
    feature/requestCachePersistent : 5268acd 6066269
Don-Isdale added a commit that referenced this issue May 28, 2021
@Don-Isdale Don-Isdale mentioned this issue May 28, 2021
3 tasks
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