Monedula

Markdown

Part III · Architecture

How it works · Diskless Kafka

How Ursa for Kafka works

StreamNative · vendor implementation · checked against its sources on 23 November 2026

Ursa for Kafka (UFK) is StreamNative’s fork of Apache Kafka 4.2+, with classic disk topics and diskless topics in one cluster. On a diskless topic a broker in the client’s zone, its zonal owner, buffers batches of many partitions into one WAL object in object storage, then commits the object’s index entries to Oxia, a metadata store that assigns the offsets; the producer is acked after that commit. Later a compaction service rewrites WAL objects into Parquet files and deletes them.

Launch
UFK entered limited public preview on 7 April 2026, on AWS and Google Cloud. StreamNative blog: Ursa for Kafka, native Apache Kafka service on Lakestream (7 April 2026)
Status
The sources disagree. StreamNative’s product page says "Ursa For Kafka is GA on BYOC and Dedicated, with Serverless in Private Preview". StreamNative: Ursa for Kafka product page
Status in the docs
The cluster profiles page says "Kafka Clusters are currently in Public Preview." StreamNative docs: cluster profiles overview
Code base
StreamNative calls UFK "a native Apache Kafka fork", built on Kafka 4.2+, with classic disk topics and diskless topics in one cluster. StreamNative blog: Ursa for Kafka, native Apache Kafka service on Lakestream (7 April 2026)
Source code
The Ursa code is not public. On 7 April 2026 StreamNative said it "will open source Ursa and key Lakestream components in the coming months"; on 23 November 2026 its GitHub organization has no Ursa repository. Oxia, the metadata store, is open source under Apache 2.0. StreamNative press release: Lakestream and a native Kafka service (7 April 2026)
Profiles
Latency-Optimized keeps the classic Kafka disk architecture, with KRaft and ISR replication; Cost-Optimized, the diskless one, writes a WAL to object storage and keeps its metadata in Oxia. The docs have you choose a profile when you create a Dedicated or BYOC cluster. StreamNative docs: Kafka cluster guide
Per-topic choice
The sources disagree. DD1 describes the choice per topic: a topic created with ursa.storage.enable=true is diskless, so one cluster holds disk topics and diskless topics. The docs do not mention the setting or mixing the two. StreamNative blog: UFK deep dive, storage leaderless architecture (17 April 2026)
Local disks
StreamNative’s Kafka overview says of the object storage design "No local disks, no inter-broker replication", but brokers keep disks: disk topics use them, and DD2 says __consumer_offsets and __transaction_state stay on local disk, about 10 GB per broker. StreamNative docs: Kafka service overview
Where it runs
StreamNative Cloud: Serverless (in private preview), Dedicated on AWS or Google Cloud, and BYOC in your own AWS, Google Cloud or Microsoft Azure account. StreamNative docs: Kafka cluster guide
Version
No current version is published. The client docs say zone affinity needs Ursa Engine 4.0.0.7 or later, and in the next note "4.0.0.7 or older". StreamNative docs: Kafka client configuration (zone affinity)

The write path, up to the ack

  1. Buffer on the zonal owner

    The client puts zone_id=<zone> at the start of client.id, and the docs require a broker in its zone. In the paper the broker hashes topic, partition and zone to a zonal owner in that zone and names it in the Metadata reply; DD1 says any broker may write a diskless partition, several at once. The owner buffers batches of many partitions and producers in memory, with no offset yet.

  2. Upload one WAL object

    At a size threshold or after about 250 ms by default (DD2; the paper’s engine buffered up to 200 ms or about 4 MB), the buffer is flushed to object storage as one WAL object holding data of many topics and partitions. UFK’s sources name no config for either and no size default.

  3. Commit to Oxia

    The broker writes the object’s entry indexes to the Lakestream Catalog, "backed by Oxia, which assigns offsets and tracks storage locations" (DD2). The offsets are assigned in that one atomic write, so the order of a partition is decided at the commit, not when the data reached a broker or the bucket.

  4. Ackproducer acked

    The broker answers with a standard ProduceResponse "containing the catalog-assigned offset" (DD2). The paper says the ack mirrors acks=all; UFK’s sources do not say how acks=0 or acks=1 behave.

  5. Readable at once

    The commit is what makes the records readable: DD2 says that at this point the record is "available for consumption through the Kafka Fetch protocol", and the paper promises read-your-writes. There is no replication left to wait for.

Oxia committed broker-3’s wal-0001 first and assigned offsets in commit order: p-c’s k13 took offset 0 on orders-0, although p-a’s k10 reached broker-1 earlier. p-c was acked after the commit; p-a still waits for its own object’s commit. Step through it in the playground

Where the latency comes from

Source: StreamNative blog: UFK deep dive, write path, read path and data compaction (8 May 2026).

