News for hackers. Stuff that matters.
Re:Everything You Know About MongoDB Is Wrong by rubiquity on Thursday November 26, 2020 @12:26AM (#25217136)
Sequential Consistency is the name for this model. Writes don’t get lost but it is weaker than linearizability because you can read after a commit and not get the latest value but eventually (not the same eventual as eventual consistency) you will. Typically data systems provide this to optimize for read scale out, otherwise all reads have to go to the leader.

In “eventual consistency” you could read the committed value at some time, no value, or another committed value depending on the exact implementation. It’s a much, much weaker consistency model than Sequential Consistency and Session/Causal Consistency is the closest you can even get to sniffing a stricter model.

I had a longer comment about this new page and MongoDB as a whole but I’ll just swallow my words. They know what they’ve done and don’t really care.

Re:Everything You Know About MongoDB Is Wrong by pritambaral on Thursday November 26, 2020 @12:52AM (#25217260)
> Sequential Consistency is the name for this model. Writes don’t get lost but ...

Writes can get lost if the primary dies and the secondary is promoted in the meanwhile.

Re:Everything You Know About MongoDB Is Wrong by rubiquity on Thursday November 26, 2020 @12:30PM (#25221945)
Yes but this is dependent upon the specific replication protocol. Primary-Backup has this problem but Majority Quorums and Chain Replication do not.
Re:Everything You Know About MongoDB Is Wrong by pritambaral on Thursday November 26, 2020 @01:17PM (#25222308)
The parent is talking specifically about 'Sequential Consistency'.
Re:Everything You Know About MongoDB Is Wrong by rubiquity on Thursday November 26, 2020 @01:47PM (#25222588)
My point is that Sequential Consistency isn’t a replication protocol, it’s a consistency model that you can have under various different replication protocols.