jlongster/crdt-example-app
소개
하이브리드 논리 시계를 사용해 CRDT를 완전히 구현하고, 이를 사용하는 데모 앱을 제공합니다
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalThis is a demo app used for my dotJS 2019 talk "CRDTs for Mortals"
Slides here: https://jlongster.com/s/dotjs-crdt-slides.pdf
View this app here: https://crdt.jlongster.com
It contains a full implementation of hybrid logical clocks to generate timestamp for causal ordering of messages. Using these timestamps, CRDTs can be easily used to change local data that also syncs to multiple devices. This also contains an implementation of a merkle tree to check consistency of the data to make sure all clients are in sync.
It provides a server to store and retrieve messages, so that clients don't have to connect peer-to-peer.
The entire implementation is tiny, but provides a robust mechanism for writing distributed apps:
- Server: 132 lines of JS
- Client: 639 lines of JS
(This does not include main.js in the client which is the implementation of the app. This is just showing the tiny size of everything needed to build an app)
Links:
- Actual: https://actualbudget.com/
- Hybrid logical clocks: https://cse.buffalo.edu/tech-reports/2014-04.pdf
- CRDTs: https://bit.ly/2DMk0AD
- Live app: https://crdt.jlongster.com/
관련 프로젝트 살펴보기
불러오는 중…