The ack waits for 3 parts; the sources give no latency percentile for them:

  • Buffer on the zonal owner: about 250 ms by default, or a size threshold (DD2); the paper’s engine buffered up to 200 ms or about 4 MB
  • Upload of the WAL object: the sources give no figure
  • Oxia commit: the sources give no figure

DD2 puts the P99 produce latency of diskless topics at "sub-second", typically 250 to 500 ms, "driven by the object storage flush interval". StreamNative’s data streaming engine page gives the Cost-Optimized profile "Sub-second (tunable to ~200 ms)" end-to-end latency, and its cluster profiles page expects end-to-end latencies "above 200 milliseconds". No source gives a P50.

The VLDB 2025 paper measured the earlier Ursa engine on AWS: P99 publish latency stayed below 1 s at 1 GB/s, with 12 m6i.8xlarge client nodes across three zones, 12 more for the brokers and Oxia, and S3 for storage (section 7.2).

Tailing consumers read from the broker’s memory, so DD2 puts their end-to-end latency on the order of the batching interval plus a cache lookup. The table copy has its own lag, and DD2 gives two figures for it: a record is queryable as an Iceberg row "within less than a minute", and the P99 compaction delay is under 5 seconds in benchmarks at 5 GB/s.

Who orders the batches

Ordering lives in Oxia, an open source (Apache 2.0), sharded metadata store and coordination system, which the Cost-Optimized profile uses as its metadata store, per StreamNative’s cluster profiles docs. Each partition has an offset index there: entries keyed by stream id, end offset and cumulative size, each mapping a range of offsets to a WAL object or a Parquet file (paper, section 4.1.3). A commit adds entries and assigns their offsets in one atomic write; the compaction service later replaces entries that point at WAL objects with one that points at a Parquet file.

The paper describes each Oxia shard electing a leader and replicating every update to a quorum of followers before it acknowledges, a Raft-based protocol, and promoting a fully caught-up follower when a shard leader fails (sections 4.2.4 and 4.2.5).

Producer state lives there too: DD2 says UFK stores producer state snapshots in the Lakestream Catalog, backed by Oxia, keyed by (topicPartition, producerId), and a restarting broker loads them instead of replaying a local log. The sources do not describe producer fencing on diskless topics.

Consumer groups are classic Kafka groups: DD2 lists the group coordinator among what stays unchanged and says __consumer_offsets stays on local disk with standard Kafka replication. The paper’s engine kept group metadata in Oxia and picked a group coordinator by a hash of group id and zone (section 5.1.3); UFK’s sources describe the classic layout.

The read path

A fetch goes to the consumer’s zonal owner, which looks the offset up in the partition’s offset index and reads the tier that holds it. DD2 says the consumer does not know whether its data comes from the in-memory cache, a WAL object or a Parquet file, and that one fetch can span a Parquet file and a WAL object, returned as one contiguous response.

Tail reads come from memory. The paper sends a partition’s producers and consumers in one zone to the same broker so tail reads are served from its write buffer, and DD2 describes an in-memory cache of recently written and read entries on each broker.

Older data comes from object storage. For WAL objects the paper assigns one cache broker per zone, which loads a chunk once and serves the zone’s other brokers from memory (section 5.3.1); DD2 does not mention it. A Parquet file is converted from columnar to rows to answer the Kafka fetch (section 4.2.2). DD2 says sequential reads trigger background prefetching.

The compaction service runs outside the brokers (paper, section 4.3). It rewrites WAL objects into Parquet files per partition, updates the offset index in Oxia, and DD2 says the WAL objects are deleted once data has been "compacted to Parquet and verified". One offset lives first in a WAL object, then in a Parquet file.

The sources disagree on whether those Parquet files are also the lakehouse table. The paper (section 4.1.4) and the product page, which promises "zero-copy conversion", say one copy serves both. StreamNative’s lakehouse docs mark Stream Backed Tables, the shared copy, "Coming Soon"; the Stream Delivered Tables that ship write "a separate copy" into an external catalog’s table, without streaming reads with offset semantics. The paper calls that mode two Parquet copies.

g-late, a lagging consumer in az-c, reads offset 0 of orders-0 from pq-0001, the Parquet file the compaction service wrote, which broker-3 fetched and converted back to records. g-tail, which tailed the topic, was served from broker-2’s memory before the run. Step through it in the playground

When something fails

