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

Caching #4

Open
rabernat opened this issue Jan 24, 2023 · 0 comments
Open

Caching #4

rabernat opened this issue Jan 24, 2023 · 0 comments

Comments

@rabernat
Copy link
Member

We likely want to cache the upstream chunks.

The easiest thing to do is use a Zarr LRU cache to wrap the store: https://zarr.readthedocs.io/en/stable/api/storage.html#zarr.storage.LRUStoreCache

This should persist as long as the fastapi process stays alive.

The next step would be to recreate this as a distributed cache using Redis for a solution that scales to multiple processes / instances (e.g. lambda).

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