Skip to main content
Version: 0.4.1

KQ098 — a publishing leg carries its publisher's events

Error · publisher-carries-its-own · Events, commands and queries

A leg into a Channel carries only events its sending Component declares.

A connection into a channel carries an event another component declares. An event belongs to the component that publishes it, so a leg into a channel carries only the sender's own. Declare the event in the sender, or name it on the publisher's own leg.

Examples​

order-cancelled is declared by the order service, so billing publishing it on events/orders raises KQ098:

billing -> events/orders carries order-service/order-cancelled

Publishing its own event, invoice-sent, raises nothing:

billing -> events/orders carries invoice-sent

© 2026 Extenza Works. All rights reserved.