liveBook · Manning

Sink connector

As explained in Apache Kafka in Action

A sink connector is a Kafka Connect connector that reads data from Kafka and writes it to an external destination system.

A sink connector consumes records from Kafka and writes them to an external destination. It provides a standardized path to databases, object storage, messaging systems, and data warehouses while supporting scalable, fault-tolerant data movement. section 11.1

Figure 11.1 Kafka Connect integrates third-party systems with Kafka.
A logo with black text

AI-generated content may be incorrect.

Use the integration diagram to trace Kafka Connect’s two-way relationship with external systems and distinguish sink connectors from source connectors. section 11.1

Configure the connector class to select the destination implementation, such as io.confluent.connect.jdbc.JdbcSinkConnector. Specify topics directly with topics or select them with topic.regex; regular expressions are useful when the topic set changes over time. The tasks.max setting requests workload parallelization, although partitions and connector limits may cap the actual task count. section 11.6.1 section 11.6.1

Production operation commonly includes:

  • Managing connector creation, updates, deletion, and status through the Kafka Connect REST API. section 11.10
  • Handling failures with retries, error logging, tolerance settings, and a dead-letter queue for unprocessable sink records. section 11.10
  • Applying Single Message Transformations to rename, mask, extract, or re-key fields, while reserving complex ETL for other processing. section 11.10
  • Using a connector-specific consumer group and considering exactly-once support when the integration requires stronger delivery guarantees. section 11.6.1

How Apache Kafka in Action covers it

How deep it goes
Defines the data flow and covers connector classes, topic selection, task parallelization, consumer groups, and operational error handling.
Examples
Uses JdbcSinkConnector, topic.regex, tasks.max, REST configuration, retries, transformations, and dead-letter queues as concrete operational examples.
What it assumes
Assumes familiarity with Kafka topics and records while establishing source-versus-sink connector roles and partitioned-stream reasoning.
What you can do after
Operate/configure Kafka-to-system integrations with selected topics, parallel tasks, transformations, retries, and failure destinations.
How it connects
Connects Kafka topics, consumer groups, connector tasks, REST APIs, Single Message Transformations, and exactly-once semantics.

Also explained in

Compare how 3 books explain sink connector →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Apache Kafka in Action. The section links point to the parts of the book it draws on.