I wanted to confirm the differences between PeristTo and ReplicateTo since they sound kind of similar and the docs aren’t entirely clear from what I’ve read.
ReplicateTo seems mostly straight forward. A given document only has a single “master” node so this setting specifies that x number of other nodes must also replicate the document.
PesistTo is what I’m a bit vauge on since I’m not sure what "persist’ means. Obviously it can’t simply mean that the document is stored on those nodes, because that’s what the ReplicateTo setting appears to refer to. Therefore I assume that it references the difference between having the document stored in RAM or Disk. Does the PersistTo setting mean specifically that the given number of nodes don’t just have the document stored in their memory, but that they have also stored it on their disk as well?
persistedto … will not return untill it writes to memory and to disk.
replicateto – will return when the number of repilca have been created.
Persist to at least four nodes including Master.
Persist to the Master.
ONE implies MASTER.
Persist to at least three nodes including Master.
Persist to at least two nodes including Master.
Don’t wait for persistence on any nodes.
I would assume this should work like StackOverflow where you comment if you just need to clarify the question, but you answer if you are actually answering what was asked. Otherwise, the question still shows as having zero answers on the question list and I can’t upvote your answer as helpful.