Skip to content

Update architecture diagrams and demo videos for the pluggable transport - #9

Merged
sovikroy merged 4 commits into
mainfrom
claude/peaceful-ride-jm78l4
Nov 4, 2026
Merged

sovikroy merged 4 commits into
mainfrom
claude/peaceful-ride-jm78l4

Conversation

@sovikroy

@sovikroy sovikroy commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Brings the docs and demo videos in line with the pluggable messaging transport (Redis / RabbitMQ / TCP / in-memory). Also fixes a scaffold bug that change introduced.

Docs

ARCHITECTURE.md

  • Repository layout diagram now shows .claude/skills/new-service/ and docs/.
  • New work-queue scaling diagram: two notifier-worker replicas share one queue. It matches a real run, where 4 orders were split 2/2 and nobody was notified twice.
  • New TCP broker section with a wire-protocol sequence diagram: publish/receive/ping, long-poll timeout, requeue when a client goes away.
  • How to run the stack without Docker, and the start-up error for an unknown broker scheme.
  • CI diagram now includes the tcp-broker test job, so the "left out of the picture" note is gone.
  • New-service section explains how --broker wiring works and how app ports are picked.

README.md: new demo caption, a link to the second video, docs/ and .claude/ added to the layout tree, and a "without Docker" snippet.

I rendered all 12 Mermaid diagrams with mermaid 11 to check they parse.

Videos

  • docs/demo.gif / .mp4 (overview, 68s, now 4 scenes):
    • HTTP + broker.
    • New: swap Redis for the TCP broker using only BROKER_URL, plus the error for an unknown scheme.
    • CI scene with current output (tcp-broker is now affected by messaging changes).
    • scaffold.py --broker.
  • New docs/brokers.gif / .mp4 (64s), embedded in the Messaging section:
    • The stack on Redis.
    • Swapping to tcp-broker.
    • Scaling out to two worker replicas.
    • Contract tests across backends, plus the fail-fast error for unknown schemes.
  • docs/demo/player.html can now play several demos (?demo=overview|brokers). record.mjs renders all of them, or only the ones you name.

All output in the videos comes from real local runs (uv run services, redis-server, apps/tcp-broker). RabbitMQ shows as skipped in the contract tests because no server was available locally. CI's brokers job covers it.

Fix: new-service scaffold port

next_host_port() took the highest host port in compose.yaml. That is now RabbitMQ's management UI port, so a new service got port 15673. It now counts only app mappings ("N:8000") and gives 8003 again. I checked by scaffolding inventory-api --broker in a scratch worktree: ruff, mypy and pytest all pass.

Checks

ruff check ., ruff format --check . and mypy all pass.


Generated by Claude Code

ARCHITECTURE.md:
- Repository layout shows .claude/skills/new-service and docs/.
- New work-queue scaling diagram (two worker replicas sharing a queue).
- New TCP broker section with a wire-protocol sequence diagram.
- Running the stack without Docker, and the fail-fast error for unknown schemes.
- CI diagram includes the tcp-broker test job; new-service notes on broker wiring.

Demo player renders several videos (?demo=overview|brokers); record.mjs
renders all of them, or the ones named. The overview gains a "swap the
broker" scene, and its CI and scaffold scenes use current output (tcp-broker
is now affected by messaging changes; scaffold --broker). A new brokers video
covers Redis, the TCP broker, scaling workers and the contract tests. All
output is from real runs.

Fix new-service scaffold picking host port 15673: it counted RabbitMQ's
management UI port. It now only counts app ports ("N:8000").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SE2PhLQ67hkYEbYoc2znFq
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SE2PhLQ67hkYEbYoc2znFq
@sovikroy
sovikroy merged commit 760e14d into main Nov 4, 2026
16 checks passed
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.

2 participants