Does etcd watch send all changes in etcd transaction in one response? #19535
-
When watch a prefix of keys in etcd, at the same time, put many same prefix keys in a etcd txn, can etcd guarantee that I can get all changes of prefix keys by one response? Or does etcd just batch numbers of key changes and send to client one by one batch? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I found the answer in doc: Ordered - events are ordered by revision; an event will never appear on a watch if it precedes an event in time that has already been posted. |
Beta Was this translation helpful? Give feedback.
I found the answer in doc:
Watches make three guarantees about events:
Ordered - events are ordered by revision; an event will never appear on a watch if it precedes an event in time that has already been posted.
Reliable - a sequence of events will never drop any subsequence of events; if there are events ordered in time as a < b < c, then if the watch receives events a and c, it is guaranteed to receive b.
Atomic - a list of events is guaranteed to encompass complete revisions; updates in the same revision over multiple keys will not be split over several lists of events.