I am using spring-boot-starter-data-mongodb (version 2.3.1 RELEASE) to manipulate mongdb.
I notice that timeout is an important setting for client. I've searched over this forum and found various recommendations in terms of these settings, such as:
How to configure MongoDB Java driver MongoOptions for production use?
Howover, the above answer seems deprecated (last edited in 2013), as I cannot find settings like socketTimeout or autoConnectRetry in the latest 4.0.4 mongodb-driver-core.
Using mongodb 4.0.4 driver, we can notice several timeout settings under SocketSettings:
connectTimeout: Seems to be socket connect timeout, default 10sreadTimeout: Socket read timeout, default 0s
Can anyone give more explanations in terms of these timeout settings ?