Hacker News new | ask | show | jobs
by mrkeen 1341 days ago
A distributed database shouldn't violate SSOT because the different nodes will agree on the truth (which came from a single source: somewhere upstream, like a git repo). If they don't agree, something has gone really wrong (split brain scenario?)
1 comments

This doesn't quite answer the question, because you could say the same thing about UI code:

If you have your state distributed in an OOP-style GUI, the "am I checked" state of the checkbox should always correspond to the boolean value in the model, if it doesn't then something went wrong.

The point of SSOT is that you don't want to architect code such that there has to be more code designed to keep things in sync, because there's the possibility that that syncing code goes wrong. Distributed databases aren't exempt from that, we just have a high level of trust that the people who wrote the syncing code know what they're doing.