zimeon / ocfl-py

OCFL tools in Python
MIT License
20 stars 7 forks source link

concurrency/locking #28

Open bcail opened 4 years ago

bcail commented 4 years ago

Is there any support for protecting objects from conflicting concurrent requests in this package? Or is any planned?

zimeon commented 4 years ago

Certainly nothing in the code yet. I'd be interested in talking about this as a possibility. Perhaps a connector to a lock service that could have some simple default implementation (maybe using unix directory creation which would obviously only work for clients using the same lock filesystem). I can imagine a first stab for be object-level locks/checks could be: