News for hackers. Stuff that matters.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by eatonphil on Monday October 03, 2022 @02:41PM (#33071856)
I've been working through a basic implementation over the weekend [0] in Go. I am skipping dynamic cluster management and log compaction/snapshots. I mostly got leader election working and the basics of log replication. But it's not yet correct because nodes that are down when new messages come in are not correctly brought up to date. :D Still working through issues. When it's less buggy I'll write a post.

If you haven't read the paper, just try it out [1]! It's pretty approachable as far as these things go. It even includes its own cheatsheet inside the paper at Figure 2 (page 4).

[0] https://twitter.com/phil_eaton/status/1576281031367221249

[1] https://raft.github.io/raft.pdf

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by AtNightWeCode on Monday October 03, 2022 @03:34PM (#33072529)
I believe Hashicorp has an OSS GO implementation of raft if I remember correctly.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by eatonphil on Monday October 03, 2022 @03:36PM (#33072557)
Yup! etcd [0] and hashicorp [1] have Raft libraries for Go. I've written about using the hashicorp one before [2, 3].

[0] https://pkg.go.dev/go.etcd.io/etcd/raft/v3

[1] https://github.com/hashicorp/raft

[2] https://notes.eatonphil.com/distributed-postgres.html

[3] https://notes.eatonphil.com/minimal-key-value-store-with-has...

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by candiddevmike on Monday October 03, 2022 @03:53PM (#33072763)
Why did you pick HC raft over etcd?
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by withinboredom on Tuesday October 04, 2022 @04:22AM (#33077743)
Etcd will spam your logs on quorum loss. It can easily fill your disk before the node comes back online or you wake up to fix it. Etcd logging is playing with fire. Just be careful.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by eatonphil on Monday October 03, 2022 @03:53PM (#33072775)
The Hashicorp one came up first in a google search months ago. So, basically no reason.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by asadawadia on Monday October 03, 2022 @08:13PM (#33075302)
love it
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by eatonphil on Tuesday October 04, 2022 @07:54AM (#33079095)
To defend etcd's implementation though, it is what cockroachdb uses.

https://github.com/cockroachdb/cockroach/blob/master/go.mod#...

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by didip on Monday October 03, 2022 @09:15PM (#33075724)
IMHO, the code is easier to follow than etcd's.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by skyde on Tuesday October 04, 2022 @11:27AM (#33081733)
yes it’s more modular with clear contract between the parts
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by douglee650 on Monday October 03, 2022 @03:08PM (#33072216)
Ok, FYI but “fetch” was relegated in the movie to irrelevance, ie, “stop trying to make fetch a thing.” So for the “fetch”-aware audience, the title reads, “Raft Is *Irrelevant*: … Explained Through Mean Girls”
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by paulgb on Monday October 03, 2022 @03:52PM (#33072742)
You're confusing the irrelevance of the word with its meaning. The word fetch did not catch on (which was the joke), but the word did not mean irrelevant, it meant “cool” or something in that vein.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by Hayvok on Monday October 03, 2022 @03:57PM (#33072825)
yes, I believe the phrase that the young lady kept using was, "that is so fetch" with positive connotations.

Rachel McAdams finally snapped at her that the word was not going to catch on and that she should just stop. Tears were then shed.

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by _0ffh on Monday October 03, 2022 @08:42PM (#33075463)
Today, we would call it a failed attempt to force a meme.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by eatonphil on Monday October 03, 2022 @04:30PM (#33073254)
I don't think they're saying the word fetch means irrelevance. They're saying fetch is something irrelevant. :)
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by magnusmundus on Monday October 03, 2022 @06:09PM (#33074398)
> for the “fetch”-aware audience, the title reads, “Raft Is *Irrelevant* [...]”

No, they're claiming that "fetch" is interchangeable with "irrelevant" according to the movie.

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by deznu on Monday October 03, 2022 @08:39PM (#33075452)
"You love him, and he totally complimented you. That is so fetch."

This is clearly not stating that the actions by both parties are "irrelevant", it's clearly slang for "cool" or "awesome". The movie was alluding to the word itself being irrelevant in its use, not the word meaning or being synonymous with "irrelevant". I hope this cleared things up for you.

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by btown on Monday October 03, 2022 @05:06PM (#33073715)
But the entire premise of the scene https://www.youtube.com/watch?v=Pubd-spHN-0 is that the act of telling someone to "stop trying to make fetch happen" is toxic and mean-spirited, and if someone actually does want to make "fetch" happen, they should be encouraged to do so.

And if your "fetch" is the normalization of Mean Girls as a valid lede for didactic technical discourse, then you go Glen Coco.

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by drewbug01 on Monday October 03, 2022 @06:34PM (#33074594)
This, in fact, is a delightful analysis and response. You go, Glen Coco. :)
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by fsckboy on Monday October 03, 2022 @04:35PM (#33073328)
My interpretation was that the author's unconscious was trying to tell him, "stop trying to make this analogy to Mean Girls happen, it's not going to happen." But that's my unconscious mind telling me to RTFA
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by warent on Monday October 03, 2022 @02:11PM (#33071411)
By the way, for anyone who hasn't seen Mean Girls yet, you definitely have to watch it.

I watched it with my girlfriend, just for her to enjoy, and was not expecting to enjoy it as much as I did. Now it's actually one of my favorite movies, plus growing up homeschooled it spoke to my soul on some deep levels. It's very well-written!

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by msoucy on Monday October 03, 2022 @03:32PM (#33072493)
It's honestly one of the most quotable movies I've ever seen. So many iconic lines - "She doesn't even go here", "It's October Third", the entire clique lunch room joke, "Get in loser we're going shopping", "I can't. I'm sick.", literally anything that Karen says...

The musical version also has some great songs like Meet The Plastics

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by daveslash on Monday October 03, 2022 @04:59PM (#33073627)
Re "It's honestly one of the most quotable movies I've ever seen."

When I read the title "Raft is so Fetch", I was going to come here to simply leave the comment "Strop Trying to make Fetch a thing!", without context ~ and then I read the rest of the title and realized it was supposed to be a Mean Girls reference.

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by nsxwolf on Monday October 03, 2022 @05:47PM (#33074158)
The quote is "Stop trying to make fetch happen", and the proudest moment of my entire career is using that line as a code comment in a completely appropriate situation.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by jaredwiener on Monday October 03, 2022 @06:19PM (#33074476)
fetch().catch()?
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by rcarr on Monday October 03, 2022 @05:12PM (#33073780)
Four for you glen coco, you go glen coco!
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by colpabar on Monday October 03, 2022 @02:39PM (#33071829)
Couldn't agree more. This movie has so many memorable lines.

In general, anything involving Tina Fey is great.

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by fsckboy on Monday October 03, 2022 @04:40PM (#33073381)
in general, Tina Fey overdoes Tina Fey, I wish she'd stop trying to make Tina Fey happen, but she is associated, like as a writer, with a lot of really funny stuff. edit: acting, Amy Poehler(sp?) really inhabits her comedic roles, whereas Tina Fey is always Tina Fey.

related to the overall thread (rather than directly to your comment), "chick flicks" are in general quite well made, or at least I find that formula far superior to the male equivalent of action films which have fewer meaningful standouts.

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by rubyist5eva on Monday October 03, 2022 @03:06PM (#33072190)
I'm a 40 year old man and Mean Girls is one of my favourite movies of all time, not even in a guilty-pleasure kind of way. I love it.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by hinkley on Monday October 03, 2022 @03:17PM (#33072306)
Every few years someone produces a movie in which the antagonist throws away an insult as they're walking toward the parking lot and I fully expect them to walk in front of a bus.

I'm half convinced that directors do this on purpose, as a fake-out homage to Mean Girls.

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by alfiedotwtf on Tuesday October 04, 2022 @01:35AM (#33076967)
Another 40 year old man here too, and yes I agree.

Now... pass me the marijuana tablets.

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by hinkley on Monday October 03, 2022 @03:15PM (#33072285)
"Oh my God, Karen, you can't just ask people why they're white."
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by yonaguska on Monday October 03, 2022 @03:24PM (#33072384)
Today is also October 3rd.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by mikrl on Monday October 03, 2022 @03:22PM (#33072364)
The Devil Wears Prada too.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by Havoc on Monday October 03, 2022 @05:20PM (#33073853)
Also the fact that the characters unsuccessful attempt to make fetch happen, made fetch happen is deliciously meta.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by orangechairs on Monday October 03, 2022 @01:51PM (#33071127)
A very happy October 3rd to all who celebrate.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by stop50 on Monday October 03, 2022 @01:57PM (#33071213)
Is it important outside of germany?
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by brabel on Monday October 03, 2022 @02:21PM (#33071553)
So funny how you can immediately see who's bothered to read the post by the questions they ask which have been answered in the post, in this case not only in text but with a gif as well :D.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by yazzku on Monday October 03, 2022 @06:39PM (#33074642)
LanternLight83 on the side there didn't just not read the post, he searched for what was being discussed to get the context. As opposed to, you know, clicking on the post and reading the first two sentences.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by LanternLight83 on Monday October 03, 2022 @02:12PM (#33071428)
Googled it, it's a Mean Girls thing, kinda wholesome to see such fandom around such an arbitrary date that was just mentioned
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by narrator on Monday October 03, 2022 @03:57PM (#33072824)
Along the same lines: Britney Spears' Guide to Semiconductor Physics http://britneyspears.ac/lasers.htm
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by lamontcg on Monday October 03, 2022 @09:32PM (#33075848)
Looks like routergod.com is down but archive.org has saved it...

Gunney Sgt. Hartman at CCNA Boot Camp

https://web.archive.org/web/20080213122747/http://www.router...

and lots more:

https://web.archive.org/web/20080213020500/http://www.router...

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by juunpp on Monday October 03, 2022 @09:50PM (#33075953)
Lol, this is hysterical, it's basically physics with Britney pictures along the way that barely relate.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by shafoshaf on Monday October 03, 2022 @02:49PM (#33071958)
>>When Regina shows up to lunch wearing sweatpants on a Monday she is dramatically booted from her role as leader of the Plastics

But, isn't she still part of the clique? Therefore, when Cady takes over as Queen Bee, there are now 4 in the clique and Cady will require 2/4 votes for consensus, which is the same as before (2/3). But if there is a third coup, it would then take 3/5 votes. That is unless Regina and Cady are kicked out as well as knocked down.

Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by squeaky-clean on Monday October 03, 2022 @02:59PM (#33072096)
Still part of the clique in sweat pants? Eugh, no way. She can sit with the art freaks.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by Aaronstotle on Monday October 03, 2022 @07:21PM (#33074959)
I wear a pink shirt every Wednesday so it's nice to see this culture appreciated here.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by hinkley on Monday October 03, 2022 @03:25PM (#33072408)
I feel like this article is missing an opportunity by not addressing the fact that Cady introduces destructive information into the system (the 'fact' of the diet bars that aren't) which the leader trusts implicitly without attempting to verify.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by NoWizards on Monday October 03, 2022 @03:55PM (#33072788)
missing another opportunity when she says she likes Aaron Samuels and girls consensus says NO, she cant
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by schainks on Monday October 03, 2022 @07:16PM (#33074931)
So this title means Raft will never catch on? Is that by design? Maybe I'm missing the joke.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by hyperific on Tuesday October 04, 2022 @12:29AM (#33076714)
What a great read! I came in knowing nothing about Raft and I came out chuckling and knowing enough about Raft to want to dive deeper. 4 for you Mikael Austin, you go Mikael Austin!
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by suprjami on Tuesday October 04, 2022 @07:17AM (#33078805)
You aren't supposed to post your own articles without a Show HN. See the rules about self promotion. Flagging.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by jeffbee on Monday October 03, 2022 @04:43PM (#33073427)
I feel like cute attempts to explain Raft should come with a huge disclaimer. Although Raft authors claim it is easier to understand, and there are various pop explanations of Raft which make it seem easy to understand, in studies Raft and Paxos understanding among students is about the same, with the great majority of students failing to understand either one. Importantly, students who say subjectively Raft is easier to understand than Paxos are less likely to understand Raft than students who say they are equally hard.
Re:Raft Is So Fetch: The Raft Consensus Algorithm Explained ... by dumbfounder on Monday October 03, 2022 @05:16PM (#33073816)
I feel like the fact that it's cute is the disclaimer.