DBSyncer is an open source data synchronization middleware that provides synchronization scenarios such as MySQL
, Oracle
, SqlServer
, PostgreSQL
, Elasticsearch(ES)
, Kafka
, File
, etc.SQL
It supports uploading plug-ins to customize synchronous conversion services, and provides monitoring full and incremental data statistical charts, application performance warnings, etc.
Features:
Combination-driven , custom library synchronization to library combination, combination between relational database and non-relational database, any matching table synchronization mapping relationship
Real-time monitoring , driving full or incremental real-time synchronization of running status, results, synchronization logs and system logs
Develop plug-ins to customize conversion synchronization logic
design
architecture diagram
![a0534eac35c212ab9b73ebf801ce5b74.png](https://img-blog.csdnimg.cn/img_convert/a0534eac35c212ab9b73ebf801ce5b74.png)
Application Scenario
Connector | data source | target source | Supported versions (including the following) |
---|---|---|---|
MySQL | ✔ | ✔ | 5.7.19 or higher |
Oracle | ✔ | ✔ | 10gR2 -11g |
SqlServer | ✔ | ✔ | 2008 and above |
PostgreSQL | ✔ | ✔ | 9.5.25 or higher |
ES | ✔ | ✔ | 6.0 or higher |
Kafka | In development | ✔ | 2.10-0.9.0.0 or above |
File | ✔ | ✔ | *.txt, *.unl |
SQL | ✔ | Supports the above relational databases | |
late plan | Redis |
tutorial
Start agent and database services
![c9f7646a740a6fcbddf84cde97cc949d.png](https://img-blog.csdnimg.cn/img_convert/c9f7646a740a6fcbddf84cde97cc949d.png)
Prepare a test account, test
![59623240b0ba995aec18f6e5b5c2bed0.png](https://img-blog.csdnimg.cn/img_convert/59623240b0ba995aec18f6e5b5c2bed0.png)
Assign the sysadmin role
![eee59f6d07ac0b9f9c5e576ff294d7d6.png](https://img-blog.csdnimg.cn/img_convert/eee59f6d07ac0b9f9c5e576ff294d7d6.png)
Assign specific database permissions
![a1ac0674ef4707235fcd2dc4cc790a8b.png](https://img-blog.csdnimg.cn/img_convert/a1ac0674ef4707235fcd2dc4cc790a8b.png)
PostgreSQL
Monitor incremental events through replication stream technology, and implement parsing of wal logs pgoutput
based on built-in plug-instest_decoding
1. Modify postgresql.conf
the file and restart the service
wal_level=logical
2. Grant account permissions LOGIN
andREPLICATION
File
Monitor the file modification time to get the changed file, and read the latest data through the file offset
“https://gitee.com/ghi/dbsyncer/issues/I55EP5
ES
Acquire incremental data regularly.
The account has access rights.
log
It is recommended that MySQL, SqlServer, and PostgreSQL all use logs
![eeb056f82243d1a3a96428f03372fbef.png](https://img-blog.csdnimg.cn/img_convert/eeb056f82243d1a3a96428f03372fbef.png)
timing
Assumed source table data format
![f9a0f3eab7e927a385630231ca92869c.png](https://img-blog.csdnimg.cn/img_convert/f9a0f3eab7e927a385630231ca92869c.png)
![9ab1ef3ce34636e87df2e4f485da051f.png](https://img-blog.csdnimg.cn/img_convert/9ab1ef3ce34636e87df2e4f485da051f.png)
preview
driver management
![c599f075b4196c61c92aa602a90d2bd5.png](https://img-blog.csdnimg.cn/img_convert/c599f075b4196c61c92aa602a90d2bd5.png)
Driver Details
![7d88cec1506ac8d07e37e97e865343f0.png](https://img-blog.csdnimg.cn/img_convert/7d88cec1506ac8d07e37e97e865343f0.png)
Driver table field relationship configuration
![07b6d77c67dacf2d569a1fe6347e1f31.png](https://img-blog.csdnimg.cn/img_convert/07b6d77c67dacf2d569a1fe6347e1f31.png)
monitor
![144993b5742efc8a20b047fcc168c3ec.png](https://img-blog.csdnimg.cn/img_convert/144993b5742efc8a20b047fcc168c3ec.png)
upload plugin
![56a7a2a0839e54791d7537279d85d92e.png](https://img-blog.csdnimg.cn/img_convert/56a7a2a0839e54791d7537279d85d92e.png)
open source address
https://gitee.com/ghi/dbsyncer
------
We have created a high-quality technical exchange group. When you are with excellent people, you will become excellent yourself. Hurry up and click to join the group and enjoy the joy of growing together. In addition, if you want to change jobs recently, I spent 2 weeks a year ago collecting a wave of face-to-face experience from big factories. If you plan to change jobs after the festival, you can click here to claim it !
recommended reading
Still using open source software to build ChatGPT website? Beware of others spending your money!
True punishment! A few lines of code end the entire educational administration system
··································
Hello, I am DD, a programmer. I have been developing a veteran driver for 10 years, MVP of Alibaba Cloud, TVP of Tencent Cloud. From general development to architect to partner. Along the way, my deepest feeling is that we must keep learning and pay attention to the frontier. As long as you can persevere, think more, complain less, and work hard, it will be easy to overtake on corners! So don't ask me if it's too late to do what I do now. If you are optimistic about something, you must persevere to see hope, not to persevere only when you see hope. Believe me, as long as you stick to it, you will be better than now! If you have no direction yet, you can follow me first, and I will often share some cutting-edge information here to help you accumulate capital for cornering and overtaking.