126: James Long - Building Distributed Local-First JavaScript Applications
Om avsnittet
Topics include:How do you keep data synchronized between two different clients when all of the data is stored locally instead of in the cloud?Understanding conflict-free replicated data types and how they help when building distributed applicationsDiving deep into how messages are replayed across clients when network access becomes available to achieve consistent stateUsing a Merkle tree to efficiently compare the message store from two clients to know which messages need to be synchronizedConsiderations you need to make when structuring your data to enable eventual consistencyWhat it might look like to move an app like Actual to an offline-first web app where you can't use things like SQLiteSponsors:DigitalOcean, get your free $50 credit at do.co/fullstackCloudinary, sign up and get 300,000 images/videos, 10GB of storage and 20GB of monthly bandwidth for freeLinks:ActualElectronConflict-free replicated data type (CRDT)Hybrid logical clockMerkle tree