Skip to content

Why is the local cache not used until the fourth request? #162

Discussion options

You must be logged in to vote

Hi 👋,

I can replicate this in the docker-compose envcironment as well, although it's not immediatly clear why we're not caching until the 4th request. I am periodically seeing some odd behavior in the invalidation messages (e.g. being delivered late in some cases) although that doesn't explain precicely what's going on.

Relay uses both active and passive invalidations in order to invalidate keys more quickly than if we just waited for a RESP3 push message. For example, when a relay object writes a key, we blanket invalidate all known copies of the key immediately even before Redis delivers the invalidation. This helps a great deal with data consistency in most workloads.

If I modify your i…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MightySepp666
Comment options

Answer selected by tillkruss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants