Skip to content

Conversation

@iifawzi
Copy link
Member

@iifawzi iifawzi commented Nov 8, 2025

Description

This PR introduces support for using RabbitMQ policies to manage TTL for delay queues, instead of relying on queue-level TTL settings. Fixes #10

Key changes:

  • Added usePoliciesForDelay option (default: false).
  • When enabled, RunMQ creates delay queues with TTL configured via RabbitMQ policies.
  • Allows dynamic updates to TTL without needing to redeclare or delete queues.
  • Improves flexibility and reduces operational overhead for managing retry delays.

Maintains full compatibility with existing versions, with default, false.

Motivation:

Hard-coding TTL in queues requires manual queue deletion/re-declaration to change delays, which is error-prone and inconvenient. Using policies allows TTLs to be updated on-the-fly, providing a more robust and maintainable solution.

…fault false

Signed-off-by: Fawzi Essam <iifawzie@gmail.com>
Signed-off-by: Fawzi Essam <iifawzie@gmail.com>
@iifawzi iifawzi merged commit 2759a2c into main Nov 9, 2025
8 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 9, 2025
# [1.1.0](v1.0.3...v1.1.0) (2025-11-09)

### Features

* Adding HTTP Client and TTLPolicyManager with fallback to queue-ttl ([#12](#12)) ([2759a2c](2759a2c))
@github-actions
Copy link

github-actions bot commented Nov 9, 2025

🎉 This PR is included in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relying on policies for attempts retry delay

2 participants