Listen to a cassandra database with datastax

自闭症网瘾萝莉.ら 提交于 2019-12-13 11:28:08

问题


How can I get a record from cassandra database every time that it is add using datastax for java? That is, how can I "listen" cassandra database? Thanks


回答1:


There is no easy way to do it. Cassandra has Change Data Capture functionality, but it's quite low level (and could depend on version of Cassandra), and it's not easy to use it. You can write your own implementation (pointers in link above), or use something like this, but it's very old. And you'll need to handle deduplication yourself, as when you have RF > 1, every node will receive & write the data.



来源:https://stackoverflow.com/questions/51896684/listen-to-a-cassandra-database-with-datastax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!