-
Notifications
You must be signed in to change notification settings - Fork 4
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
fs-atomic-storage
: Integrate fs-atomic-versions
with fs-storage
#3
Comments
Crate Basically, any dependency on |
fs-storage
: Port atomic files from arklib
This thing should be done after these 3 are completed: JNI probably be done after atomics, because I'd expect some API change: |
We can also look at the atomic versioning not only as a mechanism preventing dirty writes, but also as an update discovery mechanism.
Monoid or CRDT can help us here. It seems that we're going to use them anyway. |
One more consideration: we want to use storages for caching, too. I don't think it makes sense to version cache items⏤we just refer to them by immutable key and overwrite any with new version when needed. How to implement caching nicely if we adopt atomic versioning for storages? Options:
|
The ark-rust repo already has a crate called |
Here, we need to create experimental version of Let's call it |
fs-storage
: Port atomic files from arklibfs-atomic-storage
: Integrate fs-atomic-versions
with fs-storage
Move atomic files abstraction from
arklib
toark-rust
, as separate module with its own Cargo.tomlUse it in the storage component and in ark-cli project.
Most likely, it won't need JNI later.
The text was updated successfully, but these errors were encountered: