24 ms·
This is a cool approach. It reminds me of statebox by mochimedia: https://github.com/mochi/statebox https://github.com/mochi/statebox. If I'm understanding cor
by aboodman 4y ago
This is a cool approach. It reminds me of statebox by mochimedia: https://github.com/mochi/statebox https://github.com/mochi/statebox.
If I'm understanding correctly, it requires the mutations to be deterministic in order for the nodes to converge.
Replicache (replicache.dev - my thing) takes a similar approach except it does not requires the mutations to be deterministic, which is very useful because it enables the mutations to reach out to other services, be authenticated, etc.
Both the idea here and Replicache's approach are closely related to game networking. If you are interested in these ideas, a really excellent set of content is: https://www.gabrielgambetta.com/client-server-game-architecture.html https://www.gabrielgambetta.com/client-server-game-architect....
If you are interested in how Replicache's sync protocol works and achieves transactional changes with server authority, it is described here: https://doc.replicache.dev/concepts/how-it-works https://doc.replicache.dev/concepts/how-it-works.