How to use Python with Apache Kafka

How to use Python with Apache Kafka

Update: 2023-03-14
Share

Description

Can you use Apache Kafka® and Python together? What’s the current state of Python support? And what are the best options to get started? In this episode, Dave Klein joins Kris to talk about all things Kafka and Python: the libraries, the tools, and the pros & cons. He also talks about the new course he just launched to support Python programmers entering the event-streaming world.

Dave has been an active member of the Kafka community for many years and noticed that there were a lot of Kafka resources for Java but few for Python. So he decided to create a course to help people get started using Python and Kafka together.

Historically, Java has had the most documentation, and people have often missed how good the Python support is for Kafka users. Python and Kafka are an ideal fit for machine learning applications and data engineering in general. Yet there are a lot of use cases for building, streaming, and machine learning pipelines. In fact, someone conducted a survey to find out what languages were most popular in the Kafka community and Python came in second after Java. That’s how Dave got the idea to create a course for newbies.

In this course, Dave combines video lectures with code-heavy exercises to give developers a taste of what the code looks like, how to structure it, a preview of the shape of the code, and the structure of the classes and the functions so you can get hands-on practice using the library. He also covers building a producer and a consumer and using the admin client. And, of course, there is a module that covers working with the schemas supported by the Kafka library.

Dave explains that Python opens up a world of opportunity and is ripe for expansion. So if you are ready to dive in, head over to developer.confluent.io to learn more about Dave’s course.

EPISODE LINKS

Comments (1)

Chad Rourke

Remember those childhood dreams where you’d build the most fantastic machine out of LEGOs, only to find out that real-life engineering is much harder? Double Cloud is here to make those dreams come true—but with data, not LEGOs. Imagine constructing an entire data pipeline in just one day. That’s right—one day. Check out https://double.cloud/services/managed-kafka/. Double Cloud’s platform is like a giant box of digital LEGOs, offering managed services like ClickHouse and Kafka, all while making sure everything fits together perfectly. Their no-code ELT tool is the magic brick that snaps everything into place, letting you sync data in real time without breaking a sweat. And maintenance? It’s like having a team of LEGO master builders on call, handling sharding, backups, and scaling, so you can focus on the fun part—innovating. Worried about security? Double Cloud has that covered too, with encryption and compliance so tight, it’s like locking your LEGOs in a vault. Curious about their

Aug 22nd
Reply
00:00
00:00
1.0x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

How to use Python with Apache Kafka

How to use Python with Apache Kafka

Confluent, founded by the original creators of Apache Kafka®