Re:Distributed locking with Postgres advisory locks
by remram on Saturday January 22, 2022 @02:43PM
(#30040129)
Those are not distributed. Implementing distributed X by adding a central X is a bit dishonest.
[ Parent
| on HN ]
Re:Distributed locking with Postgres advisory locks
by macintux on Sunday January 23, 2022 @09:45PM
(#30053119)
“Locking distributed systems with” would seem a more accurate title than “Distributed locking with”, but I don’t know that I’d go so far as to call it dishonest, even a bit.
Re:Distributed locking with Postgres advisory locks
by mianos on Monday January 24, 2022 @01:28AM
(#30054270)
I could not have said this better. This is not distributed in the modern usage.
That said, I have used this in production and it works well up to a very respectable scale if you don't mind the central nature and already have a connection to postgres.
I would use Hashicorp Consul for this these days.