logoalt Hacker News

er4hn10/01/20241 replyview on HN

Oh, this is interesting. Can you elaborate (or link to some post) about what sort of issues you run into? I find the concept of CRDTs to be very interesting, but if you still need a centralized server I question the value of them over OTs. I'd love to understand more about if this is a connectivity issue, a CRDT issue, or what.


Replies

paulgb10/01/2024

The main issue you run into is that the web is designed around client-server communication; you can do peer-to-peer communication in theory but because of NAT and firewalls, many of those end up not being peer to peer in the end.

Plus, if you want the data to persist so that two people can collaborate even if they are never online at the same time, you need a server anyway.

CRDTs as data structures support peer-to-peer, it’s just that in many use cases that aspect of CRDTs is not needed.

show 1 reply