- Stream messages to Kafka to trigger notifications in an application.
- Keep your data mirrored in full-text indexes, analytics engines, or big data pipelines.
- Export a snaphot of tables to backfill new applications.
- Send updates to data stores for machine learning models.
Stream row-level changes with changefeeds
Changefeeds are customizable jobs that track row-level changes and send data in realtime in a preferred format to your specified destination, known as a sink. Every row change will be emitted at least once and the first emit of every event for the same key will be ordered by timestamp. CockroachDB has two implementations of changefeeds:Get started with changefeeds
To get started with changefeeds in CockroachDB, refer to:- Create and Configure Changefeeds: Learn about the fundamentals of using SQL statements to create and manage Enterprise and basic changefeeds.
- Changefeed Sinks: The downstream system to which the changefeed emits changes. Learn about the supported sinks and configuration capabilities.
- Changefeed Messages: The change events that emit from the changefeed to your sink. Learn about how messages are ordered at your sink and the options to configure and format messages.
- Changefeed Examples: Step-by-step examples for connecting to each changefeed sink.
Authenticate to your changefeed sink
To send changefeed messages to a sink, it is necessary to provide theCREATE CHANGEFEED statement with authentication credentials.
The following pages detail the supported authentication:
Monitor your changefeed job
It is a best practice to monitor your changefeed jobs for behavior such as failures and retries. You can use the following tools for monitoring:- The Changefeed Dashboard on the DB Console
- The
SHOW CHANGEFEED JOBSstatement - Changefeed metrics labels
Optimize a changefeed for your workload
Filter your change data with CDC queries
Change data capture queries allow you to define and filter the change data emitted to your sink when you create an Enterprise changefeed. For example, you can use CDC queries to:- Filter out rows and columns from changefeed messages to decrease the load on your downstream sink.
- Modify data before it emits to reduce the time and operational burden of filtering or transforming data downstream.
- Stabilize or customize the schema of your changefeed messages for increased compatibility with external systems.

