What are digest read requests, and how does the coordinator use them during a read?
Last updated
A digest read asks a replica for a hash of the data instead of the full data. The coordinator sends one full read to the fastest replica and digest requests to others needed for the consistency level.
If digests match, the result returns immediately. On a mismatch, the coordinator does full reads, picks the latest timestamp, and writes it back to stale replicas (read repair).
It saves bandwidth because only one full copy normally crosses the network.
- https://amarildoaliaj.com/blog/read-repair-in-distributed-system/
- https://cassandra.apache.org/doc/4.0/cassandra/operating/read_repair.html
- https://cassandra.apache.org/doc/stable/cassandra/managing/operating/read_repair.html
- https://docs.datastax.com/en/dse/6.9/architecture/database-internals/client-requests-read.html
- https://www.reddit.com/r/cassandra/comments/1er73dk/read_repairs_and_read_consistency_levels/