Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Protocols

Xylem supports multiple application protocols for different types of RPC workloads.

Supported Protocols

  • Redis - Redis protocol for key-value operations
  • HTTP - HTTP/1.1 protocol for web services
  • HTTP/2 - Cleartext HTTP/2 with prior knowledge (h2c)
  • gRPC - gRPC unary calls with raw protobuf request messages
  • Memcached - Memcached protocol for caching
  • DNS - DNS queries over TCP (RFC 7766 framing) or UDP
  • NVMe/TCP - NVM reads and writes against an NVMe over Fabrics target
  • ClickHouse - SQL queries over the ClickHouse native TCP protocol

Protocol Selection

Specify the protocol for each traffic group in your TOML profile configuration:

[[traffic_groups]]
name = "main"
protocol = "redis"
target = "127.0.0.1:6379"
# ...

Protocol Architecture

All protocols in Xylem implement a common interface that provides:

  1. Request Generation - Convert logical operations to wire format
  2. Response Parsing - Parse responses from the server
  3. State Management - Track request-response correlation
  4. Error Handling - Detect and report protocol errors

See Also