Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.12.0
-
None
Description
Use case:
Deployments that create and delete broker queues (accessed via auto-links) on demand.
A service that creates auto-links to a broker when it connects. The auto-links trigger the creation of a queue(s) on the broker. When the service shuts down it removes the auto-links and thus deletes the queue(s) [dead lettering any orphaned messages].
If the service should fail without cleaning up its auto-link/queue resources the auto-link (and associated queue) will exist indefinitely.
Feature description:
Add an idle timeout attribute to the auto-link configuration. If the generated link loses its router-side consumer(s)/producer(s) then after the idle timeout expires the router should remove the auto-link configuration and teardown the link. With the proper broker configuration this should result in the corresponding queue being deleted and optionally any messages it contained moved to a dead letter queue or simply discarded.