| --- | |
| title: Binary Protocol | |
| description: "Binary protocol 0.12.2: one wire format across TCP, QUIC and WebSocket, covering both the client and replica planes." | |
| --- | |
| Iggy speaks one binary protocol over its three binary transports: TCP, QUIC, and WebSocket. Commands, responses, data models, and status codes are the same on all of them. The HTTP transport is separate: it exposes JSON REST endpoints for a subset of these operations, listed in [server.http](https://github.com/apache/iggy/blob/server-0.10.0/core/server/server.http). | |
| Server 0.10.0 accepts client protocol 0.12.2. Clients send the packed protocol version during login. The server checks it against the accepted range before verifying credentials. See [Connection lifecycle](/docs/binary-protocol/connection-lifecycle). | |
| All multi-byte integers are **little-endian** unless stated otherwise. | |
| The same 256-byte header layout carries two traffic planes. The pages below cover both: | |
| - **Server ↔ SDK client**, everything a client sends or receives: | |
| - [Framing](/docs/binary-protocol/framing): the 256-byte headers every client-facing message rides in. | |
| - [Connection lifecycle](/docs/binary-protocol/connection-lifecycle): protocol versioning and the login-register handshake. | |
| - [Commands](/docs/binary-protocol/commands): the command codes and per-command payload layouts. | |
| - [Shared encodings](/docs/binary-protocol/encodings): primitives the payloads are built from. | |
| - [Message batches](/docs/binary-protocol/messages): the one layout messages travel and rest in. | |
| - **Server ↔ server**, the replica-to-replica consensus traffic that never appears on a client connection: | |
| - [Server-to-server](/docs/binary-protocol/cluster): prepare/ack replication, view changes, and state transfer. |