You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow providers who have the capability to acquire/release multiple locks simultaneously #298
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