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:
- Request Generation - Convert logical operations to wire format
- Response Parsing - Parse responses from the server
- State Management - Track request-response correlation
- Error Handling - Detect and report protocol errors