I have a specific requirement to generate a unique sequence number for the day. The utility should be able to generate the sequence without repeating even if there's a JVM restart.
Prerequisites:
- should not use database sequence.
- should not store anything in filesystem.
- Sequence can be repeated across the day.
- Sequence should not get repeated within the day, even if there's a JVM restart (this is already ensured with different attribute).
- No of sequence per second is min requirement 99.
Sequence format: ######## (8 digits max)
Note: this will be running in different instance of nodes and hence first digits of sequence is reserved for identifying the node.