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

#954 in Encoding

Download history 188/week @ 2024-05-03 106/week @ 2024-05-10 20/week @ 2024-05-17

314 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.6–2.2MB
~50K SLoC