Kafka Connect is the primary method for doing integration with Apache Kafka and other systems. It includes Single Message Transform (SMT) which can be used to modify messages as they pass through the pipeline in or out of Kafka.
This video explains using the InsertField SMT to insert the timestamp of each message into its payload when sending it to a sink such as AWS S3 or MySQL.
---
✍️Blog: rmoff.net/2020/12/08/twelve-d...
👾 Demo code: github.com/confluentinc/demo-...
Learn more about Kafka Connect here:
🏃♂️ Quick: • Kafka Connect in 60 se...
🚶 More detail: rmoff.dev/kafka-connect-zero-...
---
⏱ Time codes:
00:00:00 Brief introduction to Kafka Connect and Single Message Transforms
00:01:11 GitHub repository for the demo
00:01:47 Creating the source data generator connector (Voluble)
00:02:22 Examining the topics created by the source connector
00:03:08 Kafka Message timestamp metadata
00:04:02 Streaming data from Kafka to MySQL with the JDBC Sink connector
00:05:19 Adding in Kafka message timestamp to a sink connector
00:05:58 Using the InsertField Single Message Transform (SMT)
00:09:13 Streaming data from Kafka to S3
00:09:50 Using Transforms with the S3 sink to add the timestamp in string format
---
☁️ Confluent Cloud: confluent.cloud/signup?...
💾Download Confluent Platform: www.confluent.io/download/?ut...
📺 Kafka Connect connector deep-dives: • Kafka Connect
✍️Kafka Connect documentation: docs.confluent.io/current/con...
🧩Confluent Hub: www.confluent.io/hub/?...
3 авг 2024