Retry policy on technical error

According to you, is it possible or desirable to have retry policy in configuration defined on request scope or on scope MongoDB connection?
For example, I like the request (find, insert and so on) retry if technical error occurs (network, server overload and so on) according to retry policy or deadline via context.Context.

Thanks for your support

Hi @Jerome_LAFORGE,

Drivers currently retry failed operations once after transient errors (e.g. network errors, failovers, etc). There is an ongoing drivers-wide project to introduce an improved timeouts API. Part of this project involves changing the retry policy to retry multiple times, which will include retrying as many times as possible before the context deadline expires or the context is cancelled. This work is not present in a released driver version, but is planned for an upcoming minor release.

– Divjot


This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.