Skip to content

phungvandat/cdcdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.