cliffmoon / dynomite

Open source dynamo clone written in Erlang.

This URL has Read+Write access

cliffmoon (author)
Mon Dec 01 00:03:40 -0800 2008
commit  e4338df42e33bd8dda2824099f9ab684bea6d079
tree    e7e716f110ea5a608f61d8c7ab25c42043529a08
parent  09869eb77c5fbb8f1548430817e232fc838dc440
dynomite / PROTOCOL
100644 37 lines (27 sloc) 0.528 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
The dynomite datastore protocol has two basic operations: get and put.
 
request:
get keylength key\n
 
responses:
fail reason\n
not_found\n
succ items ctx_length ctx (data_length data)+\n
 
request:
put keylength key ctx_length ctx data_length data\n
 
responses:
fail reason\n
succ n_of_servers_stored\n
 
request:
has keylength key\n
 
responses:
fail reason\n
yes n_of_servers_stored\n
no n_of_servers_stored\n
 
request:
del keylength key\n
 
responses:
fail reason\n
succ n_of_severs_deleted\n
 
request:
close\n
 
response:
close\n