Italymtpatter/postgres-kafka-demo
Fully reproducible, Dockerized, step-by-step, demo on how to stream tables from Postgres to Kafka/KSQL back to Postgres. Detailed blog post published on Medium.
🎉 Demo streaming dữ liệu từ Postgres đến Kafka/KSQL cùng postgres-kafka-demo
Một hướng dẫn thực tế, từng bước để biến Postgres thành nguồn dữ liệu real-time qua Kafka và KSQL.
Dự án postgres-kafka-demo của mtpatter là một demo có thể tái tạo đầy đủ, sử dụng Docker và docker-compose để minh họa quy trình streaming bảng dữ liệu từ Postgres đến Kafka, xử lý bằng KSQL, rồi ghi ngược trở lại Postgres. Dựa trên dataset Graduate Admissions từ Kaggle, dự án thể hiện rõ workflow từ việc load dữ liệu, cấu hình Kafka Connect bằng Debezium, đến các truy vấn KSQL tạo bảng real-time.
✨ Điểm nổi bật
- Tái tạo hoàn toàn: Chỉ cần Docker và docker-compose là có thể chạy toàn bộ môi trường.
- Streaming hai chiều: Dữ liệu từ Postgres được lấy vào Kafka bằng Debezium, sau đó được KSQL xử lý và ghi lại qua Kafka Connect sink.
- Sử dụng Debezium: Connector source và sink được pulled từ hình ảnh Debezium đã được điều chỉnh.
- KSQL real-time tables: Tạo các bảng KSQL tự động cập nhật mirror bảng Postgres, hỗ trợ join dữ liệu.
- Dữ liệu thực tế: Dataset Graduate Admissions từ Kaggle với các bảng admission và research.
- Hướng dẫn chi tiết: Cung cấp các command cụ thể để load dữ liệu, cấu hình connector, và thực hiện truy vấn KSQL.
💡 Vì sao值得关注
Dự án này nổi bật vì tính minh bạch và khả năng tái tạo cao, giúp người học dễ dàng theo dõi từng bước từ dữ liệu静态 đến streaming. Phù hợp cho các developer mới bắt đầu với Kafka, KSQL, và công nghệ streaming, cũng như những ai muốn prototype hệ thống real-time data pipeline. Việc kết hợp nhiều công cụ trong một environment thống nhất làm rõ cách các thành phần tương tác với nhau.
#Kafka #Postgres #Debezium #KSQL #Streaming #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Change data capture for a variety of databases. Please log issues at https://github.com/debezium/dbz/issues.
Scripts and samples to support Confluent Demos, Talks, and Blogs. Not all of the examples in this repository are kept up to date. For automated tutorials and QA'd code, see https://github.com/confluentinc/tutorials/
Python ETL framework for stream processing, real-time analytics, LLM pipelines, and RAG.
Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!
The live data layer for apps and AI agents. Create up-to-the-second views into your business, just using SQL