DataWorks provides the real-time data synchronization feature. You can use this feature to synchronize data changes of a table or all tables in a source to a destination in real time. This way, data in the destination remains consistent with data in the source in real time.
The real-time data synchronization feature is available in the following regions: China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Shenzhen), China (Chengdu), and China East 2 Finance.
- Diverse data sources
Star-shaped combination is supported. Multiple supported sources can be combined with multiple supported destinations to synchronize data.
- Sync solutions
You can configure a sync solution to synchronize the full data and incremental data from a database.
- Diverse synchronization methods
You can synchronize data from table shards, a single table, or multiple tables in a database, and configure different processing rules for messages about different DDL operations.
- Data processing
You can perform data filtering, string replacement and data de-identification on the data from a source based on your business requirements and synchronize the processed data to a destination.
- Monitoring and alerting
This feature can send alert notifications about service latency, failovers, dirty data, heartbeats, and failures by emails, SMS and DingTalk messages. This way, you can detect and handle alerts at the earliest opportunity.Note Only Singapore, Malaysia(Kuala Limpur), and Germany(Frankfurt) support the SMS reminding method. To use the SMS reminding method in other regions, submit a ticket to contact DataWorks technical support.
- Graphical development
You can perform drag-and-drop operations instead of writing code to develop real-time sync nodes. The feature is easy to use even for beginners.
Supported synchronization methods, sources, and destinations
|Synchronization method||Source||Destination||References for configuring data sources||References for configuring sync nodes|
||Configure and manage a real-time data sync node|
||MaxCompute||Configure and manage a real-time data sync node|
||Hologres||Configure and manage real-time synchronization nodes|
||DataHub||Configure and manage a real-time data sync node|
|MySQL||Kafka||Configure data sources for data synchronization from MySQL||Configure and manage a real-time sync node|
Resource usage and billing
Before you use a data synchronization node to synchronize data, you must purchase an exclusive resource group for data integration and add the resource group to DataWorks for subsequent use.
|Specifications||Maximum number of parallel threads for a batch synchronization node||*Maximum number of parallel real-time synchronization nodes|
You can estimate the required resources and purchase an exclusive resource group for Data Integration based on the amount of data that you want to synchronize. For more information about exclusive resource groups for Data Integration, see Exclusive resource groups for Data Integration.
Network connectivity solutions
For more information about network connectivity solutions, see Overview. This section describes the solutions that can be used to connect a data source to an exclusive resource group.
An exclusive resource group for Data Integration is essentially a group of ECS instances. After you purchase such an exclusive resource group, it is isolated from other services. You must associate the resource group with a virtual private cloud (VPC) to ensure network connectivity between the resource group and data sources during subsequent data synchronization.
- The data source is deployed on the Internet.
Connect the data source to the virtual private cloud (VPC) that is associated with the exclusive resource group.
- The data source is deployed in a VPC that is in the same region as the exclusive resource
- Same zone: Associate the VPC where the data source resides with the exclusive resource group.
- Different zones: Associate a VPC with the exclusive resource group. Then, configure a route between the associated VPC and the VPC where the data source resides.
- The data source is deployed in a VPC that is in a different region from the region
where the exclusive resource group resides.
- Associate a VPC with the exclusive resource group. Then, configure a route between the associated VPC and the VPC where the data source resides.
- Associate a VPC with the exclusive resource group. Then, use Express Connect or VPN Gateway to connect the associated VPC to the VPC where the data source resides.
- The data source is deployed in a data center.
- Associate a VPC with the exclusive resource group. Then, configure a route between the associated VPC and the network where the data center resides.
- Associate a VPC with the exclusive resource group. Then, use Express Connect or VPN Gateway to connect the network where the data center resides to the associated VPC.
- The data source is deployed in the Alibaba Cloud classic network.
The classic network and VPCs cannot be connected. Therefore, we recommend that you migrate the data source to a VPC.
- Plan and configure resources.
Estimate the required resources and purchase an exclusive resource group for Data Integration based on the amount of data that you want to synchronize and the network environment. Configure the resources to ensure network connectivity.
- Configure data sources.
After you establish network connections for data sources between which you want to synchronize data, configure the data sources to ensure accessibility. For example, make sure that the IP addresses of the exclusive resource groups are added to the IP address whitelists of the data sources. Otherwise, the synchronization fails.
- Add data sources.
Add the data sources to DataWorks as the source and destination. This way, you can associate the data sources when you create a synchronization solution.
- Create and configure a synchronization solution.
Create a synchronization solution and configure the parameters based on the synchronization scenario.