Why does Mongock need MongoDb with ReplicaSet? Can it work on MongoDB without need of setting up ReplicaSet? #17
-
|
In the Requirements section provided in Examples, one of the requirements says: "MongoDB with ReplicaSet", Apart from mentioning in the Requirements section, is the above requirement mentioned anywhere in the official documentation with a proper explanation? Reason behind asking the question: We are planning to use Mongock for MongoDB Database Migration, we may not always want to use ReplicaSets or replication for MongoDB |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 3 replies
-
|
Hello @Rachit-zymr , first, thanks for using Mongock. Let me explain a couple of things first
In this case that example uses MongoDB transactions and that requires replicaSets. But that requirement doesn't come from Mongock, but from MongoDB itself. I hope you find this helpful. Thanks |
Beta Was this translation helpful? Give feedback.
Hello @Rachit-zymr ,
first, thanks for using Mongock.
Let me explain a couple of things first
That document you mention is only referring to that example. It's not applicable to Mongock in general. For official documentation, please go to this link
Mongock doesn't force you to use replicaSets. Mongock is happy as long as MongoDB is happy 😄
In this case that example uses MongoDB transactions and that requires replicaSets. But that requirement doesn't come from Mongock, but from MongoDB itself.
I hope you find this helpful.
If you have any other question, please don't hesitate to raise a discussion or issue.
Thanks