Skip to content

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Distributed CDC Engine

Custom CDC engine built from scratch to stream real-time database mutations.

Built without Debezium β€” uses low-level Logical Decoding (pgoutput).

Current Status: 🟒 LIVE β€” INSERT capture working

BEGIN
Insert CDC EVENT: CdcEvent{op=INSERT, schema='public', table='users', ... lsn=25115944}
COMMIT

πŸ› οΈ Feature Roadmap & Progress

  • βœ… Replication Connection (my_slot + my_pub)
  • βœ… INSERT Capture (WAL parsing & CdcEvent generation)
  • βœ… LSN Tracking (Log Sequence Number stream offsets)
  • ⏳ UPDATE/DELETE Parsing (Raw byte stream layout expansion)
  • ⏳ Kafka Producer Integration (Decoupled event pipeline)
  • ⏳ Fault-Tolerant Checkpointing (State recovery mechanism)

πŸš€ Execution & Verification

Run the Engine

mvn compile exec:java -D"exec.mainClass=com.jigar.engine.CdcEngine"

Test Target Mutation

INSERT INTO users(id, name) VALUES (100, 'test');

About

A lightweight distributed CDC engine built in Java from scratch to process low-level PostgreSQL logical replication streams natively. Custom WAL parser that translates mutations into structured events for Kafka pipelines without heavy polling overhead. Features atomic LSN tracking for fault-tolerant at-least-once delivery. - (My Own Debezium πŸ˜‰)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages