Best Practices¶
-
Back to Transactional Outbox Overview
Return to the Transactional Outbox overview page with all topics.
Overview¶
- Always commit — Always call
commit()after adding events - Use transactions — Ensure outbox operations are in the same transaction as business logic
- Register events — Register all event types in
OutboxedEventMap - Handle failures — Implement retry logic in the publisher process
- Monitor status — Track
NOT_PRODUCEDevents for debugging - Use compression — Enable compression for large payloads
-
Batch processing — Process events in batches for efficiency
-
Event Producing — How to produce events without outbox
- FastStream Integration — Kafka and RabbitMQ message broker configuration
- Dependency Injection — How to inject outbox repository