<commit_before>---
title: Quick Start Guide on Integrating TiDB with Confluent Platform
summary: Learn how to stream TiDB data to the Confluent Platform using TiCDC.
---

# Quick Start Guide on Integrating TiDB with Confluent Platform

This document introduces how to integrate TiDB to Confluent Platform using [TiCDC](/ticdc/ticdc-overview.md).

> **Note:**
>
> This is still an experimental feature. Do **NOT** use it in a production environment.

[Confluent Platform](https://docs.confluent.io/current/platform.html) is a data streaming platform with Kafka at its core. With many official and third-party sink connectors, Confluent Platform enables you to easily connect stream sources to relational or non-relational databases.

To integrate TiDB with Confluent Platform, you can use the TiCDC component with the Avro protocol. TiCDC can stream data changes to Kafka in the format that Confluent Platform recognizes. For the detailed integration guide, see the following sections:

## Prerequisites

> **Note:**
>
> In this tutorial, the [JDBC sink connector](https://docs.confluent.io/current/connect/kafka-connect-jdbc/sink-connector/index.html#load-the-jdbc-sink-connector) is used to replicate TiDB data to a downstream relational database. To make it simple, **SQLite** is used here as an example.

+ Make sure that Zookeeper, Kafka, and Schema Registry are properly installed. It is recommended that you follow the [Confluent Platform Quick Start Guide](https://docs.confluent.io/current/quickstart/ce-quickstart.html#ce-quickstart) to deploy a local test environment.

+ Make sure that JDBC sink connector is installed by running the following command. The result should contain `jdbc-sink`.

    {{< copyable "shell-regular" >}}

    ```shell
    confluent local services connect connector list
    ```

## Integration procedures

1. Save the following configuration into `jdbc-sink-connector.json`:

    {{< copyable "" >}}<commit_msg>ticdc: add "apache" to integrate-confluent-using-ticdc.md (#4297)<commit_after>---
title: Quick Start Guide on Integrating TiDB with Confluent Platform
summary: Learn how to stream TiDB data to the Confluent Platform using TiCDC.
---

# Quick Start Guide on Integrating TiDB with Confluent Platform

This document introduces how to integrate TiDB to Confluent Platform using [TiCDC](/ticdc/ticdc-overview.md).

> **Note:**
>
> This is still an experimental feature. Do **NOT** use it in a production environment.

[Confluent Platform](https://docs.confluent.io/current/platform.html) is a data streaming platform with Apache Kafka at its core. With many official and third-party sink connectors, Confluent Platform enables you to easily connect stream sources to relational or non-relational databases.

To integrate TiDB with Confluent Platform, you can use the TiCDC component with the Avro protocol. TiCDC can stream data changes to Kafka in the format that Confluent Platform recognizes. For the detailed integration guide, see the following sections:

## Prerequisites

> **Note:**
>
> In this tutorial, the [JDBC sink connector](https://docs.confluent.io/current/connect/kafka-connect-jdbc/sink-connector/index.html#load-the-jdbc-sink-connector) is used to replicate TiDB data to a downstream relational database. To make it simple, **SQLite** is used here as an example.

+ Make sure that Zookeeper, Kafka, and Schema Registry are properly installed. It is recommended that you follow the [Confluent Platform Quick Start Guide](https://docs.confluent.io/current/quickstart/ce-quickstart.html#ce-quickstart) to deploy a local test environment.

+ Make sure that JDBC sink connector is installed by running the following command. The result should contain `jdbc-sink`.

    {{< copyable "shell-regular" >}}

    ```shell
    confluent local services connect connector list
    ```

## Integration procedures

1. Save the following configuration into `jdbc-sink-connector.json`:

    {{< copyable "" >}}
{'fraction_non_alphanumeric': 0.08242730720606826, 'fraction_numerical': 0.0015170670037926676, 'mean_word_length': 4.627311522048364, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '810806', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1025, 'n_words': 464}