Listen for Changes In Cassandra Datastore?

前端 未结 3 1737
深忆病人
深忆病人 2021-01-01 04:01

I wonder if it is possible to add a listener to Cassandra getting the table and the primary key for changed entries? It would be great to have such a mechanism.

Chec

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-01 04:54

    Are you looking for something like triggers?

    https://github.com/apache/cassandra/tree/trunk/examples/triggers

    A database trigger is procedural code that is automatically executed in response to certain events on a particular table or view in a database. The trigger is mostly used for maintaining the integrity of the information on the database. For example, when a new record (representing a new worker) is added to the employees table, new records should also be created in the tables of the taxes, vacations and salaries.

提交回复
热议问题