💾 Archived View for separateconcerns.com › 2020-06-19-quora-transparency-distributed.gmi captured on 2024-05-12 at 15:19:42. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-04-19)
-=-=-=-=-=-=-
published 2020-06-19
Yet another Quora answer [1], this time to with this question [2] which I answered on August 24, 2016:
Why is Transparency a major issue in distributed databases?
First, a few words about what "transparency" is. Transparency is a UX term [3] about the user not noticing that they are using a distributed system. We actually talk about transparencies in the plural, because there are several kinds of transparencies: fault transparency, location transparency, concurrency transparency, access transparency, etc. In my opinion, the choice of wording is not so good: when we talk about "transparency" we actually mean we hide things from the user, so "opacity" would be more logical. (The name comes from the fact that, if we replace a single node system by a distributed system, it will be transparent for the user, i.e. then will not notice it.)
The reason why transparency is important is usability. The more transparencies our system has, the less cognitive burden there is on the user. In other words: transparencies simplify the API of the system.
However, what transparencies we implement or not is a trade-off between that simplicity of API and things like flexibility, performance, and sometimes correctness. Years ago (when Object Oriented programming à la Java was booming) it was fashionable to abstract everything and make the user forget that they were using an actual distributed system. For instance, we had RPC everywhere, which kind of hid the network from the user. Since then we learnt that abstracting the network entirely is a bad idea [4].
On the other hand, exposing too many knobs to the user is dangerous as well: they might turn them without really understanding what they do and set the system on fire.
So, determining what to expose to the user and what to implement "transparently" is a crucial point in all distributed systems work, not only databases.
In databases in particular, conflict resolution is a contention point. Do we only provide the user with databases that are consistent, knowing that this severly impacts performance and availability? Do we let them tweak the parameters (the R and W parameters in a quorum system, for instance)? Do we tolerate divergence, detect it, inform the user and let them reconcile (à la CouchDB)? Do we provide the user with constrained datastructures that resolve conflicts by themselves (CRDTs)?
Some people have gone as far as saying that Distributed Systems Are a UX Problem [5] and I tend to agree with this line of reasoning.
1: https://blog.separateconcerns.com/2020-04-09-quora-lua-call.html
2: https://www.quora.com/Why-is-Transparency-a-major-issue-in-distributed-databases
3: https://en.wikipedia.org/wiki/Transparency_%28human%E2%80%93computer_interaction%29
4: http://www.rgoarchitects.com/Files/fallacies.pdf
5: https://bravenewgeek.com/distributed-systems-are-a-ux-problem/