Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there efficent binary formats like grpc which doesn't require a predefined schema?


Before you go down this rabbit hole I'd recommend quickly doing a POC microbenchmark, with a sample payload, against formats with schema to get an idea of why this isn't more popular:

- JSON (without schema) vs Protobuf (with schema)

- Msgpack (without schema, compressed) vs Protobuf (with schema)

- JSON + gzip or brotli encoding vs Protobuf + gzip or brotli

- JSON + gzip or brotli encoding vs Msgpack + gzip or brotli

Compression will erase a lot of the gains even with a schema-defined protocol, but if your goal is low CPU (just serialization) then msgpack is usually good enough.


Something like this? bsonspec.org




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: