-
Notifications
You must be signed in to change notification settings - Fork 4
Proposal: Remove distributed-locking (for now) #9
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
Comments
I don't know at the moment anyone is working on wit definitions for distributed locking, so you are right about that. We know that it's important, but I agree with you for now we can drop it for wasi-cloud-core. Later we may discuss to bring it back. Would you like to open a PR to drop it? |
Related to this, I would like to have |
I believe that distributed locks are a critical building block for distributed systems. I also agree with you that if you have a key value store with proper semantics you can relatively easily build a distributed lock. We (mostly I) have delayed on this since I viewed it as a small surface interface. You are right to push for exclusion or movement. I will commit to opening the PR before the end of next week. If I do not, I will move to exclude the interface. WDYT? |
I'll take a look at that and let you know what I think |
Ok, I took some time to think some more about this and I still don't think this completely fits into wasi-cloud-core. As I thought about it, there were 2 main reasons why I don't think this fits (in order of importance):
What I would like to propose as an alternative (because I definitely consider this a useful set of functionality to have) is to have a |
I agree with the FaaS or FaaS like environment will find much less value in a distributed locking interface. Longer running applications, like a Kubernetes controller, would benefit from leader election (having a lease on a shared resource), and having a thread to periodically attempt to renew the lease. +1 for wasi-cloud-ext. |
That's a interesting question - should we strictly define |
I don't think the debate is around "core APIs for FaaS applications" as I think that is rather limiting. I think it is the core set of APIs common to a large majority of applications. Calling it "the stuff FaaS applications need" is somewhat misleading as well. I really do think of this as more of the most common of things used by 80%+ of applications |
I like the idea of keeping the world simple, until there is broad adoption. So +1 to this proposal. Whether |
Hey all! Since we're wanting to move towards finalizing these interfaces, I wanted to propose that we remove the distributed locking interface for now. Below is a (roughly ordered by importance) list of reasoning behind this:
Thoughts from others? Totally fine to open a PR, but thought it would be good to discuss first
The text was updated successfully, but these errors were encountered: