actix-rate-limit

Crates.ioactix-rate-limit
lib.rsactix-rate-limit
version0.3.1
sourcesrc
created_at2021-01-09 11:00:50.566249
updated_at2021-01-29 12:31:10.682112
descriptionRate-Limit middleware for actix-web
homepage
repositoryhttps://github.com/arniu/kepton
max_upload_size
id336181
size24,055
Arniu Tseng (arniu)

documentation

README

Rate-Limit middleware for actix-web

参考 GitHub API v3 接口,针对用户认证与否,有区别的限流。 比如认证用户,每小时可访问 600 次;未认证用户,根据 ip 划分,每小时可访问 60 次。

Reference

  1. Everything You Need To Know About API Rate Limiting
  2. GitHub API v3: Rate limiting
  3. Redis Pattern: Rate limiter

License

Apache or MIT

Commit count: 0

cargo fmt