syncromatics / KairosDbClientDotNet

A dotnet REST client for kairosdb
MIT License
6 stars 6 forks source link

KairosDB High Availability #3

Open peske opened 8 years ago

peske commented 8 years ago

First: thanks for your effort guyz!

Now suggestion (feature request):

It would be great if the library could support multiple KairosDb instances. For example, in my environment I have two KairosDb instances both targeting the same keyspace in Cassandra backend cluster.

At the moment while creating RestClient instance we need to specify exact particular KairosDb. But much better approach would be to specify all KairosDb instances (endpoints), and to implement some kind of load-balancing / failover behavior within RestClient itself.

It shouldn't be too hard to accomplish since you can borrow this code from another project. I'm not 100% sure but I believe that ElasitcSearch client implements similar thing. Cassandra .NET client does the similar...

Thanks!

derrickcrowne commented 8 years ago

Hello,

I'll consider adding this feature once I get a chance to revisit this project. We use the elasticsearch client with multiple instances in production, it is pretty useful.