Event-Driven Architecture
APiGen supports generating event-driven microservices.
Concepts
- Domain Events: Entities emit events (
Created,Updated,Deleted) automatically. - Message Brokers: Kafka, RabbitMQ, or Amazon SQS integration.
- Outbox Pattern: Reliable event publication using the transactional outbox pattern.
Configuration
yaml
features:
eventDriven: true
broker: kafkaUsage
Generated services include EventPublisher interfaces that you can inject to publish custom events.