spacewander commented on issue #4209: URL: https://github.com/apache/apisix/issues/4209#issuecomment-840944149
> > > the first bit should stay at 0 and actually only use 63bit > > Sonyflake definition > > ``` > 39 bits for time in units of 10 msec > 8 bits for a sequence number > 16 bits for a machine id > ``` > > You might need to fetch 2 bits to do a dial back, to deal with the time callback problem > > ``` > 39 bits for time in units of 10 msec > 8 bits for a sequence number > 2 bits for back to dial > 14 bits for a machine id > ``` > > The start_time is designed to be configurable 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). -- 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]
