liveBook · Manning

Source connector

As explained in Apache Kafka in Action

A source connector is a Kafka Connect connector that reads data from an external source system and publishes it to Kafka.

A source connector reads records from an external system and publishes them to Kafka. It is the ingestion side of Kafka Connect, contrasting with a sink connector, which exports Kafka records to another system. Typical sources include databases, filesystems, and messaging systems. 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 data from a third-party system through a source connector into Kafka. section 11.1

A connector class selects the implementation, such as FileStreamSourceConnector, JdbcSourceConnector, or Debezium’s PostgresConnector. Configuration can split work across tasks with tasks.max, although the connector or source structure may limit the effective parallelism. Source data is modeled as partitioned streams so Kafka can scale processing while preserving each stream’s required ordering and tracking progress. section 11.6.1 section 11.1

Database ingestion

A JDBC source connector can read from a database and publish records to Kafka. Database tables can be treated as independent streams, with sequential identifier columns helping track which rows Kafka Connect has already seen. For database changes, a connector such as Debezium can implement change data capture. section 11.1 section 11.10

How Apache Kafka in Action covers it

How deep it goes
Defines the data flow and connector configuration, then addresses partitioning and task limits without detailing connector implementation internals.
Examples
Uses FileStreamSourceConnector, JDBC source connectors, database tables, sequential identifiers, and Debezium’s PostgresConnector.
What it assumes
Assumes Kafka concepts such as topics and partitions while distinguishing source connectors from sink connectors.
What you can do after
Operate/configure ingestion through connector classes, task limits, and Kafka Connect’s management interfaces.
How it connects
Connects source connectors with Kafka Connect, Kafka topics, partitions, offsets, sink connectors, and change data capture.

Also explained in

Compare how 3 books explain source 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.