Coder Social home page Coder Social logo

Comments (7)

evan2645 avatar evan2645 commented on July 21, 2024

Beyond this? https://github.com/WeAreFarmGeek/diplomat/blob/master/lib/diplomat/kv.rb#L16

from diplomat.

taharah avatar taharah commented on July 21, 2024

@jhmartin does what @evan2645 provide the functionality you were looking for?

from diplomat.

maxvt avatar maxvt commented on July 21, 2024

https://www.consul.io/docs/agent/http.html says "most read query endpoints support specifying consistency". At the very least, this option would be useful for service and health API endpoints, because for service discovery being consistent is often less important than getting at least some results right.

For more context, see https://stripe.com/blog/service-discovery-at-stripe.

Consul v0.7.5 does not balk at those options being added to either health or catalog lookups.

from diplomat.

kamaradclimber avatar kamaradclimber commented on July 21, 2024

Any progress on that feature? Not being able to use stale makes every application based on diplomat unreliable when consul cluster does not have a leader.

from diplomat.

pierresouchay avatar pierresouchay commented on July 21, 2024

Please also consider 'leader' consistency mode => which forces basic consistency over discovery endpoints

  • ?stale => allow to read from any consul server
  • ?consistent => strong consistency
  • default => consistent (but can be changed on discovery endpoints, see discovery_max_stale
  • ?leader => new in 1.0.7, allow to use old consistent method for discovery endpoints

from diplomat.

pierresouchay avatar pierresouchay commented on July 21, 2024

Would you consider #165 ?

Kind regards

from diplomat.

pierresouchay avatar pierresouchay commented on July 21, 2024

Now available with the changes in 2.1.0

from diplomat.

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.