Skip to content

Version6限流器问题 #51

@lhw0719

Description

@lhw0719

1、令牌桶限流器的令牌生成速率不是匀速的,取决于两次请求之间的时间间隔,严格意义上像是突发生成令牌。我想请问这样会影响限流器的性能吗?网上有一种解决思路就是新开一个线程让他一直匀速生成令牌,这两种对限流器性能有什么不同的影响?https://blog.csdn.net/qq_42055933/article/details/143694116
2、限流器使用synchronized加锁限制并发访问令牌数量这个资源,有没有更好地方法改进

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions