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

@@ -112,6 +112,10 @@ impl ImageCleanupHandler {
#[async_trait]
impl EventHandler for ImageCleanupHandler {
fn name(&self) -> &'static str {
"image_cleanup"
}
async fn handle(&self, event: &DomainEvent) -> Result<(), DomainError> {
let poster_path = match event {
DomainEvent::MovieDeleted { poster_path, .. } => poster_path,