~/talk

Learning Ractor with Raft

Talkat RubyConf 2021 · 2021-11-08..11-10· [ruby]
github:mgates
slides:none on file

Builds a simple Raft implementation from scratch inside one Ruby process using Ractor, creating five Ractors that elect a leader, append and replicate an append-only log, and survive leader exit by reelecting a new leader; demo shows replicated data across nodes and successful failover. Uses Ractor inbox ordering, move ownership and deep copy semantics, and receive filters; skips durable disk commits, strict log-matching checks, and network validation so correctness is demonstrated but not production-ready.

AI-written summary · about

  1. 0:00Start
  2. 0:43Background on Raptor and Draft
  3. 2:01Main Reactor
  4. 3:38Actor Model
  5. 7:22Caveats
  6. 10:41How Raft Elections Work
  7. 24:18Adding or Replacing Nodes
  8. 26:47Return Value
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.