PyCon LT 2022

RedLock a smart lock for distributed systems
2022-05-26 , Python Room

Locking could be done in many different ways, some of them are quite heavy (slow), others can be dangerous (deadlocks), in this session we will go through some simple ways of locking a resource and profile the different approaches.

We will go through the algorithm of RedLock which could be implemented with many others storage solutions, we will see pros and cons and if time allows also its implementation with multiple Redis instances.

For the demo Django and Redis will be used and to profile the http calls locust will be used.


Redis can be much more than a cache, one of the things that you can easily do with it is have locks to synchronise your instances in a very lightweight manner


What topics define your talk the best?

python, open source, web dev

Worked with python for the last 7 years, from task automation to computer vision and IoT, ending in backend development.

Now I work @ Convious as a senior backend developer.
Maintainer of django-redis.

I like simple things, that's maybe why I code in python.