Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.

Speed up the Kafka step in the demo walkthrough - #34

Merged
WillCraig merged 1 commit into
mainfrom
fix/walkthrough-kafka-wait
Oct 22, 2026
Merged

WillCraig merged 1 commit into
mainfrom
fix/walkthrough-kafka-wait

Conversation

@WillCraig

Copy link
Copy Markdown
Owner

Step 5 of defense/demo-walkthrough.sh read the whole topic and then sat idle for 8 seconds waiting for more messages, with nothing on screen. On the projector it looked like a hang.

  • Count the messages in the topic first (kafka-get-offsets.sh) and pass that to --max-messages, so the consumer stops as soon as it has read them. The 10s timeout is only a safety net.
  • Print "Reading the topic from the start. This takes about 5 seconds..." so the wait is explained.
  • Step 4 now shows only the newest visible note with its time, instead of soft-deleted rows showing visible = f.

Tested: 6 full runs (AUTO=1) against the local stack, all checks green each time, about 6 seconds per run.

@WillCraig
WillCraig merged commit fd147f6 into main Oct 22, 2026
8 checks passed
@WillCraig
WillCraig deleted the fix/walkthrough-kafka-wait branch October 22, 2026 13:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant