News for hackers. Stuff that matters.
Re:Write libraries instead of services, where possible by linkdd on Tuesday March 09, 2021 @07:12PM (#26406221)
Horde uses a CRDT[1] (Conflict-Free Replicated Data Type) to provide a distributed Supervisor/Registry, this allows you to run an OTP supervision tree only once in your cluster, with automatic takeover. Basically, you run your supervisor on each nodes, but only one will run it (thanks to the CRDT).

I find it very useful because "Distributed OTP Application" are a pain IMHO (they must be started during the boot of the BEAM).

[1] - https://en.wikipedia.org/wiki/Conflict-free_replicated_data_...

Re:Write libraries instead of services, where possible by cultofmetatron on Tuesday March 09, 2021 @07:23PM (#26406296)
wow thankyou! this is actually handles a usecase we're trying to solve in an upcoming sprint. (each tenant needs to maintain a persistent websocket connection to a third party api but though us) I was trying to use registry to do it but was was wondering how I'd scale it once it got big enough.