Comments (2)
Hello, just found myself going back to this feature request.
Right now it's easy to construct a client with a connection string that would never successfully connect. And without some form of health check, you would not find out until you send a command of sorts and it times out. Which would cause user requests to be timed out.
Probing whether we can connect and there's a mongodb server on the other end of the line ready to take requests, seems exactly what ping is meant for. So the relying service most likely will want to confirm this before marking itself as healthy and ready to serve requests.
A bit confused why API stability is the reason not to implement this. Since the ping command doesn't appear to have changed on the server since 4.4.
That said, @ISibboI's workaround of using run_command
instead works too. 😄
from mongo-rust-driver.
Hi!
We appreciate the suggestion - however, we have to carefully weigh what functionality we build into the API because we place a high priority on API stability. In this case, because the added utility is very minor it's unlikely to be something we'll want to turn into an API commitment.
from mongo-rust-driver.
Related Issues (20)
- No way to support OpenAPI data converstion HOT 2
- SOCKS5 support HOT 1
- Can we remove the "deprecated" status from `human_readable_serialization` in `CollectionOptions`? HOT 5
- No bulk write function HOT 1
- RUST-1680: put `trust-dns-resolver` under feature flag HOT 3
- Established connection ignores some Client Options HOT 2
- Add feature flag for time 0.3 support HOT 2
- RUST-1712 Latency Sees Unbounded Growth When Doing Any Amount Of Concurrent Writes HOT 27
- RUST-229 Connection string parser does not support IPv6 addresses HOT 2
- Replacements in collections use different serializer than insertions
- MongoDB search using UUID returns no results despite matching documents in the collection. HOT 3
- RUST-1743 Question: GridFS is the rust driver compatible with the java driver? HOT 3
- Positional $ operator gets the index wrong HOT 1
- [docs] Need more info on recommendations for `Collection::count_documents` methods HOT 2
- `tokio-runtime` feature flags. HOT 1
- Connection for too long HOT 2
- Memory leak in mongodb driver version 2.7 HOT 7
- Handle WriteError while insert_one HOT 3
- Is there any way we can pass `tlsCertificateKeyFilePassword ` for x.509 authentication? HOT 3
- Add `Server` module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongo-rust-driver.