ID blocks are allocated by first applying for an id block, waiting for a specified period of time and then checking that the application was the first received for that particular id block. If so, the application is considered successful. If not, some other process won the application and a new application is tried.
The partition id is used as the key and since key operations are considered consistent, this protocol guarantees unique id block assignments. @author Matthias Broecheler (me@matthiasb.com)
|
|
|
|