Overview
RobustMQ Kafka is a Kafka protocol compatibility layer built on top of the unified RobustMQ kernel. It is not a standalone Kafka distribution, but a protocol implementation that lets the standard Kafka ecosystem connect directly to RobustMQ. Native Kafka clients (Java kafka-clients, librdkafka) and the official command-line tools (kafka-*.sh) connect directly, on the default port 9092.
Design principle: one data, multiple protocol views
The core design principle of RobustMQ Kafka is "one data, multiple protocol views": the storage engine keeps protocol-neutral, decoded message records rather than Kafka's private compressed batch format. This makes compatible alternate protocol views possible, but it does not automatically make every Kafka topic an MQTT, NATS, or AMQP destination. Each handler still resolves tenant, topic name, and protocol source according to its own rules.
Key facts:
- Controller / Coordinator = the meta-service Raft leader: no ZooKeeper or KRaft. The controller, group coordinator, and transaction coordinator in Kafka semantics all resolve to the current Raft leader, located via a gRPC lookup cached with a ~3s TTL.
- Storage engine = File Segment: segment append / seal / scroll,
offset → positionindex with mmap reads, ISR multi-replica withleader_epochfencing. - Decode on write:
Produceunpacks the RecordBatch into the store on write, andFetchreframes records back into aRecordBatch. This is the storage-level foundation for compatible cross-protocol views when an explicit topic mapping exists.
See System Architecture for details.
Capability summary
| Capability | Status | Notes |
|---|---|---|
| Produce / Consume / Offsets | ✅ | Produce / Fetch / ListOffsets / OffsetCommit / OffsetFetch |
| Idempotent Producer | ✅ | Producer ID allocation + sequence dedup (last-5 sliding window + epoch fencing) |
| Classic consumer groups | ✅ | FindCoordinator / JoinGroup / SyncGroup / Heartbeat / LeaveGroup |
| KIP-848 consumer groups | ✅ | ConsumerGroupHeartbeat (server-side assignment); no subscribed_topic_regex |
| Topic management | ✅ | Create / delete / add partitions; auto-create on by default |
| Configuration management | ✅ | DescribeConfigs / AlterConfigs / IncrementalAlterConfigs |
| SASL / SCRAM authentication | ✅ | SCRAM-SHA-256 / SCRAM-SHA-512 |
| ACL / quotas | 🟡 | Manageable, but not enforced for authorization or throttling |
| Delegation tokens | ✅ | Metadata management (tokens do not participate in auth) |
| Metadata / DescribeCluster | ✅ | Cluster topology, brokers, topic / partition info |
| Fetch compression | 🟡 | Consumer side always returns uncompressed records |
| Transactions | ❌ | Not advertised, not supported (reasons below) |
| Share Group (KIP-932) | ❌ | Not supported |
For per-API versions and differences see the Protocol Compatibility Matrix; for the full "supported / partial / unsupported" list with reasons see Compatibility & Limitations.
Quick start
After starting a single node, use the official CLI to create a topic, produce, and consume:
# Create a topic
kafka-topics.sh --bootstrap-server localhost:9092 \
--create --topic quickstart --partitions 3
# Produce (type a few lines, then Ctrl-C)
kafka-console-producer.sh --bootstrap-server localhost:9092 --topic quickstart
# Consume from the beginning
kafka-console-consumer.sh --bootstrap-server localhost:9092 \
--topic quickstart --from-beginningFull steps (including a Java kafka-clients example and SASL connection) are in Quick Start.
Documentation map
| Document | Contents |
|---|---|
| System Architecture | Five-layer architecture, request flow, key differences from native Kafka |
| Core Concepts | Topic / Partition / Offset, Record, consumer groups, Coordinator, Segment |
| Protocol Compatibility Matrix | Per-API supported versions, status, and differences |
| Quick Start | Single-node startup, CLI and minimal Java client examples |
| CLI Guide | Complete guide to the official kafka CLI against RobustMQ |
| Compatibility & Limitations | Supported / partial / unsupported list and root causes |
