Skip to content

vsco/autobahn-oplog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autobahn-oplog

autobahn-oplog is a Go package used to tail MongoDB replication oplogs. It can be used to create a real-time stream of immutable events in Apache Kafka, trigger specific events directly, or something else.

See also autobahn-binlog, which does something similar for MySQL.

MongoDB relies on a special capped collection called an oplog (for operations log) to keep data in sync between primary and secondary hosts. autobahn-oplog watches the oplog and throws database change events for desired collections into a Go channel.

Installation

go get github.com/vsco/autobahn-oplog

Requirements

  • Go
  • MongoDB with oplog enabled, either
    • by running it in a replica set, or
    • by starting mongod with argument --master

About

A Go package for tailing MongoDB replication oplogs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages