gnmic icon indicating copy to clipboard operation
gnmic copied to clipboard

Feature request: NATS based locking

Open pobk opened this issue 4 months ago • 1 comments

Currently documentation mentions that only Consul is supported as the locker (although I see source for Redis and k8s).

This would be a relatively simple addition to make to enable NATS based locking possible.

Given that the NATS client requirement is already built into the image, would it be possible to implement a locker based on NATS JetStream KVStore functions. Although it doesn't have a specific locking mechanism, this can be done using either something like https://github.com/metal-toolbox/addonx or using a purpose built implementation.

There's a discussion around distributed locking on https://github.com/nats-io/nats-server/discussions/4803

If there's interest in this, I may be able to work on it.

~ P

pobk avatar Aug 18 '25 13:08 pobk

I think it will be useful to have a NATS based locker. It would be great if you could work on it.

karimra avatar Sep 11 '25 18:09 karimra