2 ms·
That's odd. I was under the impression that DataStax Java drivers had knowledge of the cluster and so weren't sending requests to random nodes. http://www.data
by threeseed 12y ago
That's odd. I was under the impression that DataStax Java drivers had knowledge of the cluster and so weren't sending requests to random nodes.
http://www.datastax.com/doc-source/developer/java-apidocs/com/datastax/driver/core/policies/TokenAwarePolicy.html http://www.datastax.com/doc-source/developer/java-apidocs/co...
- ddispaltro 12y agoI know the Astyanax driver from Netflix supports a "token aware" strategy. Here is a link to the docs: https://github.com/Netflix/astyanax/wiki/Configuration https://github.com/Netflix/astyanax/wiki/Configuration Depending on how the consistency level is set it could potentially save a "route" to the other host.
- rsvihla 12y agoYou actually have to use it though. TokenAware is one of many policies most of which can be layered on top of one another. Just depends on how they had the driver configured.
- jbellis 12y agoToken aware is the default now, but Thumbtack benchmarked with the two year old Thrift client instead.
- cbsmith 12y agoSome drivers do. Some drivers don't. Before DataStax started providing their own driver, the default Cassandra driver didn't.