Add partitioning logic

This commit is contained in:
calzoneman 2016-06-06 21:54:49 -07:00
parent 5f773d46c9
commit 77465e6b49
6 changed files with 168 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import Promise from 'bluebird';
class PartitionClusterClient {
constructor(partitionDecider) {
this.partitionDecider = partitionDecider;
}
getSocketConfig(channel) {
return Promise.resolve({
servers: this.partitionDecider.getPartitionForChannel(channel)
});
}
}
export { PartitionClusterClient };