---
title: "How Nisshi works: stateless Kafka brokers, shared storage"
description: "Nisshi 0.8.2 step by step: every broker is node 111, offsets from a conditional write of watermark.json on S3 or a row lock on PostgreSQL, failures and gaps."
url: https://monedula.dev/kafka/diskless/nisshi/
---

# How Nisshi works

Solace · vendor implementation · checked against its sources on 24 November 2026.

Nisshi is an Apache 2.0 broker written in Rust that speaks the Kafka protocol and keeps no data of its own: a storage engine holds every record, offset and group, and every broker answers as node 111, so any broker serves any request. On its S3 engine, which its docs call experimental, a broker takes a batch’s offsets with a conditional write of the partition’s watermark.json, then writes the batch as its own object; on PostgreSQL, its production engine, each write is one transaction holding the partition’s watermark row lock.

## At a glance

- Name: Nisshi (formerly Tansu) took its new name with release 0.7.0 (16 October 2026); the old repository URL redirects to the new one, and the `tansu.*` topic keys are deprecated aliases of `nisshi.*` since 0.8.0. ([Nisshi v0.8.2: CHANGELOG](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/CHANGELOG.md))
- Owner: Solace "acquired the assets of Nisshi.io" in October 2026, and the creator, Peter Morgan, joined Solace to lead its engineering. Solace says an enterprise version and a supported version are in development and not yet generally available. ([Solace blog: Nisshi, Kafka-compatible diskless streaming (27 October 2026)](https://solace.com/blog/nisshi-kafka-diskless-streaming/))
- License: Apache 2.0. The README says "The license stays Apache 2.0, and what is open stays open", and that the project is provided as is, with no Solace Support commitment. ([Nisshi v0.8.2: README](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/README.md))
- Version: Release 0.8.2, 4 November 2026, the latest tag on 24 November 2026. Its main branch is 107 commits ahead and changes some failure answers; this page describes the tag. ([Nisshi v0.8.2: CHANGELOG](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/CHANGELOG.md))
- Language and protocol: A broker written in Rust whose Kafka protocol is generated from the Kafka 3.9.1 descriptors. "Idempotent producers work. Transactions are not supported." ([Nisshi v0.8.2: README](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/README.md))
- Storage engines: The docs rate each engine: PostgreSQL "Suitable for production"; S3 and Google Cloud Storage "Experimental. Available for continuity. Not recommended for production."; SQLite "Suitable for development"; in-memory for development and testing; Turso experimental; SlateDB deprecated. Docker Compose runs on PostgreSQL by default. ([Nisshi v0.8.2: storage engines (docs/storage.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/storage.md))
- Stateless brokers: ARCHITECTURE.md: "There is no partition leadership to move and no replication between brokers. Every broker reports the same node ID, 111". The README adds that brokers "keep no data of their own, and the storage engine holds topics, messages and consumer groups". This holds for an engine brokers can share; `memory://` is each broker’s own. ([Nisshi v0.8.2: ARCHITECTURE.md, a stateless broker (L104-L113)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/ARCHITECTURE.md#L104-L113))
- "Diskless": The sources differ in words. Solace calls Nisshi "diskless streaming" with data in "shared storage"; the repository docs never use the word, and the production engine keeps the data in a PostgreSQL database. ([Solace blog: Nisshi, Kafka-compatible diskless streaming (27 October 2026)](https://solace.com/blog/nisshi-kafka-diskless-streaming/))
- "Completely stateless": The sources differ. The docs’ S3 page calls each broker "completely stateless"; the code caches `watermark.json` and `meta.json` on each broker for up to 5 s, so a broker’s view of the high watermark can lag a write through another broker. Both hold: the brokers keep no data. ([Nisshi v0.8.2 source: dynostore.rs, the 5 s object store cache (L1093-L1096)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore.rs#L1093-L1096))

## The write path, up to the ack

1. Any broker takes the request: Every broker answers Metadata as node 111, the leader of every partition, so a client sends produce, fetch and group requests to whichever broker it connected to. There is no partition leadership and no replication between brokers (ARCHITECTURE.md). How clients spread over several brokers, through a load balancer or a bootstrap list, the sources do not say.
2. S3: a conditional write of watermark.json takes the offsets: For each partition in the request the broker raises the high watermark in the partition’s `watermark.json` by the batch’s record count and writes it back against the version it holds. If another broker wrote it first, the store refuses the write (precondition failed); the broker reads the document again and writes again, with no cap and no backoff (opticon.rs). The offsets are this request’s once the write lands, before any data is written.
3. S3: the batch becomes its own object: The broker writes the batch as one object per partition and request, named by its first offset (`.../records/<base offset>.batch`), created only if absent.
4. S3: meta.json records an idempotent sequence: For an idempotent producer the broker then advances the producer’s sequence in the cluster-wide `meta.json`, again with a conditional write; the code advances it "only after it stores the batch".
5. PostgreSQL: one transaction per partition: On PostgreSQL the same request is one READ COMMITTED transaction per partition: it locks the partition’s watermark row (`select ... for no key update`), checks an idempotent sequence under that lock, inserts the records as rows, moves the watermark and commits. A second writer of the partition waits for the lock (pg.rs).
6. Ack (the producer is acked here): The broker answers once the batch is stored: after the object (and `meta.json`) on S3, after the commit on PostgreSQL. With no replication to wait for, every acks value waits for storage.

Simulator, [Nisshi: the write path](https://monedula.dev/kafka-simulator/scenarios/nisshi-write-path/) step 2: broker-1’s conditional write created orders-0’s watermark.json (version 1, high watermark 1): offset 0 is p1’s before the batch object exists. The PUT that writes it runs until 500 ms. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.1&t=1)

## Where the latency comes from

Source: [Solace blog: Nisshi, Kafka-compatible diskless streaming (27 October 2026)](https://solace.com/blog/nisshi-kafka-diskless-streaming/).

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

- S3: conditional write of watermark.json: the sources give no figure; a lost race adds one read and one write
- S3: batch object PUT: the sources give no figure
- S3: meta.json write (idempotent producers): the sources give no figure
- PostgreSQL: one transaction: the sources give no figure; a second writer of the partition also waits for the row lock

Nisshi’s docs give no produce or fetch latency for any engine. Solace’s announcement speaks of "a minor latency overhead" of diskless streaming and gives no figure.

The only measurements are on the Nisshi blog, for the SQLite engine on one host: 48 MB/s with a maximum latency of 114 ms (January 2026). They say nothing about S3 or PostgreSQL, or several brokers.

Simulator, [Nisshi on PostgreSQL: one transaction per write](https://monedula.dev/kafka-simulator/scenarios/nisshi-postgresql-row-lock/) step 3: On PostgreSQL p1 and p2 wrote orders-0 in the same millisecond: p2’s transaction waited for p1’s row lock and committed right after, so p2 was acked 15 ms after p1. The 15 ms transaction is the simulator’s figure. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.2&t=2)

## Who orders the batches

Nisshi has no coordinator, no metadata service and no partition owner: the storage engine orders the writes. On S3 the order is the order in which conditional writes of the partition’s `watermark.json` land, so two brokers can write one partition at once and the loser of a race pays one read and one write. On PostgreSQL it is the order of the transactions that hold the partition’s watermark row lock.

Consumer groups live in the storage engine too: there is no `__consumer_offsets` topic, FindCoordinator answers the broker that received the request, and the members of one group may connect to different brokers. A broker sees changes made through another broker when it reads the group again, every 500 ms (`--group-poll-interval`). Only the classic group protocol is implemented.

Producer state for idempotence is stored as well: in `meta.json` on S3, in rows on PostgreSQL. The docs describe what each engine answers to a retried batch: S3 answers a retry of one of the producer’s last 5 batches with the stored offset, and PostgreSQL answers every batch below the next sequence with DUPLICATE_SEQUENCE_NUMBER and base offset -1.

## The read path

A fetch goes to the consumer’s broker, which reads the batches from the storage engine. On PostgreSQL the watermark row and the rows are read together, so every broker sees a commit at once.

On S3 the broker reads the partition’s high watermark through its own copy of `watermark.json`, which the code caches for 5 s. A consumer on the broker that wrote a record sees it at once; a consumer on another broker sees it when that broker’s copy expires, up to 5 s later. The code says so in its own comment: "On dynostore the high watermark that this broker reads can lag a write through another broker by the retention of its metadata cache (5s)".

Offsets that a watermark write took but whose batch was never written are a gap. The code’s comment says "a failed batch write leaves a gap that Kafka does not have", and that a fetch skips the gap. A second comment says that, because the offsets are taken before the batch is written, "a listing can see a later batch and not an earlier one that is still in flight". The sources do not say what a consumer that reads past such a batch then sees, and the simulator does not show that case.

An empty fetch waits by reading the store again, sleeping half the remaining wait between rounds; there is no notification. Committed offsets never expire, and on S3 an offset commit overwrites the stored one without a version check.

Simulator, [Nisshi: reading through another broker](https://monedula.dev/kafka-simulator/scenarios/nisshi-reading-through-another-broker/) step 4: broker-2’s copy of orders-0’s watermark.json, read at 600 ms, expired at 5600 ms. At c2’s poll at 6000 ms broker-2 read the document again and served offset 1, 4.1 s after it was acked; c1, on broker-1 where it was written, had read it at 2400 ms. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.4&t=3)

## When something fails

- A broker dies (S3): Nothing moves, since no broker holds data or leadership; where its clients go next is up to their own reconnect logic, which the sources do not describe. A request in flight ends where it is: before its watermark write nothing was taken; after it and before the batch object is written, the offsets are a gap; after the batch, it is stored without an ack, so a plain producer’s retry stores it a second time. ([Nisshi v0.8.2 source: dynostore.rs, the gap comment (L3005-L3016)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore.rs#L3005-L3016), [Nisshi v0.8.2: ARCHITECTURE.md, a stateless broker (L104-L113)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/ARCHITECTURE.md#L104-L113))
- An idempotent batch stored, its sequence not: The code names a "Known residual": if the `meta.json` advance fails after the batch is stored, by a transient store error or a shutdown that aborts the request, "the client’s retry then passes the check and stores the batch a second time at a new offset". This is the code’s own comment; the docs describe only the dedupe of the last 5 batches. ([Nisshi v0.8.2 source: dynostore.rs, the idempotent "Known residual" (L2441-L2447)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore.rs#L2441-L2447))
- A broker dies (PostgreSQL): An open transaction rolls back: nothing is stored and no gap is left. A commit whose ack was lost is stored once; the retry of a plain producer stores it again, and an idempotent one’s gets DUPLICATE_SEQUENCE_NUMBER. ([Nisshi v0.8.2 source: pg.rs, one transaction per partition write (L2574-L2626)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-sql/src/pg.rs#L2574-L2626), [Nisshi v0.8.2: Kafka compatibility (docs/compatibility.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/compatibility.md))
- Object storage is unavailable (S3): A produce fails with KAFKA_STORAGE_ERROR, retriable, for a transient storage error, or UNKNOWN_SERVER_ERROR for a permanent one; a batch PUT that fails after the watermark write leaves a gap. At the tag a fetch that fails on storage ends the connection (main, unreleased, answers the partition with KAFKA_STORAGE_ERROR instead). Group requests get COORDINATOR_NOT_AVAILABLE. ([Nisshi v0.8.2 source: produce.rs, storage errors (L215-L220)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage/src/service/produce.rs#L215-L220), [Nisshi v0.8.2 source: broker.rs, a handler error ends the connection (L677-L720)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-broker/src/broker.rs#L677-L720))
- PostgreSQL is unavailable: Produce fails with KAFKA_STORAGE_ERROR and stores nothing, so no gap is left; a fetch ends the connection, as on S3; group requests get COORDINATOR_NOT_AVAILABLE. When PostgreSQL is back, writes resume. ([Nisshi v0.8.2 source: produce.rs, storage errors (L215-L220)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage/src/service/produce.rs#L215-L220), [Nisshi v0.8.2 source: broker.rs, a handler error ends the connection (L677-L720)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-broker/src/broker.rs#L677-L720))
- Two brokers write one partition (S3): Not a failure but the cost of having no leader: the conditional write that lands second is refused, and its broker reads `watermark.json` again and writes again, with no cap and no backoff. A broker whose copy is stale always pays that round. ([Nisshi v0.8.2 source: opticon.rs, the conditional-write loop (L317-L410)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore/opticon.rs#L317-L410))

Simulator, [Nisshi: a broker dies](https://monedula.dev/kafka-simulator/scenarios/nisshi-broker-dies/) step 2: broker-1 dies at 1000 ms with three requests: p-plain’s batch was stored in that millisecond, its ack not yet sent (the simulator answers 1 ms after the store); p-idem’s batch was stored before its meta.json advance; p-gap’s PUT never ends, so offset 0 of orders-2 is a gap. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.5&t=1)

Simulator, [Nisshi: a broker dies](https://monedula.dev/kafka-simulator/scenarios/nisshi-broker-dies/) step 5: The retries through broker-3 are stored again: orders-0 holds p-plain’s record twice, and orders-1 holds p-idem’s twice, the code’s "Known residual". p-gap’s record lands at offset 1 of orders-2. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.5&t=4)

Simulator, [Nisshi: PostgreSQL unavailable](https://monedula.dev/kafka-simulator/scenarios/nisshi-postgresql-unavailable/) step 3: PostgreSQL is down: c1’s fetch makes broker-2 close the connection (shown as REQUEST_TIMED_OUT, the simulator’s code) and its offset commit gets COORDINATOR_NOT_AVAILABLE. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.6&t=2)

Simulator, [Nisshi: PostgreSQL unavailable](https://monedula.dev/kafka-simulator/scenarios/nisshi-postgresql-unavailable/) step 6: PostgreSQL is back: p1’s retry commits orders-2 offset 0. The failed transactions stored nothing, so there is no gap. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.6&t=5)

## Cross-zone traffic

What goes:

- Replication between brokers: brokers keep no replicas, so no broker copies data to another

What stays:

- Every client request: Nisshi routes nothing by zone, so a client talks to whichever broker it reached, in its zone or not
- Every read and write of the storage engine, wherever the store and the brokers run

Nisshi has no zone concept and its sources say nothing about cross-zone traffic or its cost. The simulator draws no zones for Nisshi and counts no cross-zone hop. ([Nisshi v0.8.2: ARCHITECTURE.md, a stateless broker (L104-L113)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/ARCHITECTURE.md#L104-L113))

## Feature support

| Feature | Status | Details |
| --- | --- | --- |
| Idempotent producer | Yes | Supported on every engine, with the KIP-360 epoch bump. On S3 a retry of one of the last 5 batches is answered with the stored offset; on PostgreSQL a batch below the next sequence gets DUPLICATE_SEQUENCE_NUMBER. The code documents a residual case on S3 where a retry is stored twice. [Nisshi v0.8.2: Kafka compatibility (docs/compatibility.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/compatibility.md) |
| Transactions | No | Refused since 0.8.0: an InitProducerId with a `transactional.id` gets TRANSACTIONAL_ID_AUTHORIZATION_FAILED before storage is touched, so Kafka Streams with `exactly_once_v2` fails. 0.7.0 still accepted them. [Nisshi v0.8.2 source: init_producer_id.rs, the transactional id refusal (L109-L124)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage/src/service/init_producer_id.rs#L109-L124) |
| Consumer groups | Partly | Classic groups only, with their state and committed offsets in the storage engine; any broker coordinates any group. The KIP-848 consumer protocol (ConsumerGroupHeartbeat) is not implemented, and committed offsets never expire. [Nisshi v0.8.2: consumer groups (docs/consumer-groups.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/consumer-groups.md) |
| Share groups | No | The KIP-932 APIs are not implemented. [Nisshi v0.8.2: Kafka compatibility (docs/compatibility.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/compatibility.md) |
| Adding partitions | No | CreatePartitions is not implemented: "You cannot add partitions to an existing topic". [Nisshi v0.8.2: Kafka compatibility (docs/compatibility.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/compatibility.md) |
| Retention and compaction | Partly | Applied on PostgreSQL and SQLite, in a maintenance run every 10 minutes by default; the S3 and in-memory engines store `retention.ms`, `retention.bytes` and `cleanup.policy` but keep every record. [Nisshi v0.8.2: Kafka compatibility (docs/compatibility.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/compatibility.md) |
| ACLs and quotas | No | The ACL APIs answer SECURITY_DISABLED, and there are no quotas. SASL SCRAM works on PostgreSQL and SQLite only. [Nisshi v0.8.2: Kafka compatibility (docs/compatibility.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/compatibility.md) |

## Configs

| Config | Level | What it does |
| --- | --- | --- |
| `--storage-engine` | Broker | The storage engine as a URL: `postgres://` for PostgreSQL, `s3://` for S3, also `gs://`, `sqlite://`, `memory://`. Switching engines does not move data; the release binary starts on `memory://`. [Nisshi v0.8.2: storage engines (docs/storage.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/storage.md) |
| `--group-poll-interval` | Broker | How often a JoinGroup or SyncGroup that waits for a rebalance reads the group from the storage engine, to see changes made through other brokers: 500 ms by default. [Nisshi v0.8.2: consumer groups (docs/consumer-groups.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/consumer-groups.md) |
| `--group-initial-rebalance-delay` | Broker | How long the first rebalance of a group waits for more members: 3 s by default. [Nisshi v0.8.2: consumer groups (docs/consumer-groups.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/consumer-groups.md) |
| `maintenance_interval` | Broker | How often the maintenance run applies retention and compaction on PostgreSQL and SQLite: every 10 minutes by default. [Nisshi v0.8.2: Kafka compatibility (docs/compatibility.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/compatibility.md) |
| `pool_max_size` | Broker | The most PostgreSQL connections a broker opens: 16 by default. [Nisshi v0.8.2: storage engines (docs/storage.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/storage.md) |

## How it differs from Apache Kafka

There is no coordinator and no partition leader: on S3 a conditional write of the partition’s `watermark.json` orders the writers, and on PostgreSQL the partition’s row lock does. In KIP-1164 a diskless coordinator assigns the offsets when it commits uploaded objects.

On S3 the offsets are taken before the batch is written, so a write that fails or a broker that dies in between leaves a gap in the offsets, which consumers skip. In the KIPs, offsets are assigned only to batches already uploaded.

Each produce request writes one object per partition. In KIP-1163 a broker’s WAL object mixes batches of many partitions.

Every broker reports itself as node 111, the leader and only replica of every partition, and keeps no replicas. In KIP-1163 a diskless partition keeps replicas that cache committed batches on local disk.

Every topic is stored the same way; there are no classic topics beside it. On the production engine the data lives in PostgreSQL, not in object storage.

## See it in the simulator

- Simulator, [Nisshi: the write path](https://monedula.dev/kafka-simulator/scenarios/nisshi-write-path/) step 2: broker-1’s conditional write created orders-0’s watermark.json (version 1, high watermark 1): offset 0 is p1’s before the batch object exists. The PUT that writes it runs until 500 ms. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.1&t=1)
- Simulator, [Nisshi on PostgreSQL: one transaction per write](https://monedula.dev/kafka-simulator/scenarios/nisshi-postgresql-row-lock/) step 3: On PostgreSQL p1 and p2 wrote orders-0 in the same millisecond: p2’s transaction waited for p1’s row lock and committed right after, so p2 was acked 15 ms after p1. The 15 ms transaction is the simulator’s figure. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.2&t=2)
- Simulator, [Nisshi: reading through another broker](https://monedula.dev/kafka-simulator/scenarios/nisshi-reading-through-another-broker/) step 4: broker-2’s copy of orders-0’s watermark.json, read at 600 ms, expired at 5600 ms. At c2’s poll at 6000 ms broker-2 read the document again and served offset 1, 4.1 s after it was acked; c1, on broker-1 where it was written, had read it at 2400 ms. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.4&t=3)
- Simulator, [Nisshi: a broker dies](https://monedula.dev/kafka-simulator/scenarios/nisshi-broker-dies/) step 2: broker-1 dies at 1000 ms with three requests: p-plain’s batch was stored in that millisecond, its ack not yet sent (the simulator answers 1 ms after the store); p-idem’s batch was stored before its meta.json advance; p-gap’s PUT never ends, so offset 0 of orders-2 is a gap. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.5&t=1)
- Simulator, [Nisshi: a broker dies](https://monedula.dev/kafka-simulator/scenarios/nisshi-broker-dies/) step 5: The retries through broker-3 are stored again: orders-0 holds p-plain’s record twice, and orders-1 holds p-idem’s twice, the code’s "Known residual". p-gap’s record lands at offset 1 of orders-2. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.5&t=4)
- Simulator, [Nisshi: PostgreSQL unavailable](https://monedula.dev/kafka-simulator/scenarios/nisshi-postgresql-unavailable/) step 3: PostgreSQL is down: c1’s fetch makes broker-2 close the connection (shown as REQUEST_TIMED_OUT, the simulator’s code) and its offset commit gets COORDINATOR_NOT_AVAILABLE. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.6&t=2)
- Simulator, [Nisshi: PostgreSQL unavailable](https://monedula.dev/kafka-simulator/scenarios/nisshi-postgresql-unavailable/) step 6: PostgreSQL is back: p1’s retry commits orders-2 offset 0. The failed transactions stored nothing, so there is no gap. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.6&t=5)

The simulator follows Nisshi at tag v0.8.2 and models two engines, S3 and PostgreSQL. Each client is pinned to one broker, a stable hash of its client id (a scene may name the broker); when that broker dies its requests get REQUEST_TIMED_OUT and it moves at once to a hash over the alive brokers. The timings are the simulator’s: 50 ms for a conditional write or a read of a JSON document in S3, 300 ms for a batch object PUT, and 15 ms for a PostgreSQL transaction, borrowed from Inkless’s figure; the produce response leaves 1 ms after the batch is stored. A broker’s copy of `watermark.json` lives exactly 5 s, and the long-poll rounds are not drawn. A later batch never lands before an earlier one in a scene, so the in-flight case of the code’s comment is not shown. Group changes reach members on other brokers at the next 500 ms poll, counted from the start of the scene, and session timeouts keep the simulator’s timer. Storage outages are noticed at once, and a fetch that closes the connection is shown as REQUEST_TIMED_OUT. The PostgreSQL maintenance run can be shortened per cluster in free play. Pausing a broker, network partitions, multi-region clusters, share groups and added partitions are refused, and a replication factor above 1 is built as 1. Not modelled: SQLite, Google Cloud Storage, the in-memory and other engines, the produce batcher, SASL, and the lake tables of later releases.

## The proposals behind it

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

## Sources

- [Nisshi v0.8.2: README](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/README.md)
- [Nisshi v0.8.2: storage engines (docs/storage.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/storage.md)
- [Nisshi v0.8.2: Kafka compatibility (docs/compatibility.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/compatibility.md)
- [Nisshi v0.8.2: consumer groups (docs/consumer-groups.md)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/consumer-groups.md)
- [Nisshi v0.8.2: ARCHITECTURE.md, a stateless broker (L104-L113)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/ARCHITECTURE.md#L104-L113)
- [Nisshi v0.8.2: CHANGELOG](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/CHANGELOG.md)
- [Nisshi v0.8.2 source: dynostore.rs, the S3 produce path (L3018-L3444)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore.rs#L3018-L3444)
- [Nisshi v0.8.2 source: dynostore.rs, the gap comment (L3005-L3016)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore.rs#L3005-L3016)
- [Nisshi v0.8.2 source: dynostore.rs, the idempotent "Known residual" (L2441-L2447)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore.rs#L2441-L2447)
- [Nisshi v0.8.2 source: dynostore.rs, the 5 s object store cache (L1093-L1096)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore.rs#L1093-L1096)
- [Nisshi v0.8.2 source: dynostore.rs, fetch and gap skipping (L1687-L1784)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore.rs#L1687-L1784)
- [Nisshi v0.8.2 source: dynostore.rs, a batch still in flight (L141-L160)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore.rs#L141-L160)
- [Nisshi v0.8.2 source: opticon.rs, the conditional-write loop (L317-L410)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore/opticon.rs#L317-L410)
- [Nisshi v0.8.2 source: pg.rs, one transaction per partition write (L2574-L2626)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-sql/src/pg.rs#L2574-L2626)
- [Nisshi v0.8.2 source: init_producer_id.rs, the transactional id refusal (L109-L124)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage/src/service/init_producer_id.rs#L109-L124)
- [Nisshi v0.8.2 source: produce.rs, storage errors (L215-L220)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage/src/service/produce.rs#L215-L220)
- [Nisshi v0.8.2 source: broker.rs, a handler error ends the connection (L677-L720)](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-broker/src/broker.rs#L677-L720)
- [Solace blog: Nisshi, Kafka-compatible diskless streaming (27 October 2026)](https://solace.com/blog/nisshi-kafka-diskless-streaming/)
- [Nisshi docs: S3 storage engine](https://docs.nisshi.io/docs/storage-engine-s3)
- [Nisshi blog: articles (SQLite measurements, January 2026)](https://blog.nisshi.io/articles)

## Changes to this page

- 24 November 2026: Published, with simulator steps from scenarios 12.1.1, 12.1.2 and 12.1.4 to 12.1.6.
