Understand shortid ID structure and length
masterShort IDs are composed of three encoded pieces of information:
- Milliseconds since epoch: The first 8 symbols (Epoch starts at 1/1/2016).
- Worker ID: The 9th symbol.
- Concurrent counter: Only added if multiple IDs are generated within the same millisecond, spanning the remaining symbols.
Expected Lengths:
- Standard: 9 symbols (at a rate of 1 ID per millisecond).
- High Load: Occasionally reaches 11 symbols (at a rate of a few thousand IDs per millisecond).
- Extreme Load: May exceed 11 symbols during continuous full-throttle generation on high-performance hardware.