Closed agritheory closed 2 weeks ago
ACID Files does not seem to be maintained. Let's look at Filelock instead
ACID Files does not seem to be maintained. Let's look at Filelock instead
@agritheory I think we can use this frappe has https://github.com/frappe/frappe/blob/develop/frappe/utils/synchronization.py#L18 this seems like a wrapper around filelock.
@MyuddinKhatri Perfect, let's use that.
It is likely that multiple workers or processes will want to access
demand.db
at the same time. Multiple reads should be fine, multiple write should not. Using an ACID compliant file handler like ACID files should be a reasonable solution to this that allows us to avoid a DBMS layer.For discussion sake, I think it would be appropriate to mention network-friendly implementations of this idea.