2 ms·
I am struggling understanding the underlying point here - UniqueIDs of some sort are generally great but if You're desperately need some kind of precise monoton
by lifeisstillgood 4y ago
I am struggling understanding the underlying point here - UniqueIDs of some sort are generally great but if You're desperately need some kind of precise monotonic increase I need to have my thinking cap on
- everything is on same machine / database - great ! Use UUID 7 or just grab a long integer ...
- things are on distributed machines but they talk back to a central machine. Now this gets harder (and is kind of actually the same problem as single machine but we ignore that). Network speed really screws with you if you ask for a new monotonic id each time, and if you do anything else you have just sharded and well that's a new design.
- if you want some monotonic id generated distributed-ly then good luck. Not sure I have understood paxos that well.
In the end I strongly want to avoid the need for stric distributed ordering - and suggest it is often the failure of business model not the technology