cdb

module
v0.0.0-...-3949d01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2016 License: Apache-2.0

README

CDB

CRDT database design exploration.

Demo instructions

The following instructions assume you have Go 1.5 (or above) and Node.js 4.3 (or above) installed.

Fetch and build the code:

export GOPATH=~/dev/go
mkdir -p ${GOPATH}/src/github.com/asadovsky
cd ${GOPATH}/src/github.com/asadovsky
git clone --recursive https://github.com/asadovsky/cdb.git
cd cdb
make build

Run two instances on one machine:

# Run these commands in two separate terminals, and open the printed URLs.
dist/demo -port=4001 -peer-addrs=localhost:4002
dist/demo -port=4002 -peer-addrs=localhost:4001

Or, run instances on two different machines:

# Run this command on Alice's machine.
dist/demo -port 4001 -loopback=false

# Run this command on Bob's machine, setting the -peer-addrs flag to Alice's
# network address.
dist/demo -port 4001 -loopback=false -peer-addrs=192.168.1.239:4001

Directories

Path Synopsis
dtypes/cregister
Package cregister defines CRegister, a simple last-one-wins CRDT value.
Package cregister defines CRegister, a simple last-one-wins CRDT value.
dtypes/cstring
Package cstring defines CString, an implementation of the Logoot CRDT, representing a sequence of characters.
Package cstring defines CString, an implementation of the Logoot CRDT, representing a sequence of characters.
dtypes/cvalue
Package cvalue defines the CValue interface and related things.
Package cvalue defines the CValue interface and related things.
dtypes/util
Package util defines various helper functions.
Package util defines various helper functions.
hub
Package hub implements the CDB server.
Package hub implements the CDB server.
store
Package store defines Store, a key-value CRDT store.
Package store defines Store, a key-value CRDT store.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL