How to use a distributed lock in a .NET application

preview_player
Показать описание
Within this tutorial we will:
-Use the DistributedLock library (link below)
-Talk about use cases for a distributed lock / mutex
-Use the file system and a Postgres database as different lock provider

The example code can be found here:

The used library can be found here:
Рекомендации по теме
Комментарии
Автор

Great Library, thanks a lot. What is the locking mechanism that you are ensuring locking in Postgresql?
I just saw the code; really nice, and great job. Looks like it uses some internals from Postgresql. I'm wondering if it's ok with PostgreSQL CITUS ... which is used by COSMOS Db in Azure

dnoob
welcome to shbcf.ru