Skip to content

refactor(delivery): engine publishes, specs only name the subject - #2388

Merged
semen-flamingo merged 4 commits into
mainfrom
feature/delivery-common-publish
Sep 25, 2026
Merged

semen-flamingo merged 4 commits into
mainfrom
feature/delivery-common-publish

Conversation

@semen-flamingo

Copy link
Copy Markdown
Contributor

Follow-up to #2212, from Kirill's note: every spec would carry the same NATS publish, so move it into the engine.

  • DeliverySpec.publish(machineId, payload) → subject(machineId). A spec now only builds the payload and names the subject.
  • New DeliveryPublisher in the engine; NatsDeliveryPublisher (data-nats) implements it over NatsMessagePublisher.publish (core NATS, same as before).
  • DeliveryDispatcher and DeliverySweepService publish via DeliveryPublisher. The dispatcher takes it through ObjectProvider, because the dispatcher bean also exists in services without NATS.

Wire bytes and subjects are unchanged: machine.{id}.tool-installation, same payload. No config changes.

Tests: machine-delivery 50, data-nats 77, client-core 225, api-service-core 466 — all green locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SnaktPhqs3aeuuUHdXCAjX

Kirill's review note: every spec would repeat the same NATS publish. DeliverySpec.publish(machineId, payload)
becomes subject(machineId); DeliveryDispatcher and DeliverySweepService publish through the new
DeliveryPublisher, implemented over NatsMessagePublisher in data-nats. Wire bytes unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SnaktPhqs3aeuuUHdXCAjX
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦩 Flamingo Code Review

2 finding(s) — 0 action required · 2 recommended · 0 informational

Mode: advisory · Rules cited: OPENFRAM-002-16, OFJAVA-035

Inline comments: 2 new


Need another pass? Commits pushed after this review are not reviewed automatically.

  • Review the new commits — the commits added since this review
  • Review the whole diff again — ignoring what was already reviewed

Prefer typing? Comment @flamingo-review, or @flamingo-review full. To review every push on this pull request, add the flamingo-review-always label.

React 👍/👎 on inline comments to teach the reviewer.

Started 2026-09-25 09:11 UTC · updated 2026-09-25 09:12 UTC · workflow run

@semen-flamingo
semen-flamingo merged commit 2f9d69c into main Sep 25, 2026
14 of 15 checks passed
@semen-flamingo
semen-flamingo deleted the feature/delivery-common-publish branch September 25, 2026 12:05
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.

3 participants