Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Reconnection Configuration

14 views
Skip to first unread message

Yan Doroshenko

unread,
Apr 20, 2023, 8:46:45 AM4/20/23
to ReactiveMongo - http://reactivemongo.org
Hello,


I'm trying to configure the way my application using ReactiveMongo
reconnects to the DB after connection failure, but am struggling to
understand the way everything works. I see two ways to get there -
either there's a configuration on ReactiveMongo's side or I can
intercept an exception if ReactiveMongo is throwing one on connection
failure.


Here are the points that are unclear to me:

1. Is connection state monitored or is it checked once an operation is
executed?

2. Is there an exception generated once connection is lost? I don't seem
to be getting any.

3. Is connection failure a  RetryableFailure which should then be
intercepted in Failover and retried? If not, is there a way to specify
some sort of retry strategy?


Any advice is appreciated.


Thanks,

Yan

OpenPGP_0xFE3D253C339078B1.asc
OpenPGP_signature

Cédric Chantepie

unread,
Apr 25, 2023, 5:59:11 AM4/25/23
to ReactiveMongo - http://reactivemongo.org
There is no need, that already managed.
Reply all
Reply to author
Forward
0 new messages