Topic: Distributed locking, between two containers? k8s.
Can such be done with help of CockroachDB?
I have understood that CockroachDB does not need locks: all DB operations are “locked” by other means.
We have different solution alternatives, but above one would help in one of those.
We could simply insert “lock” row to DB table which has unique index, in CockroachDB, but such row would need to be also cleaned up in case of problems.
Distributed locks can be achieved by other means also.