Need reliable event publication without atomic database transactions?
MongoDB's change streams simplify the implementation of the Transaction Log Tailing pattern and empower you to build resilient, event-driven architectures where events are never lost.
Read my article, where I explain the concept in detail.
- Execute the script
./run-sut.sh
to start the MongoDB replica set. - Wait until you see
mongodb-init exited with code 0
in the terminal. - Your MongoDB replica set is now ready and you can connect to it.
- Start the consumer
- Start the miner
- Start the producer