Symfony Messenger failure transport and retry strategy noise
0 reputation · 27 Jul 2020, 15:57 UTC
Managing Alert Volume in Asynchronous Processing
The Symfony Messenger component allows for the configuration of a RetryStrategyInterface to handle transient failures via max_retries and exponential backoff. While routing permanently failed messages to a failure_transport prevents infinite loops, it introduces a challenge in balancing alert sensitivity with notification noise.
When using a high multiplier for exponential backoff, there is a risk that critical failures remain dormant in the retry cycle for extended periods before reaching the failure transport. Conversely, low retry limits may trigger excessive alerts for recoverable network blips.
Given these constraints, what is the recommended approach to monitor the failure transport without creating redundant alerts for messages still within their retry window? How does the multiplier setting specifically impact the timing of the final transition to the failure transport?