Migrating from Kafka Connect
A Connect pipeline moves records between systems with per-record transforms. The same shape maps onto ArkFlow: the connector's source becomes an ArkFlow input, the sink becomes an output, and Single Message Transforms (SMTs) become processors. What you gain is state (windows, joins), SQL, and engine-wide delivery semantics.
Prerequisites
- Inventory every Connect connector: source/sink, topic(s), serialization (JSON/Avro/Protobuf + Schema Registry), and every SMT in the chain.
- Note the delivery behavior you rely on: Connect source connectors commit offsets their own way; ArkFlow gives you at-least-once with WAL/checkpoint options (see delivery semantics).
Connector → component mapping
| Kafka Connect | ArkFlow component |
|---|---|
KafkaSourceConnector / Kafka sink | Kafka input / Kafka output |
| JDBC source/sink | SQL input / SQL output (UPSERT) |
| Debezium source | Kafka input + debezium_json codec — see the CDC recipe |
| S3 / file sink | Iceberg output, SQL output, or a custom file path via the file input (read side) |
| Elasticsearch sink | HTTP output against the ES REST API |
| HTTP source/sink | HTTP input / HTTP output |
| MongoDB sink | MongoDB output |
| Redis sink | Redis output |
A Connect connector with no direct counterpart is a signal to check the component catalog or write a small plugin — not to force a mapping.
SMT → processor mapping
| SMT | ArkFlow processor |
|---|---|
LowerCaseFieldName / rename | SQL (SELECT a AS b, ...) or JSON |
InsertField / TimestampConverter | SQL with expressions |
Filter / MatchesField | SQL WHERE |
Flatten | SQL (struct expansion) or VRL |
Cast | SQL CAST |
| Scripted / custom logic | Python or VRL |
Serialization
- JSON: the
jsoncodec — usually the default; no extra config. - Avro/Protobuf with Schema Registry: the
schema-registry codecs decode by
subject; see the registered
schema-registryexamples. - Debezium envelopes: the
debezium_jsoncodec produces business columns plusop/ts_msmetadata — the CDC recipe shows the full config.
Converted configuration
A Connect pipeline of postgres → Debezium → Kafka topic orders → JDBC sink
becomes two ArkFlow configs (or one Hub job): the CDC producer into Kafka (see
the Debezium recipe), and the consumer side:
input:
type: kafka
brokers: ["localhost:9092"]
topics: ["shop.users"]
consumer_group: arkflow-cdc
start_from_latest: false
codec:
type: debezium_json
output:
type: sql
output_type:
type: postgres
uri: "postgres://user:${secret:PG_PASSWORD}@db:5432/app"
table_name: users
upsert: true
upsert_keys: ["id"]
upsert_keys makes the sink idempotent — the at-least-once counterpart of
Connect's offset bookkeeping.
Verification
- Run both pipelines in parallel over a replay window; compare sink row counts and checksums for a few keys.
- Kill the ArkFlow process mid-stream and verify recovery resumes without a gap at the sink (at-least-once duplicates are expected — confirm the UPSERT absorbs them).
- Compare
error_output/DLQ traffic with Connect's dead-letter queue behavior.
Unsupported cases
State this explicitly in your migration plan:
- Connect connectors with their own transactional semantics do not map 1:1; ArkFlow's guarantee is at-least-once (plus transactional Kafka output).
- Incremental snapshotting like Debezium's incremental snapshots is not built in; snapshot tables via a SQL input batch and CDC after.
- Connect's distributed worker rebalancing has no counterpart; ArkFlow scales via consumer groups and job placement.