Derek Troy-West
Derek Troy-West

Reputation: 2479

Why isn't TokenAwarePolicy the default for the Datastax java driver

Are there drawbacks to using the TokenAwarePolicy over the current default of RoundRobinPolicy?

It seems to me that routing requests to nodes identified as being replicas by the routing-key should always be preferable, and a RoundRobinPolicy wrapped by TokenAwarePolicy should be the default?

Upvotes: 1

Views: 1138

Answers (1)

pcmanus
pcmanus

Reputation: 421

There is no real drawback to using TokenAwarePolicy and in fact we've changed the default in recent releases (2.0.2) so it is now using token aware.

Upvotes: 6

Related Questions