-
-
Save galderz/9464047 to your computer and use it in GitHub Desktop.
Here's an updated version of the segments proposal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Response header with topology change marker | |
Topology Id [vInt] | |
Num servers in topology [vInt] | |
m1: Host/IP length [vInt] m1: Host/IP address [string] m1: Port [2b - unsigned short] | |
m2: Host/IP length [vInt] m2: Host/IP address [string] m2: Port [2b - unsigned short] | |
Hash Function Version [1b] | |
Num segments in topology [vInt] | |
s1: Num owners [1b] s1: 1st owner's index [vInt] s1: 2nd owner's index [vInt] | |
s2: Num owners [1b] s2: 1st owner's index [vInt] s2: 2nd owner's index [vInt] | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It really is not necessary to send segment hash ends to the client, since it can easily calculate them given the segment size and number of segments.