~/talk

How to build distributed concurrency primitives

Talkat GeeCON 2024 · 2024-05-15..05-17· [distributed-systems, concurrency]
links:none on file
slides:none on file

Shows that wrapping local locks in RPC breaks: killed lock holders never release locks. Demonstrates heartbeats plus monotonic fenced lock tokens so resources reject stale holders, and explains why single-node lock servers must replicate state with Raft consensus into a replicated state machine. Uses Hazelcast examples (AtomicLong, AtomicReference, Semaphore, CountDownLatch) and a demo where restarting the server creates two owners unless replicated. Notes performance tradeoffs: server-side alter function beats client read-modify-write and locking can be ~3x slower in tests.

AI-written summary · about

  1. 0:00Introduction and background
  2. 11:25Naive distributed lock approach
  3. 13:58Heartbeat and lease problems
  4. 17:13Fenced lock concept
  5. 23:30Replicated log and consensus
  6. 37:03Hazelcast lock demonstration
  7. 37:28Avoiding locks when possible
  8. 43:42Key takeaways and summary
  9. 45:12Q&A session
~/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.