Hacker News new | ask | show | jobs
by nesarkvechnep 1773 days ago
I'm interested how this stacks against Phoenix Channels + Presence.
1 comments

Yes, it would be great if someone with this experience can chime in, especially since Phoenix has CRDTs built-in.
Replicache's creator Aaron has a pretty good Twitter thread explaining the difference among Replicache, WebSocket and (classic) CRDTs. I will summarize briefly here:

- WebSocket (and Phoenix Channel) is just a communication method. To maintain consistency and resolve conflict, you need something like Replicache.

- CRDTs are more suitable for p2p scenario while Replicache works better for client-server apps.

- Phoenix's Presence is built with CRDT but it's just a single feature, not a general CRDT toolkit.

The thread: https://twitter.com/aboodman/status/1410441402366922762

Also, a bit of the underlying plumbing here: https://twitter.com/aboodman/status/1323352541887754240