Giter VIP home page Giter VIP logo

Comments (9)

 avatar commented on July 30, 2024

That has actually been on my hit list, but I really haven't had a chance to figure out the best method for failing over. Is there an algorithm that you would like to see, or a simple round robin failover, sort of the way that load balancing works, where it just goes through a simple list.

from fluentcassandra.

 avatar commented on July 30, 2024

Thank you very much for your answer.

I don't know java well but it seems that hector use a simple client list to retry with next on fail (and a sleep before retry) as you can see below...

http://github.com/rantav/hector/blob/master/src/main/java/me/prettyprint/cassandra/service/FailoverOperator.java

from fluentcassandra.

 avatar commented on July 30, 2024

Before I merge in to master, please look at what I have done: I hope it meets you needs. It accomplishes the following:

  • Failovers
  • Connection Pooling
  • Load Balancing (random selection from server list)

http://github.com/managedfusion/fluentcassandra/blob/issue-1/FluentCassandra/Connection/NormalConnectionProvider.cs
http://github.com/managedfusion/fluentcassandra/blob/issue-1/FluentCassandra/Connection/PooledConnectionProvider.cs

There are so many types of load balancing, that I just choose the easiest one (random) in hopes it would spark somebody else to give a better or more robust solution. As far as I could tell, Hector uses a random algorithm for choosing it's load balancing.

from fluentcassandra.

 avatar commented on July 30, 2024

You're very responsive and super fast and also very kind, thank you very much for your work and sharing it...

Best Regards,
SI

from fluentcassandra.

 avatar commented on July 30, 2024

That didn't really answer my question that I had for you, but I think I am close enough to what you wanted.

from fluentcassandra.

 avatar commented on July 30, 2024

The code seems very good to me, it's all I have dreamed, thank you very much.

from fluentcassandra.

 avatar commented on July 30, 2024

This is out of subject, but, is cassandra work on windows as fast as linux, do you have any experience ?

from fluentcassandra.

 avatar commented on July 30, 2024

Cassandra is fully Java based. So any research you do on Java comparisons will likely apply.

from fluentcassandra.

 avatar commented on July 30, 2024

thanks again

from fluentcassandra.

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.