Jocko is a Kafka-compatible distributed commit log written in Go. It targets a single deployable binary, uses Serf for discovery and Raft for consensus, and avoids a ZooKeeper dependency.
Overview
Jocko implements a Kafka-style distributed commit log service in Go. The design goal is Kafka wire compatibility so existing Kafka clients can talk to the cluster while operations stay simpler than a full Kafka stack with ZooKeeper.
Coordination uses Serf for member discovery and Raft for partition consensus instead of an external ZooKeeper ensemble. Configuration ideas include retention based on disk percentage, not only time and byte limits.
Implemented pieces at various stages include produce and fetch APIs, metadata, topic creation and deletion, discovery, and an initial replication draft. Consumer groups and fuller protocol versioning were still open when development paused for a book project.
You can build a local binary or package a Docker image from source.
Key features
- Kafka protocol compatibility for clients
- Single-binary distribution goal
- Serf-based cluster discovery
- Raft consensus without ZooKeeper
- Topic create and delete support
- Produce and fetch APIs
- Percentage-based retention configuration
Use cases
- Experiment with a lightweight Kafka-like broker
- Study distributed commit log design in Go
- Run a small event log without ZooKeeper