Click here to Skip to main content
15,886,110 members
Articles / Database Development / Redis

Distributed Locking with Redlock.net

Rate me:
Please Sign up or sign in to vote.
4.71/5 (9 votes)
19 Mar 2023CPOL10 min read 20.3K   18  
How to perform distributed lock between multiple instances of a microservice with Redlock.Net
Sometimes, there is a need to ensure that only one instance of a microservice executes a piece of code. This might be done to ensure application correctness or to implement a poor man's failover. The article shows how to perform this with Redlock.Net library.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
Ukraine Ukraine
Team leader with 8 years of experience in the industry. Applying interest to a various range of topics such as .NET, Go, Typescript and software architecture.

Comments and Discussions