An open API service indexing awesome lists of open source software.

https://github.com/fabriceclementz/mongosync

Sync your Mongo database in realtime
https://github.com/fabriceclementz/mongosync

events forwarder mongodb rust

Last synced: 3 months ago
JSON representation

Sync your Mongo database in realtime

Awesome Lists containing this project

README

          

# Mongosync

> ⚠️ This project is a work in progress, it's not recommended for production usage.

Listens to changes in a MongoDB database and broadcasts them over many destinations.

## Sinks

- [ ] Stdout
- [ ] File
- [ ] MongoDB
- [ ] Websocket
- [ ] Elasticsearch

## Configuration file

```yaml
source:
connection_uri:
database:
sinks:
- type: stdout
pretty: true
- type: file
path: ./changes.log
- type: mongodb
connection_uri: <>
```

## Development

### Prerequisites

- Install [Docker](https://www.docker.com/get-started/)
- Install [Rust](https://www.rust-lang.org/tools/install)

### Run mongosync

```sh
# Start MongoDB
docker compose up -d --remove-orphans
# Start mongosync
cargo run -- --config ./examples/mongosync.yaml
```