/django_kafka_debezium

Django with Kafka, Debezium, and Faust for Email Sending using Change Data Capture

Primary LanguagePython

Django with Kafka, Debezium, and Faust for Email Sending using Change Data Capture (CDC)

This example demonstrates how to use Django along with Kafka, Debezium, and Faust to send emails triggered by changes in the database through Change Data Capture.

Prerequisites

Faust can be a substitute for Celery in handling asynchronous tasks.

Requirements

You need to install Docker and Docker-Compose.

Build

         docker-compose up -d 

Migrate databases

         docker-compose exec web python manage.py migrate

Createsuperuser

         docker-compose exec web python manage.py createsuperuser