How to Use Java to Connect to TiDB and Obtain Real-time Synchronized Logs (Raft Log)

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

Original topic: 使用java连接tidb 如何获取 实时同步日志 Raft log

| username: TiDBer_8xv3YpMO

How to use Java to connect to TiDB and obtain real-time synchronization logs (Raft logs)?

| username: TiDBer_8xv3YpMO | Original post link

Does TiDB provide specific APIs?

| username: Raymond | Original post link

Why is there such a need? Can’t you use TiCDC for real-time synchronization?

| username: TiDBer_8xv3YpMO | Original post link

The downstream data sources for TiCDC are relatively few. If I want to connect to more data sources, I can only get its change log, and the company says that I cannot get the logs through Kafka. So I am wondering if I can directly get the data change logs from TiKV’s raft log.

| username: Billmay表妹 | Original post link

The cost of operating this way is a bit high, and any issues that arise later may not be resolved in a timely manner. It is still recommended to use TiDB - Kafka.

| username: TiDBer_8xv3YpMO | Original post link

Due to company reasons, Kafka cannot be used. Are there any other alternatives?

| username: Billmay表妹 | Original post link

Here are some tools:

You can take a look.

There are some migration & synchronization solutions you can check out:

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.