Kafka With Python Django

Vignesh Baskaran
Level Up Coding
Published in
4 min readNov 10, 2023

--

This blog serves as a quick reference for developers integrating Kafka with Django in a standard web application. It assumes prior knowledge of Kafka producer and consumer concepts.

Key Design Principles:

  1. One Class per Consumer Group: Each consumer group for a specific topic will be represented by its own consumer class.
  2. Inheritance from Base Consumer Class: All consumers will inherit from a common base class, abstracting connection and consumption details while delegating message processing to child classes.

--

--