Guava’s RateLimiter per minutes instead of seconds?

前端 未结 6 2325
情话喂你
情话喂你 2021-02-13 21:28

I\'m trying to rate-limit the the number of accounts a user can create with my REST API.

I would have liked to use Guava\'s RateLimiter to only allow an IP

6条回答
  •  盖世英雄少女心
    2021-02-13 21:49

    Just in case your miss it, the RateLimiter does specify what happened to the unused permit. The default behavior is to save the unused link up to one minute RateLimiter.

提交回复
热议问题