GithubHelp home page GithubHelp logo

Comments (13)

conorbros avatar conorbros commented on July 30, 2024

Could you elaborate on this?

from cdrs-tokio.

krojew avatar krojew commented on July 30, 2024

Available node list should be dynamically updated from server events.

from cdrs-tokio.

conorbros avatar conorbros commented on July 30, 2024

I am currently working on a PR for that :)

from cdrs-tokio.

krojew avatar krojew commented on July 30, 2024

I was planning to rework event handling for that to work first in #32 . Current iterator-based approach works very poorly with async/await.

from cdrs-tokio.

conorbros avatar conorbros commented on July 30, 2024

Would you be able to give more implementation details? I can look at completing that before I submit my PR if required.

from cdrs-tokio.

krojew avatar krojew commented on July 30, 2024

At the moment, no work has been started on this topic, but I'm thinking of replacing whole existing implementation with automatically managing a dedicated extra connection for receiving events, and publishing them via tokio::sync::broadcast.

from cdrs-tokio.

conorbros avatar conorbros commented on July 30, 2024

At the moment I have the connections stored in an ArcSwap so they can be updated, it is similar to the Scylla driver.

from cdrs-tokio.

krojew avatar krojew commented on July 30, 2024

Ok, we can try to merge that first and rework the event system later.

from cdrs-tokio.

krojew avatar krojew commented on July 30, 2024

I managed to find time to rework event handling and add cluster metadata handling skeleton. You can take a look at ClusterMetadataManager which should manage contained cluster metadata, which is then passed to load balancers.

from cdrs-tokio.

conorbros avatar conorbros commented on July 30, 2024

I've done some work on the topology refresh branch of my fork but yours will probably end up being better. There's code for a TopologyReader which you might find useful.

from cdrs-tokio.

conorbros avatar conorbros commented on July 30, 2024

Or I can take this code and reintegrate my solution?

from cdrs-tokio.

krojew avatar krojew commented on July 30, 2024

Sure, rebase your changes on current master. Will welcome a PR with dynamic topology.

from cdrs-tokio.

krojew avatar krojew commented on July 30, 2024

Dynamic topology is pretty much done. Now I need to add a load balancer taking advantage of this in #33 .

from cdrs-tokio.

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.