-
Scenes: The two clients use grpc proxy to watch the key with the xxx prefix. Now a new client needs to get the value of the /xxx prefix key. My question: Will the request be passed transparently to etcd? Does gRPC proxy have relevant cache? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @robotLJW - Thanks for your question, the etcd grpc proxy documentation is available here: https://etcd.io/docs/v3.5/op-guide/grpc_proxy Relevant sections are:
The key thing appears to be the mention of "consistency requirements" in the documentation above. Based on that I believe only serializable requests are cached. Refer to the API reference for context on serializable: https://etcd.io/docs/v3.5/dev-guide/api_reference_v3/#message-rangerequest-apietcdserverpbrpcproto
So long story short yes I believe the grpc proxy will cache serializable range requests, however the trade-off for this increased performance is the potential for stale reads. |
Beta Was this translation helpful? Give feedback.
Hey @robotLJW - Thanks for your question, the etcd grpc proxy documentation is available here: https://etcd.io/docs/v3.5/op-guide/grpc_proxy
Relevant sections are:
The key thing appears to be the mention of "consistency requirements" in the documentation above. Based on that I believe only serializable requests are cached. Refer to the API reference for context on serializable: https://etcd.io/docs/v3.5/dev-guide/api_reference_v3/#message-rang…