Git Product home page Git Product logo

Comments (4)

choksi81 avatar choksi81 commented on August 12, 2024

Author: monzum
A possible test for this scenario may be to advertise to one of the service and then do lookup on all the services with short graceperiod. What will happen in this case, is a service that does not have the (key,value) may return an empty list first. This will cause the empty list to be returned to the application even if there is a valid result for the key on one of the other services. This would be due to race condition on which service returns the result first.

from advertiseserver.

choksi81 avatar choksi81 commented on August 12, 2024

Author: albert
Maybe we need a way to tell the lookup function to wait until all of the services have returned, instead of returning the first result it sees after the grace period?

from advertiseserver.

choksi81 avatar choksi81 commented on August 12, 2024

Author: leonwlaw
Instead of returning upon the first result returned, how about waiting for the first non-empty result? We would return the empty list only if all services return an empty list.

from advertiseserver.

choksi81 avatar choksi81 commented on August 12, 2024

Author: justinc
Replying to leonwlaw:

Instead of returning upon the first result returned, how about waiting for the first non-empty result? We would return the empty list only if all services return an empty list.

What if it is empty though? I'm more concerned about why we get an empty list in the first place. Can you look and see why / when this happens?

from advertiseserver.

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.