---
title: "How Redpanda Cloud Topics works: Raft placeholders on S3"
description: "Redpanda Cloud Topics step by step: L0 objects in S3, placeholders in each partition’s Raft log, the majority ack, L1, failures and cross-zone traffic."
url: https://monedula.dev/kafka/diskless/redpanda/
---

# How Redpanda Cloud Topics works

Redpanda · vendor implementation · checked against its sources on 19 November 2026.

Redpanda Cloud Topics keeps each partition’s Raft group but writes the data to object storage. The leader’s broker uploads batches of many partitions as one L0 object, then appends to the partition’s Raft log a placeholder of about 100 bytes that points at the batch, which gives it its offsets; the producer is acked once a majority of the replicas holds the placeholder, for acks=1 too. Later a reconciler rewrites the data into L1 objects that keep each partition’s range together.

## At a glance

- Status: Cloud Topics came with Redpanda 26.1, announced on 31 March 2026 as "now generally available". ([Redpanda press release: Redpanda Streaming 26.1](https://www.redpanda.com/press/redpanda-streaming-26-1-introduces-industrys-first-adaptable-streaming-engine))
- Newest release: On 19 November 2026 Redpanda’s quick start runs v26.2.7, which has no release notes yet. ([Redpanda quick start](https://docs.redpanda.com/streaming/current/get-started/quick-start/))
- Release notes: After v26.2.2 they list v26.2.3 to v26.2.6, the newest dated 22 October 2026. Their Cloud Topics entries are fixes, among them the write scheduler’s CPU use, L0 garbage collection on Azure, the metastore topic’s replication factor and an L1 reader use-after-free. ([Redpanda release notes](https://docs.redpanda.com/streaming/current/reference/releases/redpanda/))
- Source code: Public up to v26.2.2, the last release tag of Redpanda’s GitHub repository, C++ code that is now archived and read-only. The code of later releases is not published, so this page cites v26.2.2. ([Redpanda v26.2.2 release](https://github.com/redpanda-data/redpanda/releases/tag/v26.2.2))
- License: The Cloud Topics source files are "Licensed as a Redpanda Enterprise file under the Redpanda Community License". ([Cloud Topics license header (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L1-L9))
- Requirements: Creating a cloud topic needs cloud storage enabled on the cluster (`cloud_storage_enabled`), which the code checks, and an Enterprise license, which the docs require. ([Cloud topic creation checks (topics_frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cluster/topics_frontend.cc#L649-L672))
- Where it runs: Redpanda Self-Managed, BYOC and Dedicated, from version 26.1. Not currently on Redpanda Serverless, which Redpanda describes as single-AZ. ([Redpanda: Cloud Topics product page](https://www.redpanda.com/data-streaming/cloud-topics-write-to-object-storage))
- Code base: Not a fork of Apache Kafka: Redpanda is its own broker, compatible with the Kafka protocol with exceptions its docs list. ([Redpanda docs: Kafka compatibility](https://docs.redpanda.com/streaming/current/develop/kafka-clients/))

## The write path, up to the ack

1. Buffer on the leader’s broker: Produce goes to the partition leader. Its broker buffers the batch with batches of the other partitions it leads, with no offset yet, until 250 ms have passed or 4 MiB are buffered (`cloud_topics_produce_upload_interval`, `cloud_topics_produce_batching_size_threshold`). The CPU shards of a broker pool their buffers in groups; batching never crosses brokers.
2. Upload one L0 object: The buffer becomes one L0 object holding the batches of many partitions back to back, written to object storage in one PUT. Only the leader’s broker uploads.
3. Append a placeholder: The leader appends to the partition’s Raft log a placeholder of about 100 bytes: the object, the byte offset and the size of the batch, with the batch’s producer id, epoch and sequence. The Raft log assigns the offsets now, after the upload, and the order of the partition is decided here.
4. Replicate and ack (the producer is acked here): The Raft leader replicates the placeholder to its followers. Once a majority of the replicas holds it, the producer is acked. Cloud Topics replace the requested consistency level with a quorum ack, so acks=1 and acks=all are answered at the same point, after the upload and the majority.
5. Fill the batch cache: The original batches go into the leader’s batch cache with their final offsets, so a tailing consumer can be served from memory.

Simulator, [Redpanda: the write path](https://monedula.dev/kafka-simulator/scenarios/redpanda-write-path/) step 5: broker-2, the Raft leader of orders-1 and orders-4, replicated their placeholders, about 100 bytes each and pointing into l0-0001, to broker-1 and broker-3; the simulator draws this as the followers fetching. At a majority the high watermark moved to 2, and p-all (acks=all) and p-one (acks=1) were acked at the same moment. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.1&t=4)

## Where the latency comes from

Source: [Redpanda docs: Manage Cloud Topics](https://docs.redpanda.com/streaming/current/develop/manage-topics/cloud-topics/).

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

- L0 buffer: up to 250 ms or 4 MiB, whichever comes first (the defaults at v26.2.2)
- S3 PUT of the L0 object: the sources give no figure
- Raft replication of the placeholder to a majority: the sources give no figure

Redpanda’s Cloud Topics docs give end-to-end latency, from produce to consume, as ranging "from 500 ms to as high as a few seconds" with different object stores, and say to expect 1 to 2 seconds with public cloud stores. Neither the docs nor the code give a P50 or P99 for the parts.

Every acks value waits for the upload and the majority, and the code says the majority "should be very little extra latency" next to the upload. Redpanda’s architecture post describes the same buffer window, 0.25 seconds or 4 MB.

## Who orders the batches

There is no separate coordinator. Redpanda’s docs say every topic partition forms a Raft group, an elected leader and its followers. A cloud topic keeps the replication factor of any Redpanda topic, and each partition’s Raft log on the brokers’ disks holds the placeholders. The Raft leader assigns a batch its offsets when it appends the batch’s placeholder, after the upload, so the order of a partition is the order of its Raft log.

The producer state lives there too. `rm_stm`, the state machine that tracks producer ids, epochs and sequences, checks each placeholder as it would a batch of a local topic, and rebuilds its state from the replicated placeholders. Each placeholder is appended with the leader’s term (`expected_term`) and checked against a window of cluster epochs that `ctp_stm` keeps per term.

The L1 metastore is off the ack path. It is the internal topic `kafka_internal/ct_l1_domain`, 3 partitions by default, each a replicated LSM database whose files are in object storage. In the background the reconciler on each partition leader reads from just after the last reconciled offset (LRO) up to the last stable offset, writes L1 objects that keep each partition’s range together, registers them in the metastore, then writes the new LRO through the partition’s Raft log.

## The read path

A fetch at or below the partition’s last reconciled offset (LRO) reads L1, located through the L1 metastore; aborted transactional batches are already left out there. A fetch above the LRO reads L0.

On the leader, an L0 read first waits up to 500 ms for the write path to fill the batch cache, so a tailing consumer is usually served from memory. Otherwise the broker reads the placeholders from its Raft log and materializes each batch: a miss downloads the whole L0 object into the broker’s disk cache and cuts the batch out of it, and concurrent reads of one object wait for the one download.

Followers can serve fetches too, up to the leader’s high watermark, when follower fetching is on: `enable_rack_awareness` on the cluster, a rack on each broker and `client.rack` on the consumer. The docs strongly recommend it for multi-zone clusters. Only the leader’s write path fills a batch cache, so a follower reads from its disk cache or object storage.

Simulator, [Redpanda: from L0 to L1, and who serves a read](https://monedula.dev/kafka-simulator/scenarios/redpanda-l0-to-l1-read-tiers/) step 3: g-lag started at offset 0, at or below the LRO, so broker-2 read L1 object l1-0001 from S3 into its disk cache and served it from there. Offset 2, above the LRO, came from broker-2’s batch cache, where g-tail also read both new records. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.4&t=2)

## When something fails

- The leader dies: An ordinary Raft election: after `election_timeout_ms`, 1.5 s by default, a follower becomes leader in a new term, and Raft elects only one whose log holds every committed placeholder. Nothing is replayed: the placeholders of every acked batch are on a majority of broker disks and the data is in object storage. What the dead leader held only in memory, its open L0 buffer, was never acked and is lost; an L0 object it uploaded whose placeholder never reached a majority stays in object storage as an orphan, for garbage collection. The sources give no figure for how long an election takes beyond the timeout. ([Raft election timeout default (configuration.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/config/configuration.cc#L1267-L1272), [Redpanda cluster property election_timeout_ms](https://docs.redpanda.com/streaming/current/reference/properties/cluster-properties/#election_timeout_ms), [L0 garbage collection rule (level_zero_gc.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/gc/level_zero_gc.cc#L1194-L1215))
- Object storage is slow or down: The L0 upload is retried, backing off from 100 ms, until the produce request’s own timeout (1 s when the request carries 0) or 90 s (`cloud_storage_segment_upload_timeout_ms`), whichever comes first. Then every request in the object fails, answered REQUEST_TIMED_OUT, which the client retries. Placeholders already in Raft are untouched, so nothing acked is lost. Reads from the batch cache or a disk cache go on; a read that needs a GET fails or times out, and the sources do not say which error the consumer then gets. The reconciler cannot upload L1 objects, so the LRO stays. ([L0 upload with retries (batcher.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/batcher/batcher.cc#L69-L142), [Cloud Topics upload deadline (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L686-L691), [Produce error codes (produce.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/kafka/server/handlers/produce.cc#L85-L129), [L0 object download into the disk cache (materialized_extent.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/reader/materialized_extent.cc#L129-L207))
- Orphaned L0 objects: L0 garbage collection deletes an object when its cluster epoch is at or below the epoch every cloud partition has reconciled past and it is at least 12 hours old (`cloud_topics_short_term_gc_minimum_object_age`). Nothing checks whether a placeholder points at it, so an object whose placeholder never replicated is deleted by the same rule. ([L0 garbage collection rule (level_zero_gc.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/gc/level_zero_gc.cc#L1194-L1215), [L0 garbage collection minimum age (configuration.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/config/configuration.cc#L5134-L5140))
- A deposed leader: A placeholder is appended only in the term it was built in (`expected_term`), so a leader that lost its term cannot append it, and `ctp_stm` refuses an L0 object whose cluster epoch is older than its window; the client retries. If the replication of a placeholder that moves that window fails, the leader steps down. ([Cloud Topics epoch fence and expected term (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L800-L846), [Cluster epoch fence per term (ctp_stm.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/stm/ctp_stm.cc#L457-L531), [Cloud Topics leader steps down after a failed replication (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L870-L918))

Simulator, [Redpanda: the leader crashes, an election, nothing to replay](https://monedula.dev/kafka-simulator/scenarios/redpanda-leader-crash-election/) step 2: broker-2, the leader of orders-1, was hard-killed. order-4, in its open L0 buffer, is lost, and l0-0003, uploaded but with its only placeholder in broker-2’s log, is an orphan; neither was acked, and p-idem gets REQUEST_TIMED_OUT, the simulator’s stand-in for the lost connection. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.2&t=1)

Simulator, [Redpanda: the leader crashes, an election, nothing to replay](https://monedula.dev/kafka-simulator/scenarios/redpanda-leader-crash-election/) step 4: 1.5 s after the kill, the election timeout, broker-1 leads orders-1 in term 1, one more than before; it won the tie with broker-3 on its id, the simulator’s pick. Nothing was replayed: its Raft log already held the placeholders of every acked record. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.2&t=3)

Simulator, [Redpanda: object storage goes down](https://monedula.dev/kafka-simulator/scenarios/redpanda-object-storage-down/) step 3: S3 is still down, and 5000 ms after p-all sent order-3 the request reached p-all’s request.timeout.ms: p-all got REQUEST_TIMED_OUT, which is retriable, and broker-2 gave up the upload. order-3 never had a placeholder, so it never had an offset, and nothing acked was touched. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.3&t=2)

Simulator, [Redpanda: object storage goes down](https://monedula.dev/kafka-simulator/scenarios/redpanda-object-storage-down/) step 4: With S3 still down, g-tail read order-2 from broker-2’s batch cache. g-lag starts at offset 0, which only L1 object l1-0001 in S3 holds, so each of its polls returns no records (the simulator’s choice; in Redpanda such a read fails or times out). [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.3&t=3)

Simulator, [Redpanda: object storage goes down](https://monedula.dev/kafka-simulator/scenarios/redpanda-object-storage-down/) step 6: S3 came back: the retried upload went through, order-3 took offset 2 and p-all was acked, and both groups read all three records. Nothing acked was lost, and the reconciler moved offsets 1 and 2 into l1-0002, LRO 2. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.3&t=5)

## Cross-zone traffic

What goes:

- Replication of the data between brokers: the leader uploads each batch to object storage once, and the followers receive only placeholders
- Consumer reads, with follower fetching on (`enable_rack_awareness` and `client.rack`): a consumer reads the replica in its own zone, which fills from object storage

What stays:

- Placeholders, about 100 bytes per batch, and the LRO writes, which the Raft leader sends to its followers in other zones
- Producer traffic to a leader in another zone; the docs suggest leader pinning (`redpanda.leaders.preference`) to keep leaders near producers
- Consumer reads from a leader in another zone, without follower fetching
- Requests to object storage: the sources do not say whether they cross zones

Redpanda’s docs say Cloud Topics eliminate "over 90% of the cost of replicating data over network links in multi-AZ clusters", and its 26.1 press release claims "over 90% savings in cross-AZ networking fees levied by some cloud providers". Both are Redpanda’s claims. The simulator counts hops, not bytes or fees: a produce or fetch that crosses zones is a data hop, and a placeholder or LRO write to a follower in another zone is a metadata hop. It counts requests to object storage as zone-free. The Cloud Topics code has no zone logic of its own; follower fetching and leader pinning are Redpanda’s general features, and the simulator does not model leader pinning. ([Redpanda docs: Manage Cloud Topics](https://docs.redpanda.com/streaming/current/develop/manage-topics/cloud-topics/))

Simulator, [Redpanda: from L0 to L1, and who serves a read](https://monedula.dev/kafka-simulator/scenarios/redpanda-l0-to-l1-read-tiers/) step 4: g-zone runs in az-c with client.rack=az-c and the cluster sets enable_rack_awareness=true, so it reads orders-1 from broker-3, the follower in its zone. broker-3 holds only the placeholder and no batch cache, so it downloaded the whole L0 object l0-0003 from S3 into its disk cache; the read stayed in az-c. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.4&t=3)

Simulator, [Redpanda: from L0 to L1, and who serves a read](https://monedula.dev/kafka-simulator/scenarios/redpanda-l0-to-l1-read-tiers/) step 5: broker-3 then served order-6, on orders-4 and in the same L0 object, from its disk cache with no second GET: one download of l0-0003 served both partitions. In the simulator a poll is one fetch, so g-zone read the two partitions one at a time. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.4&t=4)

## Feature support

| Feature | Status | Details |
| --- | --- | --- |
| Idempotent producer | Yes | The placeholder carries the batch’s producer id, epoch and sequence, and `rm_stm` checks them when it is appended, as for a local topic. [Idempotent sequence check (rm_stm.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cluster/rm_stm.cc#L1135-L1177) |
| Transactions | Yes | Data batches go through L0 and placeholders, and the commit and abort markers are replicated straight into the partition’s Raft log, with no upload. The reconciler reads committed data only, so L1 objects hold no aborted records. Redpanda’s architecture post says Cloud Topics inherit the transaction and idempotency logic of standard topics. [Commit marker replicated through Raft (rm_stm.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cluster/rm_stm.cc#L610-L614) |
| Consumer groups | Yes | Classic groups: the Kafka APIs the broker serves at v26.2.2 include JoinGroup, SyncGroup and Heartbeat, not the KIP-848 ConsumerGroupHeartbeat. The docs say committed offsets are stored in the `__consumer_offsets` topic. [Kafka APIs the broker serves (handlers.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/kafka/server/handlers/handlers.h#L67-L115) |
| Share groups | No | ShareFetch and the other share group APIs are not among the Kafka APIs the broker serves at v26.2.2. [Kafka APIs the broker serves (handlers.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/kafka/server/handlers/handlers.h#L67-L115) |
| Compacted topics | Yes | Compaction runs on the L1 objects, in the background, at the interval `cloud_topics_compaction_interval_ms` sets. [Cloud Topics compaction on L1 (scheduler.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_one/maintenance/scheduler.h#L34-L47) |
| Retention | Yes | A housekeeper per partition applies retention to L1, at the interval `cloud_storage_housekeeping_interval_ms` sets; L0 data is released only as the reconciler moves it to L1, so retention does not cut data still in L0. [Cloud Topics retention (housekeeper.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/housekeeper/housekeeper.h#L24-L39) |
| Storage mode conversion | Partly | Local and Tiered Storage v1 topics cannot become cloud topics, and a cloud topic cannot become one of them. From v26.2 a cloud topic converts to and from Tiered Storage v2 (`tiered_cloud`), which Redpanda’s What’s New page for 26.2 calls beta, and to nothing else. [Storage mode conversions (config_utils.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/kafka/server/handlers/configs/config_utils.h#L371-L431) |

## Configs

| Config | Level | What it does |
| --- | --- | --- |
| `redpanda.storage.mode` | Topic | Set to `cloud` to make the topic a Cloud Topics topic, when it is created or, from v26.2, by converting a Tiered Storage v2 (`tiered_cloud`) topic; the other values are `local`, `tiered`, `tiered_cloud` and `unset`. The cluster default is `default_redpanda_storage_mode`. [Redpanda topic property redpanda.storage.mode](https://docs.redpanda.com/streaming/current/reference/properties/topic-properties/#redpanda-storage-mode) |
| `cloud_topics_produce_upload_interval` | Broker | A cluster property: the time after which the buffered batches are uploaded as an L0 object. Default 250 ms. [Redpanda cluster property cloud_topics_produce_upload_interval](https://docs.redpanda.com/streaming/current/reference/properties/cluster-properties/#cloud_topics_produce_upload_interval) |
| `cloud_topics_produce_batching_size_threshold` | Broker | A cluster property: how much data on a shard triggers an upload. Default 4 MiB. [Redpanda cluster property cloud_topics_produce_batching_size_threshold](https://docs.redpanda.com/streaming/current/reference/properties/cluster-properties/#cloud_topics_produce_batching_size_threshold) |
| `election_timeout_ms` | Broker | A Redpanda cluster property: the Raft election timeout, in milliseconds (default 1500). [Redpanda cluster property election_timeout_ms](https://docs.redpanda.com/streaming/current/reference/properties/cluster-properties/#election_timeout_ms) |
| `enable_rack_awareness` | Broker | A Redpanda cluster property that enables rack-aware replica assignment (default false); follower fetching also needs it set to true, with a rack on each broker and `client.rack` on each consumer. [Redpanda cluster property enable_rack_awareness](https://docs.redpanda.com/streaming/current/reference/properties/cluster-properties/#enable_rack_awareness) |
| `acks` | Client | On a Cloud Topics topic acks=1 and acks=all are answered at the same point, once the L0 object holding the batch is uploaded and a Raft majority holds its placeholder, because Cloud Topics replace the requested level with a quorum ack (acks=0 takes the same path). [Cloud Topics forces a quorum ack (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L658-L673) |
| `request.timeout.ms` | Client | How long the client waits for the response to one request (default 30000 in the Java client, which sends it as each produce request’s timeout); on a Cloud Topics topic that timeout also bounds the L0 upload of the request’s records, and a request that runs out of it is answered REQUEST_TIMED_OUT. [Cloud Topics upload deadline (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L686-L691) |
| `client.rack` | Client | The consumer’s rack ID; with `enable_rack_awareness` on and a rack on each broker, the partition leader looks for a replica, itself or a follower, whose rack ID matches and returns records from it, and otherwise handles the fetch itself. [Redpanda docs: follower fetching](https://docs.redpanda.com/streaming/current/develop/consume-data/follower-fetching/) |

## How it differs from Apache Kafka

Offsets are assigned by each partition’s own Raft log, when the leader appends the placeholder, and only the leader takes writes. In KIP-1163 any replica of the partition takes produce requests, and in KIP-1164 a diskless coordinator assigns the offsets when it commits the object’s batch coordinates.

Partitions keep their replication factor: every replica holds the placeholders in a Raft log on its broker’s disk, and the Raft leader sends them to its followers. KIP-1163 does not replicate diskless data between brokers; it leaves that to object storage, and its replicas fill from it.

The ack waits for the upload and a majority of the replicas, for every acks value. In KIP-1163 the broker answers once the coordinator has committed the object.

Transactions and the idempotent producer work on data in object storage today, with the producer state and the markers in the Raft log. KIP-1163 says diskless topics will support both as classic topics do, for transaction protocol v2 and newer, and leaves the design to a separate KIP.

A reconciler rewrites L0 data into L1 objects that keep each partition’s range together, registered in a metastore of its own. The KIPs leave merging objects to KIP-1165.

## See it in the simulator

- Simulator, [Redpanda: the write path](https://monedula.dev/kafka-simulator/scenarios/redpanda-write-path/) step 5: broker-2, the Raft leader of orders-1 and orders-4, replicated their placeholders, about 100 bytes each and pointing into l0-0001, to broker-1 and broker-3; the simulator draws this as the followers fetching. At a majority the high watermark moved to 2, and p-all (acks=all) and p-one (acks=1) were acked at the same moment. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.1&t=4)
- Simulator, [Redpanda: from L0 to L1, and who serves a read](https://monedula.dev/kafka-simulator/scenarios/redpanda-l0-to-l1-read-tiers/) step 3: g-lag started at offset 0, at or below the LRO, so broker-2 read L1 object l1-0001 from S3 into its disk cache and served it from there. Offset 2, above the LRO, came from broker-2’s batch cache, where g-tail also read both new records. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.4&t=2)
- Simulator, [Redpanda: the leader crashes, an election, nothing to replay](https://monedula.dev/kafka-simulator/scenarios/redpanda-leader-crash-election/) step 2: broker-2, the leader of orders-1, was hard-killed. order-4, in its open L0 buffer, is lost, and l0-0003, uploaded but with its only placeholder in broker-2’s log, is an orphan; neither was acked, and p-idem gets REQUEST_TIMED_OUT, the simulator’s stand-in for the lost connection. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.2&t=1)
- Simulator, [Redpanda: the leader crashes, an election, nothing to replay](https://monedula.dev/kafka-simulator/scenarios/redpanda-leader-crash-election/) step 4: 1.5 s after the kill, the election timeout, broker-1 leads orders-1 in term 1, one more than before; it won the tie with broker-3 on its id, the simulator’s pick. Nothing was replayed: its Raft log already held the placeholders of every acked record. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.2&t=3)
- Simulator, [Redpanda: object storage goes down](https://monedula.dev/kafka-simulator/scenarios/redpanda-object-storage-down/) step 3: S3 is still down, and 5000 ms after p-all sent order-3 the request reached p-all’s request.timeout.ms: p-all got REQUEST_TIMED_OUT, which is retriable, and broker-2 gave up the upload. order-3 never had a placeholder, so it never had an offset, and nothing acked was touched. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.3&t=2)
- Simulator, [Redpanda: object storage goes down](https://monedula.dev/kafka-simulator/scenarios/redpanda-object-storage-down/) step 4: With S3 still down, g-tail read order-2 from broker-2’s batch cache. g-lag starts at offset 0, which only L1 object l1-0001 in S3 holds, so each of its polls returns no records (the simulator’s choice; in Redpanda such a read fails or times out). [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.3&t=3)
- Simulator, [Redpanda: object storage goes down](https://monedula.dev/kafka-simulator/scenarios/redpanda-object-storage-down/) step 6: S3 came back: the retried upload went through, order-3 took offset 2 and p-all was acked, and both groups read all three records. Nothing acked was lost, and the reconciler moved offsets 1 and 2 into l1-0002, LRO 2. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.3&t=5)
- Simulator, [Redpanda: from L0 to L1, and who serves a read](https://monedula.dev/kafka-simulator/scenarios/redpanda-l0-to-l1-read-tiers/) step 4: g-zone runs in az-c with client.rack=az-c and the cluster sets enable_rack_awareness=true, so it reads orders-1 from broker-3, the follower in its zone. broker-3 holds only the placeholder and no batch cache, so it downloaded the whole L0 object l0-0003 from S3 into its disk cache; the read stayed in az-c. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.4&t=3)
- Simulator, [Redpanda: from L0 to L1, and who serves a read](https://monedula.dev/kafka-simulator/scenarios/redpanda-l0-to-l1-read-tiers/) step 5: broker-3 then served order-6, on orders-4 and in the same L0 object, from its disk cache with no second GET: one download of l0-0003 served both partitions. In the simulator a poll is one fetch, so g-zone read the two partitions one at a time. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=11.1.4&t=4)

The simulator follows Redpanda’s code at v26.2.2, with choices of its own where the sources are silent. The scenarios here stretch the timings so each step is visible: the L0 buffer closes after 500 ms instead of Redpanda’s 250 ms, and an upload takes 600 ms, a figure Redpanda’s sources do not give. Raft is drawn on the simulator’s own replication: the followers fetch the placeholders from the leader 300 ms after the append, where in Redpanda the Raft leader sends them; the high watermark is the offset a majority of the replicas holds, and no votes or heartbeats are drawn. An election takes exactly the 1.5 s election timeout, and a tie is broken by broker id. A graceful stop is drawn as maintenance mode, then stop: the broker hands each partition it leads to a caught-up follower first; a stop without maintenance mode is not offered. When a broker is killed its unanswered requests get REQUEST_TIMED_OUT at once, standing in for the lost connection, and while a partition has no leader the retries are refused with NOT_LEADER_OR_FOLLOWER, where a real Java client holds them until a leader is known. The reconciler runs every 2 s (Redpanda adapts between 250 ms and 10 s), and a new LRO takes effect in the tick its L1 object is registered, with no timed Raft round. A transaction’s commit or abort waits for its records, checking every 50 ms, and its markers take no offset, where Redpanda writes them to the Raft log with offsets. With S3 down an upload is retried every 1 s until the request’s timeout, and the tailing read’s 500 ms wait for the batch cache is not modelled. Orphaned L0 objects stay drawn, because the 12 h garbage collection is not modelled. One simulated poll is one fetch. The scenarios’ consumer groups use the simulator’s KIP-848 protocol, which Redpanda does not serve at v26.2.2; their reads are drawn the same way. A follower in a consumer’s zone serves its reads only while the leader can reach it: Redpanda’s docs do not cover this case, and the simulator follows its code at v26.2.2, where the leader offers a consumer only a replica that its follower metrics mark as alive (fetch.cc). A follower that a network partition cuts off from the leader is skipped from the moment of the cut, with no heartbeat timeout drawn, and that zone’s consumers read from the leader until the heal. Not modelled: Tiered Storage v2 (`tiered_cloud`), compaction and retention on L1, remote read replicas, the L1 metastore’s own replication, leader pinning, quotas and multi-region clusters.

## The proposals behind it

- [KIP-1150 explained: diskless topics in Apache Kafka](https://monedula.dev/kafka/kips/kip-1150/)

## Sources

- [Redpanda docs: Manage Cloud Topics](https://docs.redpanda.com/streaming/current/develop/manage-topics/cloud-topics/)
- [Redpanda release notes](https://docs.redpanda.com/streaming/current/reference/releases/redpanda/)
- [What’s new in Redpanda 26.2](https://docs.redpanda.com/streaming/current/get-started/release-notes/redpanda/)
- [Redpanda quick start](https://docs.redpanda.com/streaming/current/get-started/quick-start/)
- [Redpanda docs: Kafka compatibility](https://docs.redpanda.com/streaming/current/develop/kafka-clients/)
- [Redpanda docs: How Redpanda works](https://docs.redpanda.com/streaming/current/get-started/architecture/)
- [Redpanda docs: consumer offsets](https://docs.redpanda.com/streaming/current/develop/consume-data/consumer-offsets/)
- [Redpanda docs: follower fetching](https://docs.redpanda.com/streaming/current/develop/consume-data/follower-fetching/)
- [Redpanda docs: leader pinning](https://docs.redpanda.com/streaming/current/develop/produce-data/leader-pinning/)
- [Redpanda topic property redpanda.storage.mode](https://docs.redpanda.com/streaming/current/reference/properties/topic-properties/#redpanda-storage-mode)
- [Redpanda cluster property cloud_topics_produce_upload_interval](https://docs.redpanda.com/streaming/current/reference/properties/cluster-properties/#cloud_topics_produce_upload_interval)
- [Redpanda cluster property cloud_topics_produce_batching_size_threshold](https://docs.redpanda.com/streaming/current/reference/properties/cluster-properties/#cloud_topics_produce_batching_size_threshold)
- [Redpanda cluster property election_timeout_ms](https://docs.redpanda.com/streaming/current/reference/properties/cluster-properties/#election_timeout_ms)
- [Redpanda cluster property enable_rack_awareness](https://docs.redpanda.com/streaming/current/reference/properties/cluster-properties/#enable_rack_awareness)
- [Redpanda: Cloud Topics product page](https://www.redpanda.com/data-streaming/cloud-topics-write-to-object-storage)
- [Redpanda blog: Cloud Topics architecture](https://www.redpanda.com/blog/cloud-topics-architecture)
- [Redpanda press release: Redpanda Streaming 26.1](https://www.redpanda.com/press/redpanda-streaming-26-1-introduces-industrys-first-adaptable-streaming-engine)
- [Redpanda v26.2.2 release](https://github.com/redpanda-data/redpanda/releases/tag/v26.2.2)
- [Cloud Topics license header (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L1-L9)
- [Cloud topic creation checks (topics_frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cluster/topics_frontend.cc#L649-L672)
- [Kafka APIs the broker serves (handlers.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/kafka/server/handlers/handlers.h#L67-L115)
- [L0 upload trigger (write_request_scheduler.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/write_request_scheduler/write_request_scheduler.cc#L293-L321)
- [L0 object holds many partitions (aggregator.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/batcher/aggregator.cc#L145-L157)
- [Cloud Topics upload size and interval defaults (configuration.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/config/configuration.cc#L4898-L4911)
- [L0 upload with retries (batcher.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/batcher/batcher.cc#L69-L142)
- [Cloud Topics upload deadline (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L686-L691)
- [Placeholder batch (placeholder.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/stm/placeholder.h#L19-L38)
- [Cloud Topics epoch fence and expected term (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L800-L846)
- [Cloud Topics forces a quorum ack (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L658-L673)
- [Cloud Topics leader steps down after a failed replication (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L870-L918)
- [Cloud Topics batch cache fill (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L920-L943)
- [Idempotent sequence check (rm_stm.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cluster/rm_stm.cc#L1135-L1177)
- [Producer state from placeholders (rm_stm.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cluster/rm_stm.cc#L1798-L1806)
- [Commit marker replicated through Raft (rm_stm.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cluster/rm_stm.cc#L610-L614)
- [Abort marker replicated through Raft (rm_stm.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cluster/rm_stm.cc#L781-L784)
- [Cloud Topics read tiers (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L252-L322)
- [Tailing read waits for the batch cache (level_zero_reader.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/frontend_reader/level_zero_reader.cc#L104-L130)
- [L0 object download into the disk cache (materialized_extent.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/reader/materialized_extent.cc#L129-L207)
- [Cloud Topics fetch from a follower (frontend.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/frontend/frontend.cc#L1330-L1374)
- [Rack-aware replica selection (fetch.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/kafka/server/handlers/fetch.cc#L325-L345)
- [Reconciler: L0 to L1 (reconciler.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/reconciler/reconciler.h#L77-L89)
- [Reconciler reads committed data only (reconciliation_source.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/reconciler/reconciliation_source.cc#L197-L209)
- [L1 metastore topic (namespace.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/model/namespace.h#L94-L96)
- [L1 metastore replicated LSM database (replicated_db.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_one/metastore/lsm/replicated_db.h#L34-L61)
- [L1 metastore partitions (configuration.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/config/configuration.cc#L5252-L5262)
- [Raft election timeout default (configuration.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/config/configuration.cc#L1267-L1272)
- [Produce error codes (produce.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/kafka/server/handlers/produce.cc#L85-L129)
- [L0 garbage collection rule (level_zero_gc.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/gc/level_zero_gc.cc#L1194-L1215)
- [L0 garbage collection minimum age (configuration.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/config/configuration.cc#L5134-L5140)
- [Cluster epoch fence per term (ctp_stm.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_zero/stm/ctp_stm.cc#L457-L531)
- [Cloud Topics retention (housekeeper.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/housekeeper/housekeeper.h#L24-L39)
- [Housekeeping interval, 5 min by default (configuration.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/config/configuration.cc#L2384-L2389)
- [Cloud Topics housekeeper uses the housekeeping interval (manager.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/housekeeper/manager.cc#L202-L208)
- [Cloud Topics compaction on L1 (scheduler.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/cloud_topics/level_one/maintenance/scheduler.h#L34-L47)
- [Cloud Topics compaction interval, 30 s by default (configuration.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/config/configuration.cc#L5019-L5024)
- [Storage mode conversions (config_utils.h)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/kafka/server/handlers/configs/config_utils.h#L371-L431)
- [Rack-aware selector skips replicas not alive (fetch.cc)](https://github.com/redpanda-data/redpanda/blob/v26.2.2/src/v/kafka/server/handlers/fetch.cc#L1931-L1982)

## Changes to this page

- 19 November 2026: Published, with simulator steps from scenarios 11.1.1 to 11.1.4.
