Monday, 21 September 2020

64bit unique id generation Nodejs

Hi There,I am looking to find a way to generate unique ID on nodejs, Earlier my requirement was to use UUID, but based on the MySql, the ID needs to be BigInteger(64 bit). Hence, I have a couple of options:Spinning up a key generation service.Using the REDIS auto-increment sequence. This seems an easy option as my team has a Redis server already running.I found that there is twitter snowflake API.Can you please share your experience if you have come across this requirement.

Submitted September 22, 2020 at 01:42AM by rocksvashi

No comments:

Post a Comment