Hacker News new | ask | show | jobs
by manx 1457 days ago
If you have different workers to generate ids, give all of them their own ranges in advance. Once a worker used up their range, they can request a new range for their next N (e.g. 100k) ids.