Streaming to Kafka Just Got Easier with DLT Pipelines
Key Takeaways
Delta Live Tables (DLT) enables streaming to Apache Kafka topics using create_sink() and append_flow() functions, simplifying real-time data publishing. DLT handles reliable message delivery and scaling, making it easier to stream data to Kafka topics.
Full Transcript
thousands of organizations rely on Delta life tables or DLT to build reliable data pipelines DLT makes pipeline development declarative providing built-in data quality checks error recovery and efficient scaling on serverless compute whether you working with files Landing in cloud storage or realtime data streams from apachi kfka DT has a unified programming model for both batch and streaming data processing but how can we publish data back to Kafka from a data pipeline Delta life tables now introduces native Kafka syn support you simply Supply a Kafka sync using the create Sync API and then use a pen flow to stream your data to this sync this isn't creating another DLT table it's establishing a continuous flow to Kafka okay then let's look at the code I'm setting the bootstrap and the topic for the Kafka server here and then I'm using confluent Cloud so I need this API key and I need the secret the confluent secret and both of them I get from a data brick secret scope that I set up with the CLI and I retrieve those values and then I create the Kafka sync and the Kafka sync is actually a simple create sync I give it a name I give it a type which is Kafka and then I provide the properties now the properties depend on the kafa flavor and the Kafka server that I'm using here I need to specify those sassle and SSL parameters but as I said that depends on your Kafka server so the command is a simple create sync and then what I do is I read a sales transaction data stream now this data is actually coming from uh Marketplace it's a public data set everyone of you can get that for free and it's a table which is OV So it's b house sales transaction and I'm reading this as a stream and then I'm also filtering I I only want the high uh value payments it's all about cookies it's the cookies data set from uh from the summit and the way I read it here is in a streaming table which is defined here DLT table that makes it a streaming table so we have a streaming table um that gets us access to the sales transaction and then all I need to do is since I have the sync already all I need to do is append flow I specify the sync that I want to use here as a Target and then I read from my streaming table I write back to that sync ad Chason structure which is written as a value if I've run this it looks like this that's the pipeline actually the the data set on Marketplace is like 3,300 uh transactions but because of the filter the streaming table is only raing like 696 and all of this goes to the Kafka sync and uh that's it basically so you can get the data set from Marketplace it's a one click it gives it gets you access it's then available in unity catalog as a shared data set and if you're looking for the source code of this example it's available on GitHub go to GitHub data braks TMM TMM that's the thing you need to remember and then you get to the source code you can play with it yourself one more thing did the data really make it into cfom well this is the broker site and if I click on messages here you see exactly 696 messages are ingested and you see the messages here and they already look like what I was sending but if I drill into that you see exactly the same Json structure um that I published to that topic as a value well thank you for joining us today go and build something amazing and let us know about it
Original Description
Delta Live Tables now lets you write data directly to Apache Kafka topics, making real-time data publishing simpler than ever. Just use create_sink() to define your Kafka connection details and topic configuration, with DLT handling all the complexity of reliable message delivery and scaling. Once your sink is configured, you can use append_flow() to continuously stream data to Kafka topics.
Learn more about Data Engineering at Databricks: https://www.databricks.com/product/delta-live-tables
Note: Databricks Lakeflow unifies Data Engineering with Lakeflow Connect, Lakeflow Spark Declarative Pipelines (previously known as DLT), and Lakeflow Jobs (previously known as Workflows).
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Databricks · Databricks · 11 of 60
1
2
3
4
5
6
7
8
9
10
▶
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Building AI Agent Systems with Databricks
Databricks
Databricks Workflows
Databricks
Automate Unity Catalog Upgrade with UCX Part 1: Overview
Databricks
Automate Unity Catalog Upgrade with UCX Part 2: Installation
Databricks
Automate Unity Catalog Upgrade with UCX Part 3 - Assessment
Databricks
Automate Unity Catalog Upgrade with UCX Part 4 - Group Migration
Databricks
Table Migration and Catalog Design with UCX | Part 5
Databricks
Setting Up Azure Access for UCX Table Migration | Part 6
Databricks
UCX Table Migration: Creating Catalogs and Schemas | Part 7
Databricks
Automate Unity Catalog Upgrade with UCX Part 8: Code Migration
Databricks
Streaming to Kafka Just Got Easier with DLT Pipelines
Databricks
Data Engineering From Data to Dashboards with DABs: Crunching the Cookies Dataset
Databricks
Epsilon helps businesses connect with their consumers using Databricks Data Intelligence Platform
Databricks
Unilever transforms operations with GenAI using the Databricks Data Intelligence Platform
Databricks
ActionIQ enables businesses to unlock customer data with the Databricks Data Intelligence Platform
Databricks
Mixed Attention & LLM Context | Data Brew | Episode 35
Databricks
Inside Databricks SQL: Engineering innovation with Hans
Databricks
Inside Databricks: Engineering innovation with Michael Armbrust
Databricks
The Money Team at Databricks: driving revenue and customer growth
Databricks
Unity Catalog unveiled: engineering data governance at scale
Databricks
Create a view in Databricks and share it with Power BI using Delta Sharing
Databricks
NDUS leverages Databricks Data Intelligence Platform to revolutionize higher education management
Databricks
Démo Databricks de AI/BI
Databricks
EMEA Data + AI World Tour 2024
Databricks
GenAI: The Shift to Data Intelligence - Customer Panel on Industry Use Cases
Databricks
GenAI: The Shift to Data Intelligence - Ft. Ash Jhaveri, VP of Reality Labs Partnerships at Meta
Databricks
Virtue Foundation leverages the Databricks Data Intelligence Platform to advance global health
Databricks
Announcing Synthetic Data Generation in Mosaic AI Agent Evaluation
Databricks
AI/BI Dashboards Embedding - A tutorial
Databricks
Bayer transforms global data management with the Databricks Data Intelligence Platform
Databricks
Databricks at AWS re:Invent 2024
Databricks
Hive Metastore and AWS Glue Federation in Unity Catalog
Databricks
Data + AI World Tour Paris 2024
Databricks
Retail reimagined: Currys data-first strategy to driving growth and improving operations
Databricks
Mixture of Memory Experts (MoME) | Data Brew | Episode 36
Databricks
Verana Health Data Curation and Innovation with Databricks and AWS
Databricks
Securing SaaS Applications: Obsidian Security on Their Journey with Databricks and AWS
Databricks
Twilio Eng VP on Data Intelligence & AI at AWS re:Invent 2024
Databricks
Chegg Eng SVP on Data-Driven Approach to Student Success with Databricks and AWS
Databricks
Ibotta Personalized Rewards Innovation with Databricks and AWS
Databricks
Simplify AI governance with #databricks AI Gateway
Databricks
Databricks SQL and Power BI Integration
Databricks
Databricks Serverless SQL Warehouses
Databricks
7 West powers audience growth with the Databricks Data Intelligence Platform
Databricks
Secret to Production AI: Tools & Infrastructure | Data Brew | Episode 37
Databricks
Skyflow CEO on Data Privacy with Databricks at AWS re:Invent
Databricks
Databricks Clean Rooms Product Demo
Databricks
Dun & Bradstreet Enrichment & Monitoring, powered by Delta Sharing & Databricks Marketplace
Databricks
Unpacking Libraries in Databricks
Databricks
Providence uses an AI agent system from Databricks to help doctors improve their communication
Databricks
How State Street Uses AI to Transform Millions of Trades Daily
Databricks
Vevo Therapeutics CEO on Curing Disease with Data at AWS re:Invent
Databricks
Over Architected with Nick & Holly: Databricks updates for Feb 2025
Databricks
The Power of Synthetic Data | Data Brew | Episode 38
Databricks
Use Databricks Lakehouse Federation to break down data silos
Databricks
AI's rugby score: National Rugby League rallies fans with analytics and unified data
Databricks
Open Variant Data Type in Delta Lake and Apache Spark
Databricks
How would you sort Ætheldred in the alphabet using Databricks?
Databricks
A guide on how to operationalize the Databricks AI Security Framework (DASF)
Databricks
Future-Proof Your Asset Performance Management with Generative AI - Field Assistant Live Demo
Databricks
More on: ETL Basics
View skill →Related Reads
📰
📰
📰
📰
I Built My Second ETL Pipeline. This Time, I Started Thinking Like a Data Engineer
Towards Data Science
JuiceFS Sync for PB-Scale Data Transfers: Resumable Sync, Encryption, and Bandwidth Control
Dev.to AI
How Airflow is using AI to make data engineering more resilient, not more complex
Medium · AI
What Can We Do When Memory Becomes the New Bottleneck in Data Engineering?
Towards Data Science
🎓
Tutor Explanation
DeepCamp AI