https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileLock.html
This file-locking API is intended to map directly to the native locking facility of the underlying operating system. Thus the locks held on a file should be visible to all programs that have access to the file, regardless of the language in which those programs are written.
Thanks, I’ll try the FileLock again. I tried it before, but I thought it didn’t work properly across processes.
Interesting. So far concurrency semantics of the replikativ libraries where done inside the JVM, konserve does not support safe multi-process write access yet.
Cool. I’ve got this figured out now with clj-kondo using FileLock
it’s pretty easy actually to lock a whole dir
Ok. Feel free to send a link to the soure code where you do it when you are ready. I would transfer it to the JVM filestore.
https://github.com/borkdude/clj-kondo/blob/master/src/clj_kondo/impl/cache.clj#L30
We integrated the latest changes of the datascript code base into datahike and released it as a beta version 0.2.0-beta
. Feel free to test and comment.