Distributed Locking and Java

by | Sep 23, 2021 | Voxxed Days Romania 2021

Rafal Leszko is the Tech Lead of the Cloud-Native Team at Hazelcast, author of the book “Continuous Delivery with Docker and Jenkins”, trainer, and conference speaker. He specializes in Java development, Cloud environments, and Continuous Delivery. A former employee in a number of companies and scientific organizations: Google, CERN, AGH University, and more. Website: rafalleszko.com

Some say that there is no such thing as “distributed lock”. Still, sooner or later, you’d encounter a problem that only one of your application replicas may execute the given operation at the given time. How to do it right and safely using Java?

In this session I’ll present the following aspects of distributed locking:
– using distributed locking libraries (Redis, Hazelcast, Zookeeper)
– optimistic vs pessimistic locking
– making locking safe with fencing
– split-brain issue and the rescue with consensus algorithms
– real-life use-cases for distributed locking