Ecotone Identifier Mapping
Simplifies aggregate and saga identifier resolution for the Ecotone PHP framework using attributes and expressions.
This skill provides expert guidance on configuring how Ecotone resolves and loads aggregate and saga instances from incoming commands and events. It covers the full hierarchy of identifier resolution, from native property matching and #[TargetIdentifier] attributes to advanced expression-based mapping and metadata overrides. By utilizing this skill, developers can ensure messages are correctly routed to business entities even when property names differ or when routing depends on complex header-based logic.
주요 기능
01Explicit property mapping with #[TargetIdentifier] and #[IdentifierMethod]
02Streamlined identifierMetadataMapping for direct header-to-identifier links
03Native identifier resolution through automatic property name matching
0452 GitHub stars
05Expression-based mapping for extracting identifiers from payloads or headers
06Metadata-based overrides using the aggregate.id header for high-priority routing
사용 사례
01Correlating domain events to sagas to manage complex, long-running business processes
02Wiring commands to aggregates when message property names don't match entity identifiers
03Implementing custom routing logic for legacy message structures using SpEL-like expressions