What failsWhat happens
A broker diesBrokers hold no durable copy of diskless data, so nothing is copied. In the paper, clients whose TCP connection closes lose about one retry round trip (under 100 ms) and move to another broker; a broker that goes silent is marked offline after 5 s of missed heartbeats, its partitions are remapped to healthy peers, and they resume from the last committed offset in Oxia. Nothing acked is lost, since the ack waits for the Oxia commit; the open buffer of the dead broker was never acked. Ursa VLDB 2025 paper, section 4.2: access protocols and failure recovery, StreamNative blog: UFK deep dive, write path, read path and data compaction (8 May 2026)
An orphan WAL objectA broker that dies after uploading a WAL object but before its Oxia commit leaves an object no index entry points at. The paper says it "becomes orphaned and is subsequently cleaned up by the compaction service", whose cleanup removes every object the offset index no longer references. It holds nothing acked. Ursa VLDB 2025 paper, section 4.2: access protocols and failure recovery, Ursa VLDB 2025 paper, section 4.3-4.4: compaction service and external tables
A slow brokerThe paper’s engine flags a broker whose publish or fetch latency exceeds P99 plus three standard deviations for 30 s, evicts it and reassigns its partitions at once; clients pick up the new owner on a retry, and the broker is re-admitted after 60 s back in its normal range. UFK’s sources do not mention it. Ursa VLDB 2025 paper, section 4.2: access protocols and failure recovery
Oxia is unavailableThe sources do not say what clients see while Oxia is unreachable. The paper describes only an Oxia shard leader failing: a fully caught-up follower is promoted, and every committed index entry survives. Ursa VLDB 2025 paper, section 4.2: access protocols and failure recovery
Object storage is slow or downThe sources are silent. They say only that nothing is acked before the WAL object is durably stored and committed. Ursa VLDB 2025 paper, section 3.5.1: write-ahead log storage
broker-1 dies: its buffer is lost and wal-0002, the object it was still uploading, is an orphan. Their four records get REQUEST_TIMED_OUT (the simulator’s code), and with no broker left in az-a the simulator hashes those clients over the alive brokers. Step through it in the playground
The clients moved to broker-2, their new owner, at once and retried there. Oxia drops p-idem’s retry of k1, whose sequence it had already committed, and acks it as a duplicate; checking sequences at the commit is the simulator’s reading of DD2. Step through it in the playground
The next compaction run removes the orphan wal-0002, which was never committed, writes offsets 0 to 3 of orders-2 to the Parquet file pq-0001 and deletes the WAL objects it covers. Step through it in the playground
broker-2, paused at 5000 ms, sent no heartbeat for 5 s and was marked offline; its partitions moved to broker-3. The four records that waited on it timed out with REQUEST_TIMED_OUT and are retried through broker-3. Step through it in the playground

Cross-zone traffic: what goes, what stays

Goes

  • Produce traffic, when the client sets zone_id in client.id and a broker runs in its zone: it writes to a broker in its own zone
  • Consumer reads, on the same terms; in the paper each zone loads a WAL chunk from object storage once, through its cache broker
  • Replication of diskless data between brokers: diskless topics have replication factor 1, forced, and object storage holds the data

Stays

  • A client without zone_id, or in a zone with no broker: the sources do not say where it goes
  • Disk topics, which replicate across zones as classic Kafka does
  • __consumer_offsets and __transaction_state, on local disk with standard Kafka replication

StreamNative’s data streaming engine page says writing to object storage cuts network costs by "up to 95%", and its product page promises to cut Kafka infra cost by "up to 95%", which its FAQ, citing internal benchmarks at 5 GB/s, puts as "up to 95% lower Kafka infra cost in certain scenarios". Both are StreamNative’s claims. The simulator counts hops, not bytes or fees: a produce or fetch that crosses zones is a data hop, and requests to object storage are zone-free. It counts no request of a client without a zone, since it does not know where that client runs. StreamNative docs: data streaming engine

One partition, three zonal owners, one per zone: for orders-0, broker-1 serves az-a, broker-2 az-b and broker-3 az-c. p-a sets zone_id=az-a in client.id, and p-x sets no zone_id. Step through it in the playground
Each zone that loads wal-0001 through its cache broker adds its mark: az-b and az-c loaded it once each. az-a read it from the memory of broker-1, which wrote it, and adds none. Step through it in the playground

Does it support...

FeatureStatusDetails
Idempotent producer Yes DD2: idempotent producers without a transactional.id are fully supported on diskless topics, with producer state in the Lakestream Catalog, backed by Oxia, keyed by (topicPartition, producerId). StreamNative blog: UFK deep dive, write path, read path and data compaction (8 May 2026)
Transactions No Not on diskless topics: DD2 says a transactional producer on one "is rejected with INVALID_REQUEST", and the docs list Kafka transactions as "coming soon" for the Cost-Optimized profile. Disk topics support them as classic Kafka does. StreamNative blog: UFK deep dive, write path, read path and data compaction (8 May 2026)
Compacted topics No Not on diskless topics: DD2 says "cleanup.policy=compact is NOT supported on diskless topics", and the docs list topic compaction as "coming soon" for the Cost-Optimized profile. Disk topics support it. The paper (section 4.6) describes Kafka topic compaction in the compaction service, which UFK’s sources do not offer yet. StreamNative blog: UFK deep dive, write path, read path and data compaction (8 May 2026)
Consumer groups Yes Classic groups: DD2 lists the group coordinator and assignment strategies among what stays unchanged, with __consumer_offsets on local disk. Whether the KIP-848 consumer protocol works is not documented. StreamNative blog: UFK deep dive, write path, read path and data compaction (8 May 2026)
Share groups Yes StreamNative’s Kafka cluster guide says Kafka Queues are supported on both profiles, and DD2 says the shared consumer group model of KIP-932 is fully supported. StreamNative docs: Kafka cluster guide
Client quotas Unclear Not documented. StreamNative docs: Kafka cluster guide
Retention Unclear The sources do not say how retention removes data already in Parquet files. StreamNative blog: UFK deep dive, write path, read path and data compaction (8 May 2026)
Topic as a lakehouse table Partly Stream Delivered Tables, which ship (Cost-Optimized only today), write a separate copy into an external catalog’s Iceberg or Delta Lake table. Stream Backed Tables, one copy for topic and table, are "Coming Soon". StreamNative docs: lakehouse table overview

The configs it adds

ConfigLevelWhat it does
ursa.storage.enableTopicA topic created with ursa.storage.enable=true is a diskless topic whose data is stored in object storage, while the other topics of the same cluster keep classic local disks. StreamNative blog: UFK deep dive, storage leaderless architecture (17 April 2026)
client.idClientFor zone affinity the docs give the client.id format zone_id=<zone-id>,key1=value1,key2=value2, with the client’s availability zone ID, and at least one broker must run in that zone. StreamNative docs: Kafka client configuration (zone affinity)

How it differs from Apache Kafka

Offsets are assigned by Oxia, a metadata store outside Kafka, when a WAL object’s index entries are committed. In KIP-1164 a diskless coordinator inside Kafka assigns them, with its metadata in the internal topic __diskless_metadata.

Diskless topics have replication factor 1, forced, and brokers keep no replicas of them. In KIP-1163 a diskless partition keeps replicas, which download committed batches from object storage into local segments as a cache.

The WAL object is temporary: a compaction service outside the brokers rewrites it into Parquet files per partition, updates the offset index and deletes it. The KIPs leave merging objects to KIP-1165.

Transactions and compacted topics are refused on diskless topics. KIP-1163 plans transactions on diskless topics for transaction protocol v2 and later, and KIP-1150 compacts diskless topics through tiered storage.

Clients name their zone with zone_id in client.id. KIP-1163 uses the client’s rack, sent in its metadata requests, for the same job.

Classic and diskless topics share a cluster, as in the KIPs; DD1 has the choice per topic, the docs per cluster.

See it in the simulator

The simulator follows UFK’s docs and StreamNative’s two posts, and the paper only where they are silent. The scenarios here stretch the timings so each step is visible: the buffer closes after 500 ms instead of about 250 ms, the upload takes 600 ms and the Oxia commit 200 ms, figures the sources do not give. The zonal owner and each zone’s cache broker are a stable hash over the zone’s alive brokers, standing in for Ursa’s consistent hash ring; a client without zone_id, or in a zone with no alive broker, is hashed over every alive broker. Every acks value waits for the upload and the Oxia commit. Idempotence is checked at the Oxia commit, so a retry through another owner is caught. A killed broker’s unanswered requests get REQUEST_TIMED_OUT at once, the simulator’s code, and its clients move at once. A paused broker keeps its partitions for 5 s of missed heartbeats counted from the pause; then its waiting requests fail and retry to the new owner, and its frozen buffer is dropped on resume; one that resumes within 5 s finishes its frozen work. A broker that holds any disk-topic replica cannot be paused. The compaction service runs every 2 s and never fails; it writes one Parquet file per partition per run, and its upload, its Oxia commit and the WAL deletion land in one step. The first offset of a fetch decides the tier, and Parquet reads are not cached. Oxia never fails in the simulator, and object storage outages and network partitions are refused, since the sources do not describe them. The simulator refuses share groups on diskless topics, its own limit, though Ursa supports them. One client field stands for both zone_id (diskless topics) and client.rack (disk topics), which in Ursa are two settings. A free-play cluster with no diskless topic is built as classic Kafka. Not modelled: lakehouse tables, the paper’s zone-hashed group coordinator, brown-out eviction, compaction leader checkpoints, multi-region clusters and quotas.

The proposals behind it

Sources

Changes to this page

  • Published, with simulator steps from scenarios 13.1.1 to 13.1.4.

All diskless implementations