mongoid-sequence
mongoid-sequence copied to clipboard
mongoid-sequence with a MongoDB replica set...
Is the consistency of mongoid-sequence guaranteed when operating with MongoDB configured as a replica set? I am trying to building a HA configuration with my rails app and MongoDB use mongoid-sequence to generate serial numbers for my records. Am I guaranteed that these sequence numbers will be unique across the replica set?
Thanks.... -abhas.
With replica set configuration you perform all your writes to only one instance, primary. So this values will be unique even with replication lag on secondaries.