Everything I know about distributed locks

Locking, often, isn’t a good idea, and trying to lock something in a distributed environment may be more dangerous. But sometimes, we need to keep this risk and try to use a distributed lock for two main reasons:

  • Efficiency: a lock can save our software from performing unuseful work more times than it is really needed, like triggering a timer twice.

--

--

--

Open-space invader, bug hunter and software writer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Repartition() VS Coalesce() in Spark

Testnet Rewards Program

JWT — Structure and Working

Python Programing

Creating a Docker LAMP (Linux, Apache, PHP & MySQL) Stack

Move WhatsApp Chats History To Telegram, New Telegram Update 7.4.0.

SQL Day 2- Filtering Rows

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Davide Cerbo

Davide Cerbo

Open-space invader, bug hunter and software writer

More from Medium

Why building as a microservice is actually cheaper in the long run.

The Challenges of Using OPA for Application Authorization

UniversalClient — One client for message brokers and NoSQL DBs

Saga Pattern