All work
11Data Engineering

KSQLDB Streaming Pipeline

Streaming ETL with Kafka + KSQLDB and a custom Kafka Connect sink — Postgres to Postgres.

Architecture

SQL-first streaming ETL: CDC from Postgres into Kafka, transformed in KSQLDB, written back via a custom sink connector.

PostgreSQLOLTP source
DebeziumChange Data Capture
Apache KafkaEvent streaming
KSQLDBStreaming ETL (SQL)
PostgreSQLvia custom sink

Sink

Custom Kafka Connect

Infrastructure

DockerZookeeper

Overview

A streaming ETL pipeline that performs transformations directly in the stream using KSQLDB on top of Kafka.

It reads from PostgreSQL and writes back to PostgreSQL through a custom Kafka Connect sink connector — a SQL-first approach to stream processing.

Highlights

  • Stream transformations in KSQLDB (SQL on streams)
  • Custom Kafka Connect sink connector
  • Postgres → Postgres end to end

Tech stack

KafkaKSQLDBKafka ConnectPostgreSQL