---
title: "Nisshi diskless Kafka: reading through another broker"
description: "On Nisshi's S3 engine a consumer on another broker sees a record when its broker's 5 s copy of watermark.json expires; group changes come at the 500 ms poll."
url: https://monedula.dev/kafka-simulator/scenarios/nisshi-reading-through-another-broker/
---

# Nisshi diskless Kafka: reading through another broker

Scenario 12.1.4 · Nisshi: reading through another broker. Diskless · Advanced · about 4 min · Apache Kafka 4.4 · Nisshi 0.8.2.

Nisshi 0.8.2 on S3 · a consumer on the writing broker sees a record at its next poll, one on another broker when that broker's 5 s copy of watermark.json expires; group changes travel at the 500 ms group poll.

Run it: https://monedula.dev/kafka-simulator/playground/?scenario=12.1.4

## What you start with

On Nisshi's S3 engine a broker reads a partition's high watermark through its own copy of watermark.json and reads it again once the copy is 5 s old: the object store cache in the code. The broker that wrote a record knows it at once; another broker learns it when its copy expires. Consumer group state lives in the storage engine too, and each broker polls it every 500 ms. p1 and group g1 talk to broker-1, group g2 to broker-2.

## Step by step

1. **Both groups read offset 0** (t+0.600s): p1 writes through broker-1: offset 0 is stored at 500 and acked at 501. g1's c1 polls broker-1 and g2's c2 polls broker-2 at 600; neither broker held a copy of orders-0's watermark.json yet, so both read it from S3 and both see offset 0. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.4&t=0)
2. **p1 writes offset 1 through broker-1** (t+1.901s): broker-1 writes orders-0's watermark.json (version 2) at 1600, the batch at 1900, and p1 is acked at 1901. broker-1's own copy now says high watermark 2; broker-2's copy, read at 600, still says 1. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.4&t=1)
3. **c1 reads offset 1; c2 does not see it yet** (t+3.000s): c1 on broker-1 reads offset 1 at its 2400 poll. c2 polls broker-2 at 2400 and 3000 and gets nothing: broker-2 serves from its copy of watermark.json, which is younger than 5 s. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.4&t=2)
4. **broker-2's copy is 5 s old: c2 reads offset 1** (t+6.000s): broker-2's copy expired at 5600. At c2's 6000 poll broker-2 reads watermark.json again (high watermark 2) and serves offset 1, 4.1 s after it was acked. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.4&t=3)
5. **c3 joins g2 through broker-3** (t+7.000s): c3 joins g2 at 7000 and is hashed to broker-3 (the simulator's choice). The group's state lives in the storage engine, not in a coordinator broker. c2 waits on broker-2 and c3 on broker-3, so the change reaches them at their brokers' next poll of the stored group state, every 500 ms. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.4&t=4)
6. **At the 500 ms poll c2 gets orders-0 and orders-1, c3 orders-2** (t+7.500s): The new assignment lands at 7500, the first 500 ms tick after the simulator's 300 ms rebalance step. g2 uses the classic protocol (range), the one Nisshi implements: c2 gets orders-0 and orders-1, c3 gets orders-2. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=12.1.4&t=5)

## The takeaway

A record written through broker-1 reached c1 at its next poll, and reached c2, on broker-2, only when broker-2's copy of watermark.json was 5 s old and read again: 4.1 s after the ack here, and anywhere from 0 to 5 s in general. Group changes travel through storage as well: c3's join was stored, and the members on two brokers got the new assignment at their brokers' 500 ms poll of the group state (--group-poll-interval). No coordinator broker took part: FindCoordinator answers the broker that received it. Simulator choices: the pinned brokers and the hash for c3, a copy that lives exactly 5 s, the poll ticks counted from the start of the scene, and the 300 ms rebalance step.

## Configs in this scenario

- [`--group-poll-interval`](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/docs/consumer-groups.md): A Nisshi broker option, 500 ms by default, for how often a broker reads the stored consumer group state, so a group change made through another broker reaches its members within that interval.

## Further reading

- [Nisshi v0.8.2 source on GitHub](https://github.com/nisshi-io/solace-nisshi/blob/v0.8.2/nisshi-storage-dynostore/src/dynostore.rs#L1093-L1096)
