~/talk

Scaling Redis writes with cluster mode

Talkat RubyConf AU 2024 · 2024-04-11..04-12· [databases, ruby]
slides:none on file

Zendesk migrates a write‑heavy workload to Redis Cluster, hits cross‑slot pipelining and transaction failures, and fixes them by upgrading to redis gem v5 and contributing code into redis-cluster-client gem (multiple small PRs plus a temporary fork deployed). The changes add cross‑slot pipelining, proper WATCH/EXEC behavior for transactions, and connection/retry fixes; production tests show stable scaling across added shards and a ~3–4 ms P99 write latency improvement.

AI-written summary · about

  1. 0:00Introduction
  2. 3:56Redis deployment options
  3. 7:05Sentinel and scaling limits
  4. 9:12Cluster Mode for writes
  5. 13:09Analyzing scaling incident
  6. 17:45Fixing cross-slot errors
  7. 20:13Transactions in cluster mode
  8. 23:43Contributing to Redis gem
  9. 28:38Open source lessons
  10. 32:10Key takeaways and next steps
~/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.