Message Protocol for CDC Sent to Kafka

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 关于 cdc 发往 kafka 的消息协议

| username: Mwkk

[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]

Previously, a CDC task was deployed on a 4.0.16 cluster. At that time, according to the documentation

the protocol for Kafka was chosen as canal.

Now, the test cluster is version 7.1.4, and a new CDC task has been redeployed. According to the current documentation 同步数据到 Kafka | PingCAP 文档中心, the optional values for the Kafka protocol are canal-json, open-protocol, avro, and maxwell. Could you please explain the difference between canal and canal-json? Are there any risks in configuring the protocol as canal in version 7.1.4?

| username: hey-hoho | Original post link

Refer to this: