You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is a middleware onion on the RequestManager and there are provider-specific middlewares. This leads to confusion like in Option for turning off HTTPRequestRetry #2770. We should re-think the way that request retry is handled in a more user-friendly way.
How can it be fixed?
One possible solution is to remove the idea of middlewares on providers and leave it to the middleware onion only. If we want to add some provider-specific features, these might be nice features as flags on the provider instead, or as provider-specific middleware that may be added to the onion itself in the RequestManager class.
Suggestions / opinions encouraged!
The text was updated successfully, but these errors were encountered:
What was wrong?
RequestManager
and there are provider-specific middlewares. This leads to confusion like in Option for turning offHTTPRequestRetry
#2770. We should re-think the way that request retry is handled in a more user-friendly way.How can it be fixed?
One possible solution is to remove the idea of middlewares on providers and leave it to the middleware onion only. If we want to add some provider-specific features, these might be nice features as flags on the provider instead, or as provider-specific middleware that may be added to the onion itself in the
RequestManager
class.Suggestions / opinions encouraged!
The text was updated successfully, but these errors were encountered: