跪拜 Guibai
← All articles
Backend · Java · Programmer

DBSyncer: One Web UI, 22 Connectors, Full and Incremental Sync Without Custom Scripts

By SimonKing ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Teams that need database-to-database, database-to-Kafka, or database-to-Elasticsearch pipelines can skip hand-rolled sync scripts and manage both full and incremental loads in one self-hosted tool with a web UI. The Apache-2.0 license and Docker image make it a low-friction option for replacing custom ETL glue.

Summary

DBSyncer abstracts every source and target into a Connector, so any supported system can feed any other supported system without writing a one-off channel for each pair. Full sync reads in shards and writes in parallel; incremental sync hooks into native change streams like MySQL's binlog, with position management to prevent missed or duplicate events after the full phase. Custom Java plugins can sit in the sync path for field mapping, masking, flattening, or HTTP calls.

The connector matrix covers 22 systems, including MySQL, Oracle, SQL Server, PostgreSQL, TiDB, ClickHouse, Doris, StarRocks, MongoDB, Redis, Elasticsearch, Kafka, RocketMQ, files, and HTTP. It also includes Chinese domestic databases like Dameng and Kingbase, putting it in the domestic IT substitution market. The setup demo connects two MySQL instances through the UI: configure source and target, create a task, map existing tables, start it, then watch throughput, latency, failure rate, and retries on the dashboard. One limitation is that target tables must already exist; there's no auto-creation.

Takeaways
— DBSyncer is written in Java, released under Apache-2.0, and maintained by Sichuan Xinghe Sync Technology.
— The middleware supports 22 connectors, including MySQL, Oracle, SQL Server, PostgreSQL, Elasticsearch, Kafka, File, and SQL.
— Full sync reads in shards and writes in parallel; incremental sync uses native change mechanisms such as MySQL binlog.
— Position management in incremental mode avoids missing events and duplicate reads after a full sync.
— Custom Java plugins can be attached to the sync pipeline for field mapping, masking, structure flattening, and external HTTP calls.
— Monitoring tracks throughput, end-to-end latency, failure rate, and retry counts per task and per data source, with alerts to email, DingTalk, or Webhook.
— Installation needs JDK 1.8+ and a browser; the web UI runs on port 18686 with default credentials admin/admin.
— A Docker image is available, with volumes for data, logs, and plugins.
— The connector list includes Dameng, Kingbase, TiDB, Doris, StarRocks, and OceanBase, covering China's domestic IT substitution market.
— Target tables must already exist when setting up mapping; automatic table creation is not supported.
— DBSyncer ships in a free Community Edition and a paid Professional Edition.
Conclusions

Standardizing every endpoint as a Connector is what makes 22 data sources manageable; the UI can pair relational, NoSQL, file, and HTTP endpoints without bespoke channels.

A full-plus-incremental pipeline with position management is the differentiator here; many open-source tools handle one mode well, but few make the switch seamless.

Requiring target tables to pre-exist is a real limitation for automated provisioning; schema changes still live outside the sync tool.

Dameng, Kingbase, OceanBase, and TiDB in the connector matrix target China's domestic IT substitution market; for teams outside that market, the mainstream connectors are the useful part.

Concepts & terms
Binlog
MySQL's binary log records every change to the database in sequence; incremental sync tools read it to capture inserts, updates, and deletes without polling tables.
CDC
Change data capture: a way of tracking row-level changes at the source, often by reading transaction logs or binlogs, so a target can stay current without full reloads.
Connector
In DBSyncer, a standardized adapter for a data source or target; any connector can be paired with any other connector in the UI.
Position management
Tracking the last processed log position or offset so incremental sync can resume after interruptions without missing events or replaying duplicates.
Xinchuang (信创)
China's domestic IT substitution initiative, which pushes procurement toward locally made hardware, databases, and software; DBSyncer's support for Dameng and Kingbase targets that market.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