Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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 alerts

The corresponding medium article: https://medium.com/@mseemann.io/synchronize-a-mongodb-collection-to-a-relational-database-with-eventual-consistency-b31346f17128