AsyncKeyedLock

An asynchronous .NET Standard 2.0 library that allows you to lock based on a key (keyed semaphores), limiting concurrent threads sharing the same key to a specified number, with optional pooling for reducing memory allocations. (by MarkCiliaVincenti)

AsyncKeyedLock Alternatives

Similar projects and alternatives to AsyncKeyedLock based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better AsyncKeyedLock alternative or higher similarity.

AsyncKeyedLock reviews and mentions

Posts with mentions or reviews of AsyncKeyedLock. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-13.
  • AsyncKeyedLock: a library for locking based on a key
    3 projects | /r/csharp | 13 Feb 2023
    They're in the wiki at https://github.com/MarkCiliaVincenti/AsyncKeyedLock/wiki
  • Async/Multi Thread Design Question
    1 project | /r/csharp | 19 Jan 2023
    You can take a look at AsyncKeyedLock, which will lock code according to the key it is given. The key you use can be anything, but should be unique to the mailbox.
  • SemaphoreSlim locking based on a key
    3 projects | /r/dotnet | 20 Nov 2022
    Suppose you were processing financial transactions, but while working on one account you wouldn't want to concurrently process a transaction for the same account. Of course, you could just add a normal lock, but then you can only process one transaction at a time. If you're processing a transaction for account A, you may want to also be processing a separate transaction for account B. I have written a library called `AsyncKeyedLock` at https://github.com/MarkCiliaVincenti/AsyncKeyedLock to tackle this common problem. I had previously posted about it at https://www.reddit.com/r/dotnet/comments/y742i7/keyed_semaphore_locks/ and took a lot of feedback on board and completely rewritten it.
  • Keyed semaphore locks
    8 projects | /r/dotnet | 18 Oct 2022
    I've updated the library to version 3.2.0 and updated the benchmarks using BenchmarkDotNet.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 1 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic AsyncKeyedLock repo stats
6
135
8.7
3 days ago

MarkCiliaVincenti/AsyncKeyedLock is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of AsyncKeyedLock is C#.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com