.Net Core 3.1, Redis, DistributedCancellation, DistributedLocking , Polly
This projects is a sample of distributed cancellation usage. The study case is ; We have a remove device that we can send commands (in my case its turn on , hibernate, sleep , shutdown ) and we want these commands to be executed without redundant calls. Distributed cancellation uses redis to acquire a lock and cancel other calls with same key to execute only single command per time.
- .Net Core
- .Net Core >= 3.1
- Redis
To start the application in development mode, run:
dotnet build
cd src\DistributedCancellationExample.Console
dotnet run
Application will be showing the logs: