This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Description
When the Redis stream reaches max length, the oldest messages will be deleted even if they're unacknowledged.
If possible, it would be beneficial to implement a mechanism to handle the deletion of unacknowledged messages by one of the following potential methods:
- Delete the oldest acknowledged messages, trimming the stream length and allowing for the triggering and acknowledgment of new messages.
- Stop receiving new messages when the stream only contains unacknowledged messages (should be controlled by a flag to enable the functionality).
- Trigger the forwarding of the oldest message to the DLQ before deletion when the stream only contains unacknowledged messages (should be controlled by a flag to enable the functionality).
Additionally, it would be beneficial if the Prometheus metrics could include stream metrics (such as XPENDING for example) that would allow setting up alerting based directly on the broker rather than failure handling only once messages are already being dropped.