My target service requires a unique ID as a numeric parameter. Suggest me the most efficient way of making sequence or unique numbers in API proxy. I'm thinking of making a combination of date and sequence.
@Abdullah Ahmed , See similar questions asked here & here.
thanks @Anil Sagar. Just want to confirm one more thing. Shall we get a unique number everytime on same instance as well? A used number should never repeat. This logic will be sufficient for requirement?? Thanks again.
@Abdullah Ahmed , The numbers generated using above solution is Universally unique. No matter which instance, they will be unique. It uses time stamp & cryptography techniques to make them universally unique. Hope it helps.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |