~/talk

Implementing Raft Protocol by Coroutines and Ktor Framework

Talkat KotlinConf 2018 · 2018-10-03..10-05· [kotlin]
links:none on file
slides:none on file

Concrete Raft implementation using coroutines + Ktor and gRPC style RPCs, with randomized election timeouts, channels for state transitions, and a countdown latch for elections to stop parallel vote requests once a majority is reached. Implements appendEntries heartbeats with fixed-rate timers, retry logic for unreachable nodes, and in-memory key‑value store built on the replicated log. Demo runs on three to five nodes (majority = 3), shows leader election, log replication, and successful catch-up when a downed node restarts.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Agenda
  3. 2:38Why Coroutines
  4. 14:35Raft Explanation
  5. 20:11Raft Methods
  6. 20:51Raft Architecture
  7. 22:24Building Blocks
  8. 25:21State Transition
  9. 29:19Retry Logic
  10. 30:57Leader Election
  11. 34:57Timer
  12. 35:57Example
~/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.