在 DDD Sample, Cargo Tracking 应用程序中,有“ApplicationEvents”和 DomainEvents。
ApplicationEvents 示例:“cargoHasArrived”、“cargoWasMishandled”
DomainEvent 示例:“HandlingEvent.LOAD”、“HandlingEvent.RECEIVE”、“HandlingEvent.UNLOAD”等。
应用程序和域事件在语义上应该如何不同,您使用哪些准则来确定它是进入 ApplicationEvent 还是 DomainEvent?