spacewander edited a comment on issue #4209:
URL: https://github.com/apache/apisix/issues/4209#issuecomment-839417932


   I just made a simple benchmark, and found the max value of count in a ms is 
511, which is the default backlog of the TCP socket. Since the number can be 
increased, now I recommend using 
   
   machine bits: 16
   per ms bits: 12
   timestamp bits: 36
   
   The epoch needs to be divided by 2 years so that we don't need to update it 
in 2023.
   
   Also need to notify people if they have customized the backlog.
   
   @dickens7 
   If you are interested in this change, you can notify us to fork 
lua-snowflake to api7.


-- 
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