MaxScale KafkaCDC
Stream replication events from MariaDB to Apache Kafka. This router captures data changes (CDC) and publishes them as JSON objects to Kafka topics for downstream processing.
Overview
{
"namespace": "MaxScaleChangeDataSchema.avro",
"type": "record",
"name": "ChangeRecord",
"table": "t2", // name of the table
"database": "test", // the database the table is in
"version": 1, // schema version, incremented when the table format changes
"gtid": "0-3000-14", // GTID that created the current version of the table
"fields": [
{
"name": "domain", // First part of the GTID
"type": "int"
},
{
"name": "server_id", // Second part of the GTID
"type": "int"
},
{
"name": "sequence", // Third part of the GTID
"type": "int"
},
{
"name": "event_number", // Sequence number of the event inside the GTID
"type": "int"
},
{
"name": "timestamp", // UNIX timestamp when the event was created
"type": "int"
},
{
"name": "event_type", // Event type
"type": {
"type": "enum",
"name": "EVENT_TYPES",
"symbols": [
"insert", // The row that was inserted
"update_before", // The row before it was updated
"update_after", // The row after it was updated
"delete" // The row that was deleted
]
}
},
{
"name": "id", // Field name
"type": [
"null",
"long"
],
"real_type": "int", // Field type
"length": -1, // Field length, if found
"unsigned": false // Whether the field is unsigned
}
]
}Configuration
Settings
bootstrap_servers
bootstrap_serverstopic
topicenable_idempotence
enable_idempotencetimeout
timeoutgtid
gtidserver_id
server_idmatch
matchexclude
excludecooperative_replication
cooperative_replicationsend_schema
send_schemaread_gtid_from_kafka
read_gtid_from_kafkakafka_ssl
kafka_sslkafka_ssl_ca
kafka_ssl_cakafka_ssl_cert
kafka_ssl_certkafka_ssl_key
kafka_ssl_keykafka_sasl_user
kafka_sasl_userkafka_sasl_password
kafka_sasl_passwordkafka_sasl_mechanism
kafka_sasl_mechanismExample Configuration
Limitations
Last updated
Was this helpful?

