0
0
Kafkadevops~10 mins

Why connectors integrate external systems in Kafka - Visual Breakdown

Choose your learning style9 modes available
Process Flow - Why connectors integrate external systems
External System Data
Connector reads data
Transforms data if needed
Sends data to Kafka topics
Kafka processes and stores data
Consumers read from Kafka topics
Connectors act as bridges that read data from external systems, optionally transform it, and send it into Kafka topics for processing and consumption.
Execution Sample
Kafka
connector.read()
transform(data)
kafka_topic.send(data)
This code shows a connector reading data from an external system, transforming it, and sending it to a Kafka topic.
Process Table
StepActionData StateResult
1Connector reads data from external systemRaw data from systemData captured by connector
2Transform data if neededRaw dataData formatted for Kafka
3Send data to Kafka topicFormatted dataData stored in Kafka topic
4Kafka stores dataData in topicData ready for consumers
5Consumers read dataData in topicData processed by consumers
6End of processNo new dataWaiting for new data
💡 Process waits for new data after current batch is processed
Status Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4Final
dataNoneRaw data from external systemTransformed dataSent to Kafka topicStored in Kafka topicConsumed by clients
Key Moments - 2 Insights
Why does the connector transform data before sending it to Kafka?
Because external systems may have different data formats, the connector transforms data to match Kafka's expected format, as shown in step 2 of the execution_table.
What happens if the connector does not send data to Kafka?
If data is not sent to Kafka (step 3), the data won't be stored or available for consumers, so the integration fails to deliver data downstream.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the data state after step 2?
ARaw data from external system
BData formatted for Kafka
CData stored in Kafka topic
DData processed by consumers
💡 Hint
Check the 'Data State' column in row for step 2 in execution_table
At which step does the connector send data to Kafka?
AStep 3
BStep 2
CStep 1
DStep 4
💡 Hint
Look at the 'Action' column in execution_table to find when data is sent to Kafka
If the external system sends no new data, what happens according to the exit_note?
AConnector retries sending old data
BKafka deletes old data
CProcess waits for new data
DConsumers stop working
💡 Hint
Refer to the exit_note in execution_table for process behavior when no new data arrives
Concept Snapshot
Connectors link external systems to Kafka.
They read data, transform it if needed,
and send it to Kafka topics.
Kafka stores data for consumers.
This enables smooth data integration.
Full Transcript
Connectors are tools that connect external systems to Kafka. They read data from these systems, sometimes change the data format to fit Kafka's needs, and then send the data into Kafka topics. Kafka stores this data so other programs, called consumers, can read and use it. This process helps different systems work together smoothly by sharing data through Kafka.