~/talk

Distributed locks with Python and Redis

Talkat EuroPython 2015 · 2015-07-20..07-26· [python, databases]
links:none on file
slides:none on file

Implements production-ready distributed locking for a contact center: Python task manager (Twisted) coordinates workers and uses a single Redis instance as the locks server. Claims a working Redis strings + WATCH/MULTI/EXEC mutex for worker busy/idle state, a list-based semaphore with RPUSH/BRPOP to allow N simultaneous tasks, and a Lua script for atomic release and length return to avoid race conditions; warns against blocking calls inside MULTI/EXEC and stresses startup/restore procedures for consistency.

AI-written summary · about

  1. 0:00Introduction
  2. 3:20The problem
  3. 14:22Warning
~/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.