Kawasan
A message broker that speaks the Kafka wire protocol. Turn off Kafka, start Kawasan, and your Kafka clients keep working.
from kafka import KafkaProducer, KafkaConsumer
producer = KafkaProducer(bootstrap_servers='localhost:9092')
producer.send('my-topic', b'Hello, Kawasan!'); producer.flush()
consumer = KafkaConsumer('my-topic', bootstrap_servers='localhost:9092',
group_id='my-group', auto_offset_reset='earliest')
for msg in consumer:
print(msg.value.decode()); breakWhat Kawasan is
Swap an apache/kafka container for Kawasan, and existing Kafka clients and tools keep working without changes. Kawasan uses Raft for metadata, so there is no ZooKeeper, and RocksDB for durable storage.
The single-node broker is well tested and suitable for development, testing, and production on a single server.
How ready it is
| Area | Status | Notes |
|---|---|---|
| Core broker | Stable | Topics, produce and fetch, metadata, compression |
| Consumer groups | Stable | Persistent offsets, rebalancing, lag tracking |
| Storage | Stable | RocksDB segmented logs, time and size retention |
| Monitoring | Stable | Prometheus metrics, health endpoints, Grafana dashboard |
| Deployment | Stable | Docker, Compose, systemd, launchd, Helm, Kubernetes |
| Security | Implemented | SASL/PLAIN and SCRAM, ACLs, quotas. No TLS. |
| Transactions | Partial | Durable on one node. Coordinator state does not fail over between brokers yet. |
| Replication | Partial | Raft metadata and data replication work. Several brokers together are still experimental. |
| Streams | Experimental | The DSL builds, but the runtime does not run end to end yet. |
| Connect | Experimental | Framework only. No REST API. |
Full details are in the API coverage matrix and the FAQ.
Run Kawasan
Build and start a local broker. The script checks your tools, builds, and starts the broker on port 9092:
git clone https://github.com/alsatianco/kawasan.git
cd kawasan
./scripts/quick-start.sh
Or run it with Docker Compose from the repository:
docker compose up -d
Then point any Kafka client at localhost:9092. Prometheus metrics are at :9094/metrics, and /health, /readiness, and /liveness are HTTP probes. Building needs GCC 11 or newer (or Clang 13 or newer) and CMake 3.20 or newer.
Known limits
- TLS between clients and the broker is not implemented. The broker refuses an SSL configuration instead of serving plain text, so end TLS at a proxy.
- Raft traffic between brokers is plain text.
raft.ssl.*settings are accepted but not enforced.