Wire protocols overview
This section documents QuestDB's wire protocols at the byte-on-the-wire level for client implementers — engineers building a new QuestDB client from scratch. End users should see the language client guides and the connect string reference.
QWP — QuestDB Wire Protocol
QWP is QuestDB's native wire protocol for both ingest and query traffic. The specifications below are normative — if a client's behaviour conflicts with a spec, the spec wins.
| Protocol | Transport | Purpose |
|---|---|---|
| QWP Ingress (WebSocket) | WebSocket | Columnar binary ingest with optional store-and-forward |
| QWP Egress (WebSocket) | WebSocket | Streaming SQL query results |
Versioning
Ingress and egress negotiate independently during the WebSocket upgrade. The
client advertises its maximum in X-QWP-Max-Version, and the server returns
the selected version in X-QWP-Version. Ingress uses version 1. Egress
supports versions 1 and 3, skipping the retired version 2. Only version 3 can
carry INTERVAL and untyped NULL result columns. See
egress version negotiation
for the browser URL parameter and compatibility with older servers.
Reference implementation
The reference client implementation is the Java client
(java-questdb-client).
Each protocol page below pins the reference-implementation commit that matches
its documented version.
Source specifications
The canonical specs live in the QuestDB Enterprise repository under
docs/qwp/. The pages in this section are the public expression of those
specs; the specs themselves remain the source of truth.