#12 Event Bus applicatif #18

Merged
ronan.quintin merged 1 commit from feature/12-event-bus into main 2025-12-25 15:17:47 +01:00

Implémentation complète de l'Event Bus basé sur Spring Application Events.

Infrastructure Event Bus :

  • DomainEvent interface marqueur
  • DomainEventPublisher avec implémentation Spring
  • EventBusConfig (@EnableAsync + DelegatingSecurityContextAsyncTaskExecutor)
  • WorkflowEngine et WorkflowEventListener pour futur workflow

Événements de domaine (records immutables) :

  • PaymentSavedEvent (création/modification paiement)
  • PaymentDeletedEvent (suppression paiement)
  • ReceiptCreatedEvent (création quittance)

Listeners :

  • PaymentEventLogger (sync @TransactionalEventListener AFTER_COMMIT)
  • ReceiptGenerationListener (async @Async pour génération PDF)

Services modifiés :

  • GenericBackendService : hooks publishAfterSave/publishBeforeDelete
  • PaymentService : publication événements Payment
  • ReceiptService : publication événement Receipt

Tests :

  • 18 tests unitaires (SpringDomainEventPublisher, PaymentEventLogger, ReceiptGenerationListener)
  • 14 tests d'intégration (PaymentServiceEvent, ReceiptServiceEvent)

Documentation :

  • 02-ARCHITECTURE_TECHNIQUE.md : section Event Bus complète
  • 03-GUIDE_FONCTIONNEL.md : guide utilisateur Event Bus
  • architect.md : template événements de domaine
  • backend-developer.md : patterns Event Bus

Compilation : BUILD SUCCESS
Tests unitaires : 18/18 passent
Code review : GO pour production

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Implémentation complète de l'Event Bus basé sur Spring Application Events. Infrastructure Event Bus : - DomainEvent interface marqueur - DomainEventPublisher avec implémentation Spring - EventBusConfig (@EnableAsync + DelegatingSecurityContextAsyncTaskExecutor) - WorkflowEngine et WorkflowEventListener pour futur workflow Événements de domaine (records immutables) : - PaymentSavedEvent (création/modification paiement) - PaymentDeletedEvent (suppression paiement) - ReceiptCreatedEvent (création quittance) Listeners : - PaymentEventLogger (sync @TransactionalEventListener AFTER_COMMIT) - ReceiptGenerationListener (async @Async pour génération PDF) Services modifiés : - GenericBackendService : hooks publishAfterSave/publishBeforeDelete - PaymentService : publication événements Payment - ReceiptService : publication événement Receipt Tests : - 18 tests unitaires (SpringDomainEventPublisher, PaymentEventLogger, ReceiptGenerationListener) - 14 tests d'intégration (PaymentServiceEvent, ReceiptServiceEvent) Documentation : - 02-ARCHITECTURE_TECHNIQUE.md : section Event Bus complète - 03-GUIDE_FONCTIONNEL.md : guide utilisateur Event Bus - architect.md : template événements de domaine - backend-developer.md : patterns Event Bus Compilation : BUILD SUCCESS Tests unitaires : 18/18 passent Code review : GO pour production 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Implémentation complète de l'Event Bus basé sur Spring Application Events.

Infrastructure Event Bus :
- DomainEvent interface marqueur
- DomainEventPublisher avec implémentation Spring
- EventBusConfig (@EnableAsync + DelegatingSecurityContextAsyncTaskExecutor)
- WorkflowEngine et WorkflowEventListener pour futur workflow

Événements de domaine (records immutables) :
- PaymentSavedEvent (création/modification paiement)
- PaymentDeletedEvent (suppression paiement)
- ReceiptCreatedEvent (création quittance)

Listeners :
- PaymentEventLogger (sync @TransactionalEventListener AFTER_COMMIT)
- ReceiptGenerationListener (async @Async pour génération PDF)

Services modifiés :
- GenericBackendService : hooks publishAfterSave/publishBeforeDelete
- PaymentService : publication événements Payment
- ReceiptService : publication événement Receipt

Tests :
- 18 tests unitaires (SpringDomainEventPublisher, PaymentEventLogger, ReceiptGenerationListener)
- 14 tests d'intégration (PaymentServiceEvent, ReceiptServiceEvent)

Documentation :
- 02-ARCHITECTURE_TECHNIQUE.md : section Event Bus complète
- 03-GUIDE_FONCTIONNEL.md : guide utilisateur Event Bus
- architect.md : template événements de domaine
- backend-developer.md : patterns Event Bus

Compilation : BUILD SUCCESS
Tests unitaires : 18/18 passent
Code review : GO pour production

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
ronan.quintin deleted branch feature/12-event-bus 2025-12-25 15:17:47 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ronan.quintin/Keryloo#18
No description provided.