2 ms·
What's wrong with starting with '0' for the first item and incrementing up from there? Guaranteed uniqueness.
by HeyLaughingBoy 18y ago
What's wrong with starting with '0' for the first item and incrementing up from there? Guaranteed uniqueness.
- throw_away 18y agoa) impossible to do in a distributed fashion, b) may leak information about your operations to competitors. of course, OP may not care about these things.
- HeyLaughingBoy 18y agoI understand (b), and in fact I considered it a potential weakness, but why does (a) matter if you're selling from a single site? Even if you got multiple simultaneous orders, storing the last license generated in a DBMS should make it multiprocess-safe.