Define the Domain Model and Ownership
The domain model identifies important entities such as Customer, Order, Booking, Payment, Invoice, Notification and Reconciliation Record. Not every application uses these entities, and their relationships must reflect the actual business. The model also identifies who owns each record and which system is authoritative. A payment provider may be authoritative for a captured payment, while the application remains responsible for determining whether that payment can be associated with a valid business order. A supplier confirmation does not automatically establish that every requested service was fulfilled. These distinctions prevent a common implementation mistake: treating externally received technical events as final business decisions.
Domain rules should remain in maintainable application components rather than becoming scattered across event handlers.


