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

implement route caching #69

Open
havok2063 opened this issue Dec 7, 2024 · 0 comments · May be fixed by #73
Open

implement route caching #69

havok2063 opened this issue Dec 7, 2024 · 0 comments · May be fixed by #73
Assignees
Labels
enhancement New feature or request

Comments

@havok2063
Copy link
Contributor

havok2063 commented Dec 7, 2024

We should implement route caching with a redis cache with aiocache for at least the common query and target routes that serve zora. See https://github.com/aio-libs/aiocache?tab=readme-ov-file and https://dev.to/sivakumarmanoharan/caching-in-fastapi-unlocking-high-performance-development-20ej and https://www.devbookmarks.com/p/fastapi-answer-caching-techniques

Possible package implementation: https://github.com/long2ice/fastapi-cache

Some routes to cache

  • /query/main
  • /query/sdssid
  • /query/cone_search
  • /query/carton-program
  • /target/catalogs
  • /target/cartons
  • /target/pipeline
  • /target/spectrum
@havok2063 havok2063 added the enhancement New feature or request label Dec 7, 2024
@albireox albireox self-assigned this Dec 9, 2024
@albireox albireox linked a pull request Dec 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants