mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
msgappv2 stream is used to send all MsgApp, and replaces the functionality of msgapp stream. Compared to v1, it has several advantanges: 1. The output message is exactly the same with the input one, which cannot be done in v1. 2. It uses one connection to stream persistently, which prevents message reorder and saves the time to request stream. 3. It transmits 10 addiontional bytes in the procedure of committing one proposal, which is trivia for idle time. 4. It transmits less bytes when committing mutliple proposals or keep committing proposals.