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
- Host: GitHub
- URL: https://github.com/fabriceclementz/mongosync
- Owner: fabriceclementz
- Created: 2023-07-20T20:27:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-21T21:02:51.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T12:13:59.209Z (over 1 year ago)
- Topics: events, forwarder, mongodb, rust
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```