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()); break
A Kafka client for Python, talking to Kawasan

What 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

AreaStatusNotes
Core brokerStableTopics, produce and fetch, metadata, compression
Consumer groupsStablePersistent offsets, rebalancing, lag tracking
StorageStableRocksDB segmented logs, time and size retention
MonitoringStablePrometheus metrics, health endpoints, Grafana dashboard
DeploymentStableDocker, Compose, systemd, launchd, Helm, Kubernetes
SecurityImplementedSASL/PLAIN and SCRAM, ACLs, quotas. No TLS.
TransactionsPartialDurable on one node. Coordinator state does not fail over between brokers yet.
ReplicationPartialRaft metadata and data replication work. Several brokers together are still experimental.
StreamsExperimentalThe DSL builds, but the runtime does not run end to end yet.
ConnectExperimentalFramework 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.

Contribute or report a problem