Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Allow providers who have the capability to acquire/release multiple locks simultaneously #298

Open

Description

@gliljas

I'm writing this as an issue, since I haven't really tinkered with the solution yet.

The idea really came from working on the Azure Table provider #288, which, in an AcquireAll scenario really could benefit from being able to acquire and release locks in batches.

It could be based on an interface that a provider can implement, specifying that "hey, I can do multi acquire myself (and have been configured to do so), you don't have to do it for me", which the AcquireAll extensions check for.

As mentioned, the Azure Table provider could probably do this quite well, but I think a few other providers could handle it well too.

Another use case would be pipelining, i.e. gather lock requests for a specified/calculated period and count, guard it with inprocess locks, and send a batch request instead of multiple single requests. The aggregation timeout would probably always be really short.

I was going to include lease renewal in this, but that's more of a provider internal thing, which could be done without adding to the API.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions