messaging: able to pub sub multiple partitions

This commit is contained in:
Chris Lu
2020-04-21 00:59:55 -07:00
parent cb3985be70
commit 5c348087dc
4 changed files with 189 additions and 75 deletions

View File

@@ -103,4 +103,10 @@ message TopicConfiguration {
string collection = 2;
string replication = 3;
bool is_transient = 4;
enum Partitioning {
NonNullKeyHash = 0; // If not null, hash by key value. If null, round robin
KeyHash = 1; // hash by key value
RoundRobin = 2; // round robin pick one partition
}
Partitioning partitoning = 5;
}