Posts tagged “merkle-tree”

  1. How do two replicas find what's different without sending everything?

    Comparing two replicas of a million 200-byte records: a full copy is 203 MiB, a hash per key 43 MiB. A Merkle tree found one changed key with 2 KiB of hashes and ten changed keys with 15 KiB. The catch is round trips: a deeper tree sends fewer bytes but needs more of them. Measured, with the code.

    · 6 min read · Data Structures