Skip to main content
Version: 0.7.x

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 ConnectArkFlow component
KafkaSourceConnector / Kafka sinkKafka input / Kafka output
JDBC source/sinkSQL input / SQL output (UPSERT)
Debezium sourceKafka input + debezium_json codec — see the CDC recipe
S3 / file sinkIceberg output, SQL output, or a custom file path via the file input (read side)
Elasticsearch sinkHTTP output against the ES REST API
HTTP source/sinkHTTP input / HTTP output
MongoDB sinkMongoDB output
Redis sinkRedis 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​

SMTArkFlow processor
LowerCaseFieldName / renameSQL (SELECT a AS b, ...) or JSON
InsertField / TimestampConverterSQL with expressions
Filter / MatchesFieldSQL WHERE
FlattenSQL (struct expansion) or VRL
CastSQL CAST
Scripted / custom logicPython or VRL

Serialization​

  • JSON: the json codec — usually the default; no extra config.
  • Avro/Protobuf with Schema Registry: the schema-registry codecs decode by subject; see the registered schema-registry examples.
  • Debezium envelopes: the debezium_json codec produces business columns plus op/ts_ms metadata — 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​

  1. Run both pipelines in parallel over a replay window; compare sink row counts and checksums for a few keys.
  2. 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).
  3. 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.