Skip to main content
Streams are raw byte sequences — the protocol does not impose message boundaries. For binary payloads where you need distinct messages (e.g. individual CRDT operations), Tonbo Stream defines a simple framing format:
[4-byte big-endian length][payload bytes]
Each append writes one framed item. Each read returns a concatenation of framed items that clients can parse incrementally. Streams using application/json don’t need this — JSON has its own delimiters.