KQ114 — a publisher holds what its event is about
Lint · publisher-holds-its-object · Events, commands and queries
The Component publishing an event holds a Data Entity of the Domain Object the event is about.
The component that publishes an event holds no data entity of the domain object the event is about. A publisher usually says what happened to data it keeps. Add the entity to one of its storages, or check that the event is declared in the right component.
Examples
The shipping service holds no data, so an event it publishes about the order raises KQ114:
component shipping {
event order-shipped "Order shipped" about order
}
shipping -> billing over events/shipments carries order-shipped
Once it keeps a copy of the order, it holds what its event is about and raises nothing:
component shipping {
event order-shipped "Order shipped" about order
sql shipping-db "Shipping DB" {
root order from order-service over events/orders carries order-service/order-placed v2
identifier "Order Id"
}
}
shipping -> billing over events/shipments carries order-shipped
© 2026 Extenza Works. All rights reserved.