CRDTs and Y.js

Chris Coyier Chris Coyier on

Realtime applications (or games!), where multiple users are working at once and the state of the app needs to be in sync with each other and persisted, is more and more a common need and expected feature. But it’s not simple. There are products to help (PouchDB for data and Ably for messaging come to mind), but sometimes you need to be handling the core technologies yourself. Often the core technology of syncing is CRDTs (Conflict Free Replicated Data) which help data become “eventually consistent” between sources. There is a nice library that helps with this, still at a pretty low level: Yjs. I say all this to point out two nice resources I saw recently:

  1. A Gentle Introduction to CRDTs
  2. Learn Yjs

I suspect there will be more and more work in this area over time.

Need front-end development training?

Frontend Masters logo

Frontend Masters is the best place to grow in your career as a developer. We have courses on all the most important front-end technologies and beyond, from React to CSS, to backend with Node.js and Full Stack.

7-Day Free Trial

Leave a Reply

Your email address will not be published. Required fields are marked *

Did you know?

Frontend Masters Donates to open source projects. $363,806 contributed to date.