-
Notifications
You must be signed in to change notification settings - Fork 16
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 ‘latest’ version of a pod. #148
Comments
Others? |
yeah, a cached lastest version is a good idea, in the website we've done a lot of trickery to work around this slowness. |
Currently shields.io calls We cache everything in a LRU, and use the cache:
I would love to discuss what better suits vendors cache-wise, as they may have better information about how often a piece of information will be updated than my heuristics. As I said, we read Cache-Control. It seems that respecting If-Modified-Since would be good. My cache has timestamps, so I could send If-Modified-Since. Is it faster to find out when your internal data was last updated than it is to extract the version inside it? |
@espadrine Thanks for the info! I’ll get back to you once I’ve had the time to investigate what the best approach for us is. |
The
/api/v1/pods/:name/specs/latest
endpoint is always performing a complicated query to figure out what the latest version is. Instead of that complicated query, we should probably just cache what the latest version is on thePod
model.The text was updated successfully, but these errors were encountered: