Skip to content

dtravin/mongowatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proof of concept Mongo 3.6 collection watcher using change stream API

Dependencies

  • Install latest libmongoc + libbson from source
$ ./autogen.sh
$ make
$ sudo make install
  • Run mongo replicaset

Build

gcc -o mongowatch base64.c mongowatch.c $(pkg-config --libs --cflags libmongoc-1.0)

Test

  • Terminal 1 ./mongowatch "mongodb://localhost:27017,localhost:27018,localhost:27019/test?replicaSet=rs0" test c1

  • Terminal 2 mongo test --eval 'db.c1.insert({});'

About

Mongo collection watcher using change streams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published