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

Cache the task registry results in AMT more efficient #314

Open
3 tasks
anneschuth opened this issue Oct 24, 2024 · 0 comments
Open
3 tasks

Cache the task registry results in AMT more efficient #314

anneschuth opened this issue Oct 24, 2024 · 0 comments

Comments

@anneschuth
Copy link
Member

anneschuth commented Oct 24, 2024

Description

The instrument widgets of AMT right now will do a call to the task registry every time that a new page is rendered with the widget in it, this is correct but a little bit slow and just much internet traffic in general. We need to come up with the caching strategy, but also implement it.

If we would cache for a day for example then it could be that the Task Registry is updated and the instruments shown in the overview are outdated, or do we want to have another endpoint in the Task Registry which notifies the user when the state of the instruments applicable has been updated.

Right now this is not a problem for the Requirements widget because that one is heavily mocked, but this would also pose a problem there

Implementation Notes

  • warm up on start up (before setting the pod to Ready)
  • cache with ttl 1hour
  • when the cache is expired, it still returns whatever it has cached and refreshes the cache in the background
@anneschuth anneschuth converted this from a draft issue Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ♻ To Do
Development

No branches or pull requests

1 participant