#client-server #storage #communication #serialization #schema #capnp #locust-db

locustdb-serialization

Serialization formats used by LocustDB for peristent storage and client/server communication

2 releases

0.2.1 May 12, 2024
0.2.0 May 5, 2024

#1165 in Encoding

Download history 9/week @ 2024-05-23 3/week @ 2024-05-30 6/week @ 2024-06-06 5/week @ 2024-06-13 1/week @ 2024-06-20 5/week @ 2024-06-27 30/week @ 2024-07-04 5/week @ 2024-07-25 2/week @ 2024-08-01

81 downloads per month
Used in locustdb

Custom license

500KB
10K SLoC

LocustDB Serialization

Util crate that defines Cap'n Proto schema and serialization/deserialization logic for data structures used for persistent storage and client-server communication in LocustDB.

To regenerate the Cap'n Proto definitions, follow this process:

  1. [Install the Cap'n Proto CLI tool][install-capnproto]
  2. cargo install capnpc
  3. capnp compile -orust:src --src-prefix=schemas schemas/{dbmeta,partition_segment,wal_segment,api}.capnp

Dependencies

~1.5–2MB
~48K SLoC