3 ms·
Assign pool of ID's to servers in blocks, e.g. 0..9999, 10000..19999. Then, when ID block is near to exhaustion, ask for new one.
by drran 5y ago
Assign pool of ID's to servers in blocks, e.g. 0..9999, 10000..19999. Then, when ID block is near to exhaustion, ask for new one.
- derekperkins 5y agoThat's pretty close to how Vitess handles sequences (distributed auto-increment)