Skip to content

[Brook] Added a Topic prefix filter to the read. - #22

Closed
moetemp wants to merge 1 commit into
moe/brook/v3/s5-writersfrom
moe/brook/v3/s6-topic-prefixes
Closed

moetemp wants to merge 1 commit into
moe/brook/v3/s5-writersfrom
moe/brook/v3/s6-topic-prefixes

Conversation

@moetemp

@moetemp moetemp commented Oct 21, 2026

Copy link
Copy Markdown
Owner

What changed?

This PR adds repeated string topic_prefixes = 10 to ReadRecordsRequest. A read gives a Record when its Topic is in topics or starts with one of the prefixes. topics stays an exact match, a Superseded item still passes every filter, and the scan cap per page still applies.

Why?

The harness port reads a family of Topics, such as every tool's Topic, and doesn't know their names in advance (DECISIONS S29).

How did you test it?

STREAMS_REQUIRE=redis cargo test -p temporalio-streams, on standalone and cluster Redis, with a unit test of the filter and a read test with both fields.

  • Unit Tests
  • Staging
  • End to End Tests

The harness reads a family of Topics, such as every tool's, with no list of names. topics stays an exact match, as in Workflow Streams, so the prefixes are a field of their own.
@moetemp

moetemp commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

Closing as stale. This layer is folded into the v5 tip, #41, and the upstream review uses a fresh series instead. Plan: https://www.notion.so/4048fc567738814990b7c796ac28fe3f

@moetemp moetemp closed this Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant