dickens7 commented on issue #4209:
URL: https://github.com/apache/apisix/issues/4209#issuecomment-841789520


   > 10 bits for 10 msec is not enough as I proved. Maybe it is faster to 
change lua-snowflake to support this (only need to change some constants).
   
   I will fork lua-snowflake and change it according to this algorithm 
definition
   
   ```
   39 bits saves timestamp, accurate to milliseconds. That means the maximum 
usable life is 17 years.
   14 bits machine bits, can be attached to 16384 machine nodes to generate ID.
   10 bits number,the maximum number of unique IDs generated in a millisecond 
is 1024.
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to