An API to set a custom partitioning strategy for a Thrift/ThriftMux Client.
An API to set a consistent hashing partitioning strategy for a Thrift/ThriftMux Client.
An API to set a consistent hashing partitioning strategy for a Thrift/ThriftMux Client.
For a Java-friendly way to do the same thing, see ClientHashingStrategy.create
A collection of methods for configuring the PartitioningService of Thrift clients
A collection of methods for configuring the PartitioningService of Thrift clients
a Stack.Parameterized client to configure
Service partitioning strategy to apply on the clients in order to let clients route requests accordingly.
Service partitioning strategy to apply on the clients in order to let clients route requests accordingly. Two particular partitioning strategies are going to be supported, HashingPartitioningStrategy and CustomPartitioningStrategy. Either one will need developers to provide a concrete function to give each request an indicator of destination, for example a hashing key or a partition address. Messaging fan-out is supported by leveraging RequestMerger and ResponseMerger.
This custom partitioning service integrates with the user supplied CustomPartitioningStrategy.
This custom partitioning service integrates with the user supplied CustomPartitioningStrategy. This provides users direct setup for their partitioning topologies.
PartitioningService.
Provides the withPartitioning
API entry point
Provides the withPartitioning
API entry point
An API to set a custom partitioning strategy for a Thrift/ThriftMux Client. For a Java-friendly way to do the same thing, see
ClientCustomStrategy.create
When updating the partition topology dynamically, there is a potential one-time mismatch if a Service Discovery update happens after getPartitionIdAndRequest.