Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mseemann/mongodb-streams
Demo how to sync a MongoDb collection into a relational database with eventual consistency.
https://github.com/mseemann/mongodb-streams
Last synced: 3 days ago
JSON representation
Demo how to sync a MongoDb collection into a relational database with eventual consistency.
- Host: GitHub
- URL: https://github.com/mseemann/mongodb-streams
- Owner: mseemann
- Created: 2021-08-30T20:49:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-05T10:04:38.000Z (over 3 years ago)
- Last Synced: 2024-11-17T15:44:20.358Z (about 2 months ago)
- Language: Java
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
* start all required services (MongoDb, Postgres, Prometheus, Grafan) with docker compose up
* start the two services sync and monitor (you may use your IDE or mvn)
* create a sample user: curl -X POST http://localhost:8080/create-user
* connect to the relational database and have a look at the content of the table user
* have a look at http://localhost:3000/d/msm/mongo-streams-monitoring to view the grafana dashboard
* under http://localhost:9090/alerts you'll find the alertsThe corresponding medium article: https://medium.com/@mseemann.io/synchronize-a-mongodb-collection-to-a-relational-database-with-eventual-consistency-b31346f17128