1.2.1 • Published 4 years ago

@asmartbear/crdt v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

CRDTs (State-Based)

Conflict-free, Replicatable Data Types (CRDTs) are data structures that make it possible to achieve eventual consistency through sharing data, peer-to-peer or via central service.

Among the many types of CRDT, each with different advantages and drawbacks, this library implements a species that are state-based (as opposed to operator-based), and require no orchestration whatsoever: No version vectors, no ordering requirements, no operation queues, no central server, no replica join/leave.

The benefits are that data can safely be synchronized under any conditions -- states out of temporal order, peer-to-peer with no server, client-side encrypted, offline with changes even for years.

The drawbacks are that (most of) these data structures tend to accumulate cruft as they are modified, causing them to grow in storage requirements, and then getting slow to use.

Because these data structures are so flexible, they can be used in any multi-replica environment, which means they can also be a complement to other systems. That is, when these structures have acceptable performance, then they are great to use.

Usage

Use through npm, or get the source from Github.

MaxRegister

...