How does the consistency level ANY relate to hinted handoff, and what are its risks?
Last updated
ANYis a write-only level that succeeds even if all replicas are down. The coordinator just stores a hint (a saved copy of the mutation) and replays it via hinted handoff when a replica returns.Risks: the write is lost if the coordinator dies before replay or the hint expires (default 3 hours). It may also be unreadable even at
ONEuntil the hint is delivered.Avoid
ANYfor important data. Use at leastONEso the write lands on a real replica.
- https://cloudinfrastructureservices.co.uk/understanding-cassandra-consistency-levels-a-deep-dive/
- https://cassandra.apache.org/doc/stable/cassandra/architecture/dynamo.html
- https://www.digihunch.com/2018/03/cassandra-architecture-summary/
- https://cassandra.apache.org/doc/stable/cassandra/managing/operating/hints.html
- https://docs.datastax.com/en/dse/6.9/architecture/database-internals/configure-consistency.html
- https://medium.com/kocsistem/eventual-consistency-in-apache-cassandra-how-eventual-is-it-really-22287cd79fab
- https://docs.datastax.com/en/cassandra-oss/2.1/cassandra/dml/dml_about_hh_c.html
- https://www.pythian.com/blog/cassandra-consistency-level-guide