Skip to content

blog: primary resource caching #2815

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

Merged
merged 18 commits into from
May 27, 2025
Prev Previous commit
Next Next commit
Update docs/content/en/blog/news/primary-cache-for-next-recon.md
Co-authored-by: Martin Stefanko <xstefank122@gmail.com>
  • Loading branch information
csviri and xstefank committed May 27, 2025
commit 343a828c7c5d2a2754ffc72ee3db3a4fa02f9fcf
2 changes: 1 addition & 1 deletion docs/content/en/blog/news/primary-cache-for-next-recon.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ informer receives an event for is from an update that happened before or after o

If we do an update with optimistic locking it simplifies the situation, we can easily have strong guarantees.
Since we know if the update with optimistic locking is successful, we had the fresh resource in our cache.
Thus, the next event we receive will be the one that is results of our update or a newer one.
Thus, the next event we receive will be the one that is the result of our update or a newer one.
So if we cache the resource in the overlay cache we know that with the next event, we can remove it from there.
If the update with optimistic locking fails, we can wait until the informer's cache is populated with next resource
version and retry.