Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MongoDB Change Streams Module for Streaming Database Changes with Golang

NotificationsYou must be signed in to change notification settings

usedatabrew/mongodb_stream_benthos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the MongoDB Change Streams Plugin for Benthos! This plugin allows you to seamlessly stream data changes from your MongoDB database using Benthos, a versatile stream processor.

Features

  • Real-time Data Streaming: Capture data changes in real-time as they happen in your MongoDB database.

  • Flexible Configuration: Easily configure the plugin to specify the database connection details

Prerequisites

Before you begin, make sure you have the following prerequisites:

  • Benthos: Required to import into your Golang code

  • MongoDB: Change streams are available for replica sets and sharded clusters:

Getting Started

To get started you have to run benthos with custom plugins. Since this plugin is not adopted by benthos itselfyou have to create a new benthos build with plugin registered

package mainimport ("github.com/benthosdev/benthos/v4/public/service"// import mongodb_stream plugin_"github.com/usedatabrew/mongodb_stream_benthos")funcmain() {// here we initialize benthosservice.Run()}

Create benthos configuration with plugin

input:label:mongodb_stream_input# register new pluginmongodb_stream:uri:database uridatabase:name of the databasecollection:collection namestream_snapshot:set true if you want to stream existing data. If set to false only a new data will be streamed

About

MongoDB Change Streams Module for Streaming Database Changes with Golang

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp