feat: processed-event ledger, idempotent dispatch

This commit is contained in:
2026-10-26 00:17:28 +01:00
parent fa8e94817a
commit 5681d0c034
29 changed files with 610 additions and 24 deletions

View File

@@ -31,6 +31,10 @@ impl PersonEnrichmentHandler {
#[async_trait]
impl EventHandler for PersonEnrichmentHandler {
fn name(&self) -> &'static str {
"person_enrichment"
}
async fn handle(&self, event: &DomainEvent) -> Result<(), DomainError> {
let (person_id, external_person_id) = match event {
DomainEvent::PersonEnrichmentRequested {