Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.26 KB

README.md

File metadata and controls

64 lines (45 loc) · 1.26 KB

cdcdb: CHANGE DATA CAPTURE DATABASE

cdcdb: example demo program the connects to a database and receive some message events(insert, update, delete, ...)

Database:

How to run

Postgres

  • Into the executable directory

    cd pg
    
  • Setup replication Postgres DB inside docker evironment:

    make setup
    
  • Create some tables to listen

  • Start listening:

    make dev
    

MongoDB

  • Into the executable directory

    cd mongodb
    
  • Setup replication MongoDB inside docker evironment:

    make setup
    
  • Start listening:

    make dev
    
  • Create collection and insert, delete or update some documents.