Skip to main content

Overview

BlockDB’s WebSocket channel already delivers real-time EVM data with sub-150 ms latency. For latency-critical applications — high-frequency trading, co-located execution, or ultra-low-latency signal pipelines — JSON serialization overhead can become a bottleneck. Because the transport layer is already WebSocket, switching to Protocol Buffers (Protobuf) binary encoding requires no infrastructure change on either side. The same streams, the same subscription protocol, the same chain_id and dataset_id identifiers — with a binary payload instead of JSON.

Why Protobuf for HFT

Smaller payloads

Binary encoding typically reduces message size by 30-70% compared to JSON, reducing bandwidth and kernel buffer pressure at high throughput.

Faster deserialization

Protobuf deserialization is significantly faster than JSON parsing — measurable in microseconds per message at the volumes HFT systems process.

Schema-defined contracts

.proto definitions give you a typed, versioned contract for every stream payload — no runtime field discovery, no string parsing.

Availability

Protobuf encoding is available on request. To enable it for your account:
  1. Contact support@blockdb.io with the subject “Protobuf stream access”
  2. Specify the chain IDs and dataset IDs you need
  3. BlockDB will provide the .proto schema files and a binary-mode endpoint
Protobuf streams share the same subscription lifecycle as JSON WebSocket streams. See the WebSocket page for connection, authentication, and subscription details.

What Changes vs JSON WebSocket

JSON WebSocketProtobuf WebSocket
EncodingUTF-8 JSONBinary (Protobuf wire format)
Message sizeBaseline~30-70% smaller
DeserializationJSON parserGenerated Protobuf bindings
SchemaDocumented in data catalog.proto files provided by BlockDB
Transportwss://api.blockdb.io/v1/evm/Dedicated binary endpoint
Subscription protocolJSON subscribe / unsubscribeSame JSON control messages

Contact

To request Protobuf stream access or discuss throughput requirements for your HFT setup, reach out at support@blockdb.io.
Last modified on March 31, 2026