Apache Kafka Streaming (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
Kafka Connect Architecture: Source vs Sink connectors, tasks distribution, converters, and Single Message Transforms (SMTs).
senior LevelFormsSystem DesignApache Kafka
In Simple Words: Kafka Connect is a distributed, fault-tolerant framework for streaming data between Kafka and external datastores:
- Source Connectors: Pull data from datastores into Kafka (e.g., Debezium CDC from MySQL/PostgreSQL, Salesforce events).
- Sink Connectors: Push data from Kafka to external systems (e.g., Elasticsearch, Snowflake, Amazon S3, MongoDB).
- Tasks: Connectors break work into parallel independent Tasks distributed across a cluster of Connect worker nodes.
- Single Message Transforms (SMTs): Lightweight inline mutations (e.g., masking credit card fields, renaming fields, timestamp routing) applied to records before writing.