abp icon indicating copy to clipboard operation
abp copied to clipboard

Key-based hybrid/distributed locking

Open MarkCiliaVincenti opened this issue 1 month ago • 1 comments

Rather than locking using a SemaphoreSlim for all caches, we can lock more intelligently, per cache key, using pooled semaphores. Uses a 3rd party library but does not introduce a new dependency to the whole project.

MarkCiliaVincenti avatar Nov 18 '25 13:11 MarkCiliaVincenti

@maliming

MarkCiliaVincenti avatar Dec 04 '25 08:12 MarkCiliaVincenti

hi @MarkCiliaVincenti

We don't want to add a new package dependency. SemaphoreSlim is enough for us.

Thanks for your contribution, 👍

maliming avatar Dec 15 '25 07:12 maliming

hi @MarkCiliaVincenti

We don't want to add a new package dependency. SemaphoreSlim is enough for us.

Thanks for your contribution, 👍

@maliming this dependency is already part of ABP.

MarkCiliaVincenti avatar Dec 15 '25 08:12 MarkCiliaVincenti