## Drivers 

• Make use of connection pooling. Most MongoDB drivers support connection pooling. Adjust the connection pool size to suit your use case, beginning at 110-115% of the typical number of concurrent database requests. 

• Ensure that your applications handle transient write and read errors during replica set elections. 

• Ensure that your applications handle failed requests and retry them if applicable. Drivers do not automatically retry failed requests. 

• Use exponential backoff logic for database request retries. 

• Use cursor.maxTimeMS() for reads and wtimeout (page 131) for writes if you need to cap execution time for database operations. 

## 5.4.3 Additional Resources 

• MongoDB Production Readiness Consulting Package 123 

• MongoDB Ops Optimization Consulting Package 124 

