by emreb on 12/17/24, 8:16 PM with 8 comments
by paulgb on 12/18/24, 2:37 AM
> If we extend it further with a fairly simple distributed mutex mechanism, we can now persist and share state across any service which can access the Redis instance!
I’m curious to hear more about the approach you took here. Does the first server to open the document hold the mutex, or do servers only hold the mutex when briefly while they persist data?
(I’ll also shamelessly plug Y-Sweet, an open source Yjs server with persistence that I contribute to https://github.com/jamsocket/y-sweet)
by thoughtlede on 12/18/24, 7:53 AM
If anyone want to go down that rabbit hole: https://www.exhypothesi.com/clocks-and-causality/
by oDot on 12/18/24, 9:15 AM
I'll also commend the author's attempt at DIY! Even if your case does not require a custom solution, it's healthy to understand how your tools work.
[0] https://loro.dev