OBSERVERTC / Codecs
Codecs
Choose JSON, protobuf, or deflate for stateful sample transport.
ObserveRTC codecs encode changes between successive ClientSample records. Choose JSON for readable messages, protobuf for its binary representation, or Deflate for structural deltas with dictionary coding and platform compression.
- 01A sample stream
Start with samples from one monitored client.
- 02Encode and transport
Use your chosen codec over a transport you control.
- 03Decoded samples
Restore complete samples before analysis.
Copyable ASCII version
[A sample stream]
Start with samples from one monitored client.
|
v
[Encode and transport]
Use your chosen codec over a transport you control.
|
v
[Decoded samples]
Restore complete samples before analysis.Protobuf Codec
Compact binary deltas with encoding and decoding in one package.
JSON Codec
Readable JSON deltas with zero runtime dependencies.
Deflate Codec
Dictionary-coded structural deltas with per-message platform compression.
Use one encoder and decoder per client stream. Preserve order and complete delivery; reset at reconnect or snapshot boundaries. Decode samples before passing them to Observer.
Integration boundaries
A codec compresses sample representation; it does not authenticate, deliver, or store telemetry. Each encoder/decoder maintains stream state, so do not share a single decoder between unrelated clients. Handle reconnects and missing messages according to the selected codec’s reset/snapshot contract.
Choose a format using your transport constraints and actual streams. Compression results documented in the codec pages describe their measured fixtures, not a guarantee for every deployment. Decode before passing samples to Observer.