this post was submitted on 20 Aug 2024
612 points (88.6% liked)

Showerthoughts

29172 readers
189 users here now

A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. The best ones are thoughts that many people can relate to and they find something funny or interesting in regular stuff.

Rules

founded 1 year ago
MODERATORS
 

It sounds way less offensive to those who decry the original terminology's problematic roots but still keeps its meaning intact.

you are viewing a single comment's thread
view the rest of the comments
[–] Semi_Hemi_Demigod@lemmy.world 27 points 3 weeks ago (7 children)

I've switched over to using primary/replica for database stuff because it's more accurate. The replicas don't always behave themselves so calling them "slaves" implies a level of obedience to the "master" that they don't have.

[–] dragonlobster@programming.dev 3 points 3 weeks ago (4 children)

For a distributed database there is also fragmentation/sharing though. In this case calling the nodes replicas is not accurate. I guess you would call these “shard” or “dsta” nodes.

You are right about the “slaves” not behaving, in fact they jump on the chance to become the “master” themselves once the current “master” goes down. Then there is the split-brain problem.

It's really more like a worker boss relationship, but I would hesitate to call database nodes “workers” because this one is usually used for a processing engine like Spark.

[–] Semi_Hemi_Demigod@lemmy.world 2 points 3 weeks ago (2 children)

A lot of distributed databases use the concept of quorum to prevent split-brain. Does that make them a kind of democracy?

[–] maniii@lemmy.world 1 points 3 weeks ago (1 children)

Usually quorum is maintained by using odd numbering so that when one node fails the next sequential node assumes the role allowing quorum-election breaking any ties.

[–] JackbyDev@programming.dev 1 points 3 weeks ago

It depends, there are too many different databases to say they all use that approach.

load more comments (1 replies)
load more comments (3 replies)