Skip to main content
Version: 0.4.1

KQ118 — a sync carries messages about its entity

Lint · sync-carries-its-object · Data

A message a sync carries is about the Domain Object its replica represents.

A sync carries an event, a command or a query about another domain object than the one its replica holds. Sometimes that is right, an order event carrying the customer's details; more often the wrong message is named, or the copy belongs in another entity. Name the message about the entity's own domain object, or move the sync to the entity it keeps.

Examples​

A copy of the shopper kept by order-placed, an event about the order, raises KQ118:

component billing { sql billing-db "Billing DB" { root shopper from order-service over events/orders carries order-service/order-placed } }

Kept by shopper-moved, an event about the shopper, it raises nothing:

component billing { sql billing-db "Billing DB" { root shopper from order-service over events/orders carries order-service/shopper-moved } }

© 2026 Extenza Works. All rights reserved.