Code Monkey home page Code Monkey logo

Comments (2)

beanow-at-crabnebula avatar beanow-at-crabnebula commented on June 12, 2024 1

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.

abr-egn avatar abr-egn commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.