IEvangelist / azure-cosmos-dotnet-repository

Wraps the .NET SDK for Azure Cosmos DB abstracting away the complexity, exposing a simple CRUD-based repository pattern
https://ievangelist.github.io/azure-cosmos-dotnet-repository
MIT License
307 stars 91 forks source link

Distributed Locking (Lease Lock) #143

Open mumby0168 opened 2 years ago

mumby0168 commented 2 years ago

Is your feature request related to a problem? Please describe. It would be really great if the library could offer an opt-int repository that would allow a document to be inserted that could act as a lock maybe into something called a lease container. The library could abstract a nice and simple API over this.

Describe the solution you'd like Something that allows a distributed lock to be used with cosmos DB, with little effort from the user's side.

Describe alternatives you've considered Implementing this standalone, or maybe as a separate package.

Additional context There is some information on these here

PaulOst commented 2 years ago

Great idea, @mumby0168! We could use lease locks for sure.