-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Prototype failover queue #57341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prototype failover queue #57341
Conversation
Nice and straightforward implementation — this simple fallback loop is a clean solution and probably sufficient in many scenarios. That said, it might be worth considering a Circuit Breaker pattern for this. It would prevent the application from repeatedly attempting operations on connections that are likely to fail, improving both resilience and performance under degraded conditions. This pattern could also generalize nicely beyond this specific use case. We have several areas in the application where multiple drivers or connections can be configured, and introducing a shared, higher-level abstraction (similar to our Concept
|
This allows falling back to a failover queue if the primary queue connection for a job is down. The
failover
can be configured per queue connection and can contain multiple fallback connections.Configuration has symmetry with how mail failover transports are configured: