Stateful stream processing for Kafka, built to scale up — not out.
Cut the distribution tax: fewer moving parts, simpler operations, more throughput.
StoatFlow is a JVM stream processing library with the Kafka Streams DSL, deployed as a single replica. Built on modern Java 25 — virtual threads, structured concurrency, FFM. Lane parallelism no longer bounded by partition count. Exactly-once semantics, no rebalancing, less serialization, no state migration. Trades horizontal scaling for functional and operational simplicity — better performance at lower cost.
Get the StoatFlow 1.0 launch email
StoatFlow 1.0 is on its way. Leave your email and I'll tell you when it's generally available, and when you can start a trial without a call.
What we set out to fix
The problem
Hard to build. Harder to run.
Every layer is a decision.
Most workloads don't need to scale out.
Our response
Exceptional DX, modern stack, rich tooling
Fast & efficient stream processing
Simple & reliable operations
New capabilities
Single-instance architecture
A new approach to stream processing

Architectural mechanics
Distinctive capabilities under the hood — what makes the single-replica model work in production.
Key-Affinity Lanes
Commit Barriers
Global State
Virtual-Thread Parallelism
In-Memory Repartitioning
Thread-safe by design
The full stream processing surface
Primitives
Streams / records
Continuous sequences of events flowing through the application.
Sources & sinks
Connectors that bring events in from and push results out to external systems (Kafka topics, etc.).
Operators / processors
Functions that transform, filter, enrich, aggregate, join, or route events.
Keys / partitioning
Groups related events together, ensures key-based ordering, determines where state lives.
State stores
Durable local or managed state used for counts, joins, aggregations, deduplication, session tracking.
Time / windows / timers
Primitives for reasoning about event time, late data, periodic actions, and bounded state.
What it solves
Stateful processing
Fault tolerance & recovery
Consistency & exactly-once semantics
Time handling & out-of-order data
Scaling & parallel execution
Operational model & runtime coordination
Faster, leaner, on the same machine.
¹ EOS — Exactly-once semantics·
² ALO — At-least-once semantics
Hetzner ccx33 · 8 vCPU · 32 GB · 2026-04-22
CPU utilisation
Stateless (simple)
parity
Word count
27% less
Stateless (advanced)
2.3× less
Stateful joins
1.5× less
Container memory
Stateless (simple)
17% more
Word count
31% less
Stateless (advanced)
2.4× less
Stateful joins
7.8× less
True E2E P99 latency
Stateless (simple)
12% higher
Word count
6% lower
Stateless (advanced)
2.1× lower
Stateful joins
13.6× lower
State restoration
Restoration time
1.45× faster
On-disk state
35% less
Throughput parity throughout. Lower is better.
100% Kafka Streams DSL and beyond
Drop into the DSL you already use — with the primitives Kafka Streams doesn't ship.
Same DSL, drop in
Beyond Kafka Streams
Features beyond Kafka Streams
On top of the DSL — Flink-inspired primitives and StoatFlow-native utilities.
Event-time & wall-clock timers in any Processor
class DelayedEnrich implements Processor<String, Order, String, EnrichedOrder> {
private static final long RETRY_MS = 10_000;
private ProcessorContext<String, EnrichedOrder> ctx;
private TimerService<String> timers;
private KeyValueStore<String, Order> pending;
private ReadOnlyKeyValueStore<String, Customer> customers;
@Override public void init(ProcessorContext<String, EnrichedOrder> ctx) {
this.ctx = ctx;
this.timers = ctx.timerService();
this.pending = ctx.getStateStore("pending");
this.customers = ctx.getStateStore("customers"); // a read-only lookup store (addReadOnlyStateStore)
}
@Override public void process(Record<String, Order> record) {
Customer c = customers.get(record.value().customerId());
if (c != null) {
ctx.forward(new Record<>(record.key(), enrich(record.value(), c), record.timestamp()));
return;
}
// Cache miss — stash the order and retry 10s later
pending.put(record.key(), record.value());
timers.registerProcessingTimeTimer(record.key(), timers.currentProcessingTime() + RETRY_MS);
}
@Override public void onTimer(long ts, String key, TimerContext<String, EnrichedOrder> tctx) {
Order order = pending.delete(key);
Customer c = customers.get(order.customerId());
tctx.forward(key, c != null ? enrich(order, c) : fallback(order));
}
}
// Wire into the topology — pass the store names the Processor declares
orders.process(DelayedEnrich::new, "pending", "customers");Runtime, plugins & testing
Batteries-included micro-runtime
Gradle & Maven plugins
TopologyTestDriver
Why StoatFlow?
Better performance at lower costs
Ship without specialist expertise
Frequently asked questions
Stateful stream processing for Kafka, built to scale up — not out.
Start your free 30-day trial in minutes: every feature, no credit card, no call. Migrate your first topology in an afternoon.
