Sink Connector Features
Last updated
Last updated
Sink connectors have some common core features, and each sink connector supports them to varying degrees.
When any piece of data flows into a distributed system, if the system processes any piece of data accurately only once in the whole processing process and the processing results are correct, it is considered that the system meets the exact once consistency.
For sink connector, the sink connector supports exactly-once if any piece of data only write into target once. There are generally two ways to achieve this:
The target database supports key deduplication. For example MySQL
, Kudu
.
The target support XA Transaction(This transaction can be used across sessions. Even if the program that created the transaction has ended, the newly started program only needs to know the ID of the last transaction to resubmit or roll back the transaction). Then we can use Two-phase Commit to ensure exactly-once. For example File
, MySQL
.
If a sink connector supports writing row kinds(INSERT/UPDATE_BEFORE/UPDATE_AFTER/DELETE) based on primary key, we think it supports cdc(change data capture).
Supports write multiple tables in one Nexus job.