#storage #communication #client-server #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

#1355 in Encoding


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–2.1MB
~48K SLoC