Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remote lock #25

Closed
dfarr opened this issue Jan 18, 2024 · 0 comments
Closed

Add remote lock #25

dfarr opened this issue Jan 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dfarr
Copy link
Member

dfarr commented Jan 18, 2024

See the api specification here.

We will need to extend our ILock interface to include a timeout parameter on the tryAcquire function. This parameter can simply be ignored in the local lock implementation.

Unlike local locks, remote locks will require a heartbeat. The heartbeat can be implemented behind the ILock interface in a control loop, let's just make sure that the heartbeat interval is (well) smaller than the timeout interval.

@dfarr dfarr added the enhancement New feature or request label Jan 18, 2024
@vaibhawvipul vaibhawvipul self-assigned this Jan 19, 2024
@dfarr dfarr closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants