Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个每秒多少个的描述是不是有问题 #93

Open
irwinai opened this issue Feb 2, 2024 · 1 comment
Open

这个每秒多少个的描述是不是有问题 #93

irwinai opened this issue Feb 2, 2024 · 1 comment

Comments

@irwinai
Copy link

irwinai commented Feb 2, 2024

❄ 如果ID生成需求不超过5W个/s,不用修改任何配置参数

❄ 如果超过5W个/s,低于50W个/s,推荐修改:SeqBitLength=10

❄ 如果超过50W个/s,接近500W个/s,推荐修改:SeqBitLength=12

默认是6位workerid + 6位的seq,那么2^12=4096,每秒就是4096000个,为什么说每秒不超过5万个??

@yitter
Copy link
Owner

yitter commented Feb 5, 2024

你说的是指使用了所有的WorkerId,才能达成这个效果。这与官方宣称的单一WorkerId的数量是不一样的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants