GithubHelp home page GithubHelp logo

Comments (8)

dashersw avatar dashersw commented on May 22, 2024

Hello, you have to give the requester and a responder a specific key, so that they will only connect to each other. However, this is discouraged.

from cote.

francescoagati avatar francescoagati commented on May 22, 2024

What i want is more send a request to alla nodes and collect the respinse.
I cant use the nodes list in monitoring for send a request to all the nodes?

from cote.

dashersw avatar dashersw commented on May 22, 2024

But this is already how it works? Create one requester and as many responders as you like on any machine and it will work.

from cote.

francescoagati avatar francescoagati commented on May 22, 2024

Yes but i need to send to a specific node

from cote.

dashersw avatar dashersw commented on May 22, 2024

Sorry, I'm not quite following. Maybe it would help if you could give me a more concrete example. The requests are load balanced in a round-robin way, so there is no way to influence where they end up. The only way to do it to create special keys, to be shared with a single responder and several requesters.

from cote.

francescoagati avatar francescoagati commented on May 22, 2024

I have 5 nodes. And any node responds with a different value. What i need is calling all 5 nodes in parallel to capture the 5 differents value but without using publish/subscribe. Is a multi parallel request/reply to all nodes that expose the same service but any node return a differenti value (forma example the free memory)

from cote.

dashersw avatar dashersw commented on May 22, 2024

I see. There's no direct way to choose the server you'll send to. Although it's quite tricky, it still can be hacked, though. On the other hand, a quicker hack would be to get the number of connected nodes from the discovery property (requester.discovery.nodes), see which ones you are connected to, and then do the request that many times, so every node will reply at least once. Then save the responses with a unique key from each responder, so you know who they belong to.

from cote.

francescoagati avatar francescoagati commented on May 22, 2024

Yes this can work thanks. But pub sub can work better

from cote.

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.