Is it possible to be notified when data is updated in Cassandra?
I.e. when changes to a node have been replicated in from another node?
Could I do this directly using Gossip, or is there a higher level abstraction?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No.
Gossip isn’t something to be relied on. The Cassandra nodes themselves don’t rely on it for guarantees. (e.g. if a node is down then updates are queued for an hour only). This is also why you need to run
nodetool repairregularly.Neither does Cassandra have triggers.
I recommend you do update tracking in your application.