tinyplex / tinysync Goto Github PK
View Code? Open in Web Editor NEWThis is a hacky place to practice CRDT and sync techniques for TinyBase v3
License: MIT License
This is a hacky place to practice CRDT and sync techniques for TinyBase v3
License: MIT License
prerequisite: every data store has a change-tree attached to it, which contains the store's full changes-data/operations.
addLeaf
, why is HLC splitted into 4 parts?{ time1: { time2: {counter: {clientId:changeObj} } } }
{ time: {counter: {clientId:changeObj} } }
? or why not split into more parts by add time3/time4 ?It seems crazy if one made a lot of changes, then every following sync needs to send a new change-tree containing all previous data?
I have an idea1 to use a central server and keep a change-tree there, then client just sends current change-operation/data instead of full tree . Then it's the server rather than the client to build the change-tree and return the minimal diff tree to the client.
after a good sleep, I have an idea2 to split every sync into 2 phases: sendMeta + sendChanges. In sendMeta, still send a change-tree but without change content. In sendChanges, minimal diff changes content will be sent.
Do you have any idea to solve this?
handleChange
, latestHlcsByCell
seems useless.Is It safe to remove it?
I think helia/json would compliment TinyBase as a P2P remote storage solution using IPFS. It's a relatively new implementation of IPFS for browsers and my initial testing looks good. It stores plain JSON and uses add
and get
methods, so should be possible to use with TinyBase save
and load
.
Thanks for a great project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.