Skip to content

v1.1.0

Choose a tag to compare

@dmitriy-iliyov dmitriy-iliyov released this 14 May 13:34
· 126 commits to main since this release
09d3c52

Spring Outbox 1.1.0

This release brings significant improvements to performance, concurrency control, and polling efficiency, making your transactional outbox implementation more robust, scalable, and customizable.

What's new in 1.1.0

  • Adaptive polling: Choose between fixed and adaptive polling. The new adaptive strategy dynamically adjusts polling intervals using exponential backoff—reducing database load when idle and reacting instantly to new workloads.

  • Distributed locking for background jobs: Cleanup and recovery workers now utilize distributed locking out-of-the-box (with configurable lock durations), ensuring that background jobs run on only one instance at a time to prevent conflicts.

  • Modular architecture: The library has been split into dedicated, specialized modules. While the spring-outbox-starter remains the fastest way to get up and running, this modular approach gives you the flexibility to plug in only the specific features you need (such as spring-outbox-dlq-api or spring-outbox-consumer-cache) if the all-inclusive starter doesn't fit your use case.

  • Expanded consumer interface: The OutboxIdempotentConsumer interface has been completely reworked and expanded. It now provides extensive, native support for batch processing-intelligently filtering out already-consumed events from batches and executing business logic strictly for unconsumed items.

  • Enhanced metrics collection: Introduced new metrics collectors to provide even deeper observability out-of-the-box. You can now easily track detailed timers for task processing durations, granular polling delays, DLQ operations, and consumer cache hit/miss rates.

Key Features

  • Atomic persistence - events are stored within the same business transaction, ensuring consistency.
  • Adaptive polling - dynamically adjusts the polling interval based on workload to optimize database usage.
  • Flexible polling configuration - allows customization of polling intervals, retry policies, and backoff strategies per event type.
  • At-least-once delivery - guarantees delivery with configurable retries and backoff policies.
  • Effectively-once delivery - achieved via an idempotent consumer implementation provided by the library.
  • Dead Letter Queue - stores events that fail after all retry attempts, with REST API support for management.
  • Background service - handles recovery of stuck events and cleanup of processed or consumed events automatically.
  • Observability - provides out-of-the-box metrics integration via Micrometer.

Supported Infrastructure

  • Databases: PostgreSQL 16+, MySQL 8+, Oracle 23+.
  • Message Brokers: Apache Kafka 3.7+, RabbitMQ 3.12+.
  • Cache Storage (optional for caching): Redis 7+.

Full documentation, quick start guides, and configuration examples are available in the README.