Skip to main content

Provides a distributed lock implementation based on Postgresql

Total Downloads
21.5M
21,472,590
Published
Jun 10, 2026
5mo ago

Get Started

dotnet add package DistributedLock.Postgres --version 1.3.1
ProductVersions
.NET
net8.0
.NET Standard
netstandard2.0netstandard2.1
Other
.NETFramework4.6.2

README

DistributedLock is a .NET library that provides robust and easy-to-use distributed mutexes, reader-writer locks, and semaphores based on a variety of underlying technologies.

With DistributedLock, synchronizing access to a region of code across multiple applications/machines is as simple as:

await using (await myDistributedLock.AcquireAsync())
{
	// I hold the lock here
}

Read the documentation here.

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.