# KafScale: Stateless Kafka on S3

> Kafka-compatible streaming with stateless brokers, S3-native storage, and Kubernetes-first operations. Apache 2.0 licensed.

Canonical page: https://kafscale.io/

Apache 2.0 licensed. No vendor lock-in. Self-hosted.

# One endpoint. Infinite scale.

Kafka-compatible streaming platform. Scale streaming and analytics cloud-native on S3. Automated.

- [Get started](https://kafscale.io/local-quickstart/)
- [View on GitHub](https://github.com/KafScale/platform)
- [Demos](https://kafscale.io/demos/) for the CLI, schema registry, MCP, ops and processor walkthroughs

The current release is v2.1.0.

## What's new in v2.1.0

### Idempotent producers

Default Java and Kafka clients can produce without turning off idempotence. Leave transactional.id unset and use acks=all. Transactions are still unsupported. Upgrade every broker and proxy before you enable this on an existing cluster. See [protocol details](https://kafscale.io/protocol/) and [upgrade notes](https://kafscale.io/upgrade-compatibility/).

### New topic IDs on recreate

Deleting a topic and creating one with the same name now assigns a new topic ID. Clients that still have the old ID get UNKNOWN_TOPIC_ID and should refresh metadata. Existing topics keep their IDs across the upgrade.

### Local quick start and native CLI

Start a development stack with Docker Compose and a native kcat client, with no Go toolchain or Kubernetes cluster. Install kafscale-cli with Homebrew, or download a Linux or macOS archive.

- [Local quick start](https://kafscale.io/local-quickstart/)
- [Install the CLI](https://kafscale.io/cli-install/)

## Why teams adopt KafScale

### One endpoint, infinite producers

Kafka clients discover partition leaders and connect to each broker directly. KafScale's proxy rewrites metadata responses. One DNS name. Brokers scale behind it. Clients never break.

### Stateless brokers

Spin brokers up and down without disk shuffles. S3 is the source of truth. No partition rebalancing, ever.

### S3-native durability

11 nines of durability. Immutable segments, lifecycle-based retention, predictable costs.

### Storage-native processing

Processors read segments directly from S3, bypassing brokers entirely. Streaming and analytics never compete for the same resources.

### Open segment format

The .kfs format is documented. Build custom processors without waiting for vendors to ship features.

### Apache 2.0 license

No BSL restrictions. No usage fees. No control plane dependency. Fork it, sell it, run it however you want.

## What You Should Consider

KafScale is not a drop-in replacement for every Kafka workload. Here's when it fits and when it doesn't.

### KafScale is for you if

- S3 write latency is fine for you, roughly 100–200 ms per AWS ([how latency works](https://kafscale.io/latency/))
- You run ETL, logs, or async events
- You want processors that bypass brokers (Iceberg, analytics, AI agents)
- You want minimal ops and no disk management
- Apache 2.0 licensing matters to you
- You prefer self-hosted over managed services

### KafScale is not for you if

- You need sub-10ms latency
- You require Kafka transactions (exactly-once across topics)
- You rely on compacted topics
- You want a fully managed service

See the [full comparison with alternatives](https://kafscale.io/comparison/).

## How KafScale works

Clients connect to a single proxy endpoint. The proxy rewrites Kafka metadata responses so clients never see broker topology. Brokers flush segments to S3. Processors read directly from S3 without touching brokers.

Streaming and analytics share data but never compete for resources.

See the [full architecture diagram](https://kafscale.io/architecture/).

## Built for AI agent infrastructure

AI agents making decisions need context. That context comes from historical events: what happened, in what order, and why the current state exists. Traditional stream processing optimizes for milliseconds. Agents need something different: completeness, replay capability, and the ability to reconcile current state with historical actions.

Storage-native streaming makes this practical. The immutable log in S3 becomes the source of truth that agents query, replay, and reason over. The Iceberg Processor converts that log to tables that analytical tools understand. Agents get complete historical context without competing with streaming workloads for broker resources.

Two-second latency for analytical access is acceptable when the alternative is incomplete context or degraded streaming performance. AI agents do not need sub-millisecond reads. They need the full picture.

## Processors

Processors read completed segments directly from S3, enabling independent scaling and custom implementations. The .kfs segment format is open and documented.

### Iceberg Processor

Reads .kfs segments from S3. Writes Parquet to Iceberg tables. Works with Unity Catalog, Polaris, AWS Glue. Zero broker load. [Documentation](https://kafscale.io/processors/iceberg/)

### SQL Processor (KAFSQL)

Query KafScale segments with Postgres-compatible SQL. No Flink, no Spark, no complex pipelines. Just SQL against your Kafka data in S3. [Documentation](https://kafscale.io/processors/sql/)

### Build your own

The .kfs segment format is documented. Build processors for your use case without waiting for vendors or negotiating enterprise contracts. [Storage format spec](https://kafscale.io/storage-format/)

## Documentation

- [Protocol compatibility](https://kafscale.io/protocol/): Kafka APIs supported, including Produce, Fetch, Metadata, and consumer groups
- [Storage format](https://kafscale.io/storage-format/): Segment layout, index structure, S3 key paths, and cache architecture
- [Operations](https://kafscale.io/operations/): Deployment, scaling, backups, monitoring, and production hardening
- [Docs home](https://kafscale.io/docs/)
- [Release notes](https://kafscale.io/releases/), latest: [v2.1.0](https://kafscale.io/releases/v2.1.0/)

## Get started

Install the operator, define a topic, produce with existing Kafka tools. If you already run Kubernetes and Kafka clients, you can deploy a cluster and start producing data in minutes.

- [Quickstart guide](https://kafscale.io/quickstart/)
- [Local quick start](https://kafscale.io/local-quickstart/)
- [GitHub](https://github.com/KafScale/platform)

## Backed by

Sponsored by [Scalytics, Inc.](https://www.scalytics.io)

Apache 2.0 licensed. No CLA required. Contributions welcome.

Machine-readable index: [https://kafscale.io/llms.txt](https://kafscale.io/llms.txt)
Full text for LLMs: [https://kafscale.io/llms-full.txt](https://kafscale.io/llms-full.txt)
