Skip to content

Best Practices

  • Back to Transactional Outbox Overview

    Return to the Transactional Outbox overview page with all topics.

    Back to Overview


Overview

  1. Always commit — Always call commit() after adding events
  2. Use transactions — Ensure outbox operations are in the same transaction as business logic
  3. Register events — Register all event types in OutboxedEventMap
  4. Handle failures — Implement retry logic in the publisher process
  5. Monitor status — Track NOT_PRODUCED events for debugging
  6. Use compression — Enable compression for large payloads
  7. Batch processing — Process events in batches for efficiency

  8. Event Producing — How to produce events without outbox

  9. FastStream Integration — Kafka and RabbitMQ message broker configuration
  10. Dependency Injection — How to inject outbox repository