Badge Event Listener
Component Detail
Infrastructure
low complexity
backend
1
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Infrastructure component that subscribes to domain events (activity saved, course enrollment completed, certification awarded) and asynchronously invokes the Badge Award Service. Decouples badge evaluation from primary activity processing to avoid latency impact on core workflows.
badge-event-listener
Responsibilities
- Subscribe to activity save completion events from the activity processing pipeline
- Subscribe to course enrollment completion events from the course service
- Subscribe to certification award events from the certification service
- Invoke Badge Award Service asynchronously without blocking the originating transaction
Interfaces
onActivitySaved(event: ActivitySavedEvent): Future<void>
onCourseCompleted(event: CourseCompletedEvent): Future<void>
onCertificationAwarded(event: CertificationAwardedEvent): Future<void>
register(): void
Relationships
Related Data Entities (2)
Data entities managed by this